diff --git a/doc.go b/doc.go index 53778ea..36653df 100644 --- a/doc.go +++ b/doc.go @@ -121,7 +121,7 @@ with a command count. Second, it can be used to avoid typing the name when a command takes arguments. - map r push :rename + map r :push :rename One thing to be careful is that since "push" command works with keys instead of commands it is possible to accidentally create recursive bindings. diff --git a/docstring.go b/docstring.go index 501750e..6e24e8b 100644 --- a/docstring.go +++ b/docstring.go @@ -131,7 +131,7 @@ command with a command count. Second, it can be used to avoid typing the name when a command takes arguments. - map r push :rename + map r :push :rename One thing to be careful is that since "push" command works with keys instead of commands it is possible to accidentally create recursive bindings. diff --git a/etc/lfrc.example b/etc/lfrc.example index 0bda384..87462aa 100644 --- a/etc/lfrc.example +++ b/etc/lfrc.example @@ -74,7 +74,7 @@ cmd open-file ${{ # rename current file without overwrite cmd rename $[ -e "$1" ] || mv "$f" "$1" -map r push :rename +map r :push :rename # show disk usage cmd usage $du -h . | less