dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 354452ddd779c4244113b9ae8bd488be7c5756e0
parent 8826f506b7131ccac11bbf93a85ccc972d6567e4
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Thu, 30 Apr 2020 16:27:17 +0200

lf: some stuff

Former-commit-id: 5958e66b17ff5413cbbf26474b340a46ace7707c
Diffstat:
Mlf/lfrc | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/lf/lfrc b/lf/lfrc @@ -28,10 +28,9 @@ set previewer ~/.config/lf/preview.sh # }}} # Command definitions {{{ # define a custom 'open' command -cmd open &{{ +cmd _open &{{ case $(file --mime-type "$f" -b) in - text/*) $EDITOR $f;; - application/json) $EDITOR $f;; + text/*|application/json) $EDITOR $fx;; application/epub+zip) ebook-viewer $fx >/dev/null 2>&1 & disown;; *) for f in $fx; do $OPENER "$f" > /dev/null 2> /dev/null & disown; done;; esac @@ -175,7 +174,7 @@ map X !$f # dedicated keys for file opener actions map o map O -map o &open $fx +map o :_open $fx map O push hol map v ql_preview map r reload @@ -196,7 +195,7 @@ map R push :rename<space> map cw push :rename<space> map E $$EDITOR $f map D delete -map <enter> &open $fx +map <enter> :_open $fx map S shell map Y copy_path