rogual / neovim-dot-app

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

gnvim ignores filename argument on the first run #308

Open edgarcosta opened 7 years ago

edgarcosta commented 7 years ago

If the app is not running and you do for example: gnvim foo.bar it doesn't load the foo.bar, it simply shows a brand new window.

However, if the app is already running, then gnvim foo.bar indeed loads the foo.bar.

neovim was built from head today, and my config file is empty.

Cheers, Edgar

jminardi commented 7 years ago

I can confirm I have this same problem with Neovim.app installed via homebrew.

cliffxuan commented 7 years ago

Same behaviour for me.

finviman commented 7 years ago

the same problem. when what to open file in terminal

woodm1979 commented 5 years ago

I can confirm the same behavior. That said, I'm just installing this for the first time, and it looks great except for this issue.

woodm1979 commented 5 years ago

I investigated further. This does NOT happen if you supply the -f flag.

So, just to be clear: gnvim ~/.bashrc does NOT load the file into the frame gnvim -f ~/.bashrc does load the file into the frame correctly

I've been able to create a REALLY STUPID work-around with this bash function: function gvim { gnvim -f "$*" & }