Add "view" command to ranger

This commit is contained in:
Talia 2020-01-13 14:26:27 +01:00
parent e9ab5dc9c4
commit 5775dfaaf6
2 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,10 @@
map er open_with rvim
map ev open_with vim
map ee edit
map E open_with view
alias view open_with view
map £<any> mark_tag %any
map f console scout -p -g

View file

@ -220,3 +220,7 @@ mime application/x-executable = "$1"
# Remote vim
label rvim, mime ^text, = vim --servername "${RVIM:-VIM}" --remote-send ':tab split<CR>' --remote "$@"
label rvim, ext xml|json|csv|tex|py|pl|rb|js|sh|php = vim --servername "${RVIM:-VIM}" --remote-send ':tab split<CR>' --remote "$@"
# For the custom "view" ranger command
label view, ext md|tex = zread "$@"
label view, mime ^text = vim -RM -- "$@"