hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Menu bar and keyboard shortcut do not open config

Open OJFord opened this issue 10 years ago • 6 comments

If I use the macOS (10.12) menu bar, or the Cmd+, keyboard shortcut, to open .hyper.js it fails every time:

 echo Attempting to open ~/.hyper.js with your $EDITOR
 echo If it fails, open it manually with your favorite editor!
 bash -c 'exec env ${EDITOR:=nano} ~/.hyper.js'
~> echo Attempting to open ~/.hyper.js with your $EDITOR
Attempting to open /Users/ojf/.hyper.js with your vim
~>

As you can see, it doesn't even attempt to run the second echo. Running bash -c 'exec env ${EDITOR:=nano} ~/.hyper.js' manually works fine.

This has been an issue for as long as I've been using Hyper(term); not related to latest update to v0.8.3 (0.8.3.873).

OJFord avatar Oct 19 '16 15:10 OJFord

Ah - this is perhaps an issue with the way the commands are sent, depending on the shell used - I'm using xonsh. Perhaps ; or && chaining (rather than newlines) would be more portable if that's the case.

OJFord avatar Oct 19 '16 15:10 OJFord

Might be related to #822, but I'm still seeing the same issue on 0.8.3:

 echo Attempting to open ~/.hyper.js with your $EDITOR                                     
 echo If it fails, open it manually with your favorite editor!
 bash -c 'exec env ${EDITOR:=nano} ~/.hyper.js'
 ~ echo Attempting to open ~/.hyper.js with your $EDITOR
Attempting to open /Users/olivier/.hyper.js with your vi
 ~ echo If it fails, open it manually with your favorite editor!
If it fails, open it manually with your favorite editor!
~ bash -c 'exec env ${EDITOR:=nano} ~/.hyper.js'

Using zsh as my shell, I have export EDITOR=vi in my ~/.zshrc.

olivier-w avatar Nov 09 '16 14:11 olivier-w

This is getting worse; not better!

Output is now:

 echo Attempting to open ~/.hyper.js with your \$EDITOR
 echo If it fails, open it manually with your favorite editor!
 bash -c 'exec env ${EDITOR:=nano} ~/.hyper.js'
~> echo Attempting to open ~/.hyper.js with your \$EDITOR
Attempting to open /Users/ojf/.hyper.js with your \vim
~>

😆

(Note the 'escape', and \vim.)

(Still an issue in v1.1.0.1408)

OJFord avatar Jan 16 '17 23:01 OJFord

Same on Windows, if you use Powershell:

Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

Loading personal and system profiles took 1009ms.
C:\Users\giggi>  echo Attempting to open .hyper.js with notepad
Attempting
to
open
.hyper.js
with
notepad
C:\Users\giggi>
>>  start notepad "%userprofile%\.hyper.js"
C:\Users\giggi>
>>

giggio avatar Apr 07 '17 14:04 giggio

Closing as this was for v1 Feel free to open a new issue if you face any problems with the latest build

LabhanshAgrawal avatar Jul 06 '20 08:07 LabhanshAgrawal

I don't use Hyper any more, but FYI in case it pops up again - shouldn't be tagged Windows. (I thought that seemed off since I didn't think I'd ever used Windows for development, and sure enough my OP did say macOS.)

OJFord avatar Jul 13 '20 14:07 OJFord