From 00516af0390d50ab05430124a99531d5e42a0c59 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Tue, 20 Sep 2016 23:18:39 +0300 Subject: [PATCH] fix push with command example --- doc.go | 2 +- docstring.go | 2 +- etc/lfrc.example | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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