rogual / neovim-dot-app

Mac OS X GUI for Neovim
1.13k stars 62 forks source link

gnvim <file> does not open file #296

Closed bobzoller closed 8 years ago

bobzoller commented 8 years ago

to repo:

to fix: in gnvim helper, the command that ultimately gets run is: open -a Neovim foobar --args --cwd /Users/bob

if I move foobar into --args, it works as expected: open -a Neovim --args foobar --cwd /Users/bob

if this sounds like the correct fix and I'm not missing something, I'm happy to submit a PR.

bobzoller commented 8 years ago

$ gnvim -- foobar also works as expected, and yields: open -n -a Neovim --args --cwd /Users/bob foobar

oh, OSX 10.11.3

bobzoller commented 8 years ago

so one workaround is to add alias gnvim="gnvim --" to your .bashrc or equivalent.

bambu commented 8 years ago

Try changing mode from old to new https://github.com/rogual/neovim-dot-app/blob/master/gnvim#L10

bobzoller commented 8 years ago

duh, staring me right in the face. what's the story, is this an OSX version difference?

bambu commented 8 years ago

I can't really tell why that is there. I believe it should be just the new way. That is the way that the atom editor does it. I asked about it in #275.

bobzoller commented 8 years ago

closing, #275 covers it.