add the current example open command to the doc

cc #991
This commit is contained in:
Gokcehan committed 2022-11-15 21:26:30 +03:00
1 parent 887748cefd
commit 4440a15a8c
4 files changed
+41 -2

No files matched your search

-2
View File
@@ -35,8 +35,6 @@ map O $mimeopen --ask $f
# This command is called when current file is not a directory. You may want to
# use either file extensions and/or mime types here. Below uses an editor for
# text files and a file opener for the rest.
# lf -remote is used here to allow the subshell to work in the background to
# avoid redrawing lf when external applications are opened.
cmd open &{{
case $(file --mime-type -Lb $f) in
text/*) lf -remote "send $id \$$EDITOR \$fx";;