add default file opener and more keybindings

Related #9 and #94
This commit is contained in:
Gokcehan committed 2018-03-02 23:21:52 +03:00
1 parent 61c8b588cd
commit c3f4aa58a7
6 files changed
+122 -37

No files matched your search

+35 -5
View File
@@ -102,6 +102,32 @@ The following variables are exported for shell commands:
$fx current file or marked file(s) if any
$id id number of the client
The following additional keybindings are provided by default:
map zh set hidden!
map zr set reverse!
map zn set info
map zs set info size
map zt set info time
map za set info size:time
map sn :set sortby natural; set info
map ss :set sortby size; set info size
map st :set sortby time; set info time
map gh cd ~
The following keybindings to applications are provided by default on unix:
map e $$EDITOR $f ('vi' if empty)
map i $$PAGER $f ('less' if empty)
map w $$SHELL ('sh' if empty)
The following keybindings to applications are provided by default on
windows:
map e $notepad "%f%"
map i $more "%f%"
map w $cmd
Configuration
@@ -408,11 +434,15 @@ command:
esac
}}
lf does not come bundled with a file opener. You can use any of the existing
file openers as you like. Possible options are 'open' (for Mac OS X only),
'xdg-utils' (executable name is 'xdg-open'), 'libfile-mimeinfo-perl'
(executable name is 'mimeopen'), 'rifle' (ranger's default file opener), or
'mimeo' to name a few.
Following commands are provided by default:
cmd open-file &start "" "%f%" # windows
cmd open-file &open "$f" # mac
cmd open-file &xdg-open "$f" # others
You may also use any other existing file openers as you like. Possible
options are 'libfile-mimeinfo-perl' (executable name is 'mimeopen'), 'rifle'
(ranger's default file opener), or 'mimeo' to name a few.
Previewing Files