Closed glyh closed 2 years ago
Make sure label editor, !mime ^text, !ext filetypes = ${VISUAL:-$EDITOR} -- "$@" label pager, !mime ^text, !ext filetypes = $PAGER -- "$@"
have a higher priority than label open, has xdg-open
@kevinhwang91 This won't fix. The empty file you create should not have any suffix, for exmaple abcdefg
. Thus this can only be catch up by xdg-open, but in this case I want to edit it in neovim.
Can't understand what you mean.
Rnvimr only monkey patch ${VISUAL:-$EDITOR}
candidate for Ranger but keep others' order.
Press r
in Ranger will show you the candidates of item you selected.
Ok, I got it, thanks for your patience.
nvim --version
:Features: +acl +iconv +tui
Linux arch 5.15.12-arch1-1 #1 SMP PREEMPT Wed, 29 Dec 2021 12:04:56 +0000 x86_64 GNU/Linux
rnvimr: health#rnvimr#check
OS
Ranger
Python
Pynvim
Ueberzug (optional)
RPC
~/.config/ranger
. The difference between this one and the default one is that I change the line to fix the issueto
xdg-mime default nvim.desktop inode/x-empty
to use neovim to open empty filesExpected behavior The file is opened in neovim.
Screenshots If applicable, add screenshots to help explain your problem.