Open source files in $EDITOR
kflak opened this issue · comments
Thanks for a very nice file manager!
I am struggling with replicating the way ranger treats text files. Hitting enter shuffles ranger into the background and opens the file in my $EDITOR, which happens to be nvim. When I'm done editing and quit the file, ranger pops back into the foreground. How would I accomplish this in hunter?
Right now the behavior I'm getting is a new terminal window but no file opening...
System: Arch Linux, hunter 1.3.5, installed from AUR
Solved by editing $HOME/.config/mimeapps.list. It seems hunter uses xdg-open for all things launchwise, so instead of creating custom launchers in the action scripts, it is better to put something like this into above mentioned file:
[Added Associations]
application/json=nvim.desktop;
text/plain=nvim.desktop;
text/markdown=nvim.desktop;
[Default Applications]
application/json=nvim.desktop;
text/plain=nvim.desktop;
text/markdown=nvim.desktop;
...and so forth...