From 8070cd82b7a9a6c74cca28017c32fa7dfaac6f78 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sat, 16 Jun 2018 00:57:50 +0300 Subject: [PATCH] cleanup --- doc.go | 10 +++++----- docstring.go | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc.go b/doc.go index 438fce8..358af8f 100644 --- a/doc.go +++ b/doc.go @@ -194,7 +194,7 @@ command, or shell command: map gh cd ~ # builtin command map D trash # custom command map i $less $f # shell command - map u !du -h . # waiting shell command + map U !du -sh # waiting shell command 'cmap' is used to bind a key to a command line command which can only be one of the builtin commands: @@ -208,7 +208,7 @@ You can delete an existing binding by leaving the expression empty: 'cmd' is used to define a custom command - cmd usage $du -h . | less + cmd usage $du -h -d1 | less You can delete an existing command by leaving the expression empty: @@ -427,7 +427,7 @@ Since lf does not have control flow syntax, remote commands are used for such needs. For example, you can configure the number of columns in the ui with respect to the terminal width as follows: - cmd recol ${{ + cmd recol %{{ w=$(tput cols) if [ $w -le 80 ]; then lf -remote "send $id set ratios 1:2" @@ -484,8 +484,8 @@ implementation. The default behavior is similar to the following command: mv -n $list . fi lf -remote "$(printf 'save\nmove\n\n')" - lf -remote "send load" - lf -remote "send sync" + lf -remote 'send load' + lf -remote 'send sync' }} Some useful things are to use the backup option ('--backup') with 'cp' and 'mv' diff --git a/docstring.go b/docstring.go index 0f32195..4102a08 100644 --- a/docstring.go +++ b/docstring.go @@ -202,7 +202,7 @@ custom command, or shell command: map gh cd ~ # builtin command map D trash # custom command map i $less $f # shell command - map u !du -h . # waiting shell command + map U !du -sh # waiting shell command 'cmap' is used to bind a key to a command line command which can only be one of the builtin commands: @@ -216,7 +216,7 @@ You can delete an existing binding by leaving the expression empty: 'cmd' is used to define a custom command - cmd usage $du -h . | less + cmd usage $du -h -d1 | less You can delete an existing command by leaving the expression empty: @@ -450,7 +450,7 @@ Since lf does not have control flow syntax, remote commands are used for such needs. For example, you can configure the number of columns in the ui with respect to the terminal width as follows: - cmd recol ${{ + cmd recol %{{ w=$(tput cols) if [ $w -le 80 ]; then lf -remote "send $id set ratios 1:2" @@ -508,8 +508,8 @@ implementation. The default behavior is similar to the following command: mv -n $list . fi lf -remote "$(printf 'save\nmove\n\n')" - lf -remote "send load" - lf -remote "send sync" + lf -remote 'send load' + lf -remote 'send sync' }} Some useful things are to use the backup option ('--backup') with 'cp' and