yatli / fvim

Cross platform Neovim front-end UI, built with F# + Avalonia
MIT License
1.34k stars 30 forks source link

Running multiple instances, launching from command line (macOS) #44

Closed bfulop closed 5 years ago

bfulop commented 5 years ago

Hello,

So far I was just launching the app by double-clicking the FVim.app that came with the dmg release. I was wondering if I could have several fvim processes with different projects (root workspace folders) in them?

Is there way to launch multiple instances of fvim and/or launch it from the command line? The launch options from readme give me some hint that it's possible.

yatli commented 5 years ago

hmm. On Windows this is simple -- shift-click the app icon will open another instance. On MacOS -- I guess there's something similar? Maybe there's some kind of flag to support this in Info.plist.

The command line executable is located at FVim.app/Contents/macOS/FVim -- try execute that from the shell.

bfulop commented 5 years ago

Thanks, it does work indeed! I can cd to FVim.app/Contents/macOS/FVim and run ./FVim and have multiple instances of Fvim !

I guess the command line options should work as well with this method?

yatli commented 5 years ago

yes, exactly. btw, you can add that to your PATH (in your .bash_profile, for example): export PATH=/Applications/FVim.app/Contents/macOS:$PATH

bfulop commented 5 years ago

Nice, thanks @yatli, works great with the PATH update!