From 826787450a4c6e2b8ee1d7f83014dd1d2648f840 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Fri, 2 Sep 2016 22:02:11 +0300 Subject: [PATCH] update tutorial for binding and command removal Mentioned in #16. --- doc/tutorial.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index a9d06bc..657eab6 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -36,7 +36,7 @@ There are three special commands for configuration. `map` is used to bind a key to a command which could be: - built-in command (e.g. `map gh cd ~`) -- custom command (e.g. `map dD trash`) +- custom command (e.g. `map D trash`) - shell command (e.g. `map i $less "$f"`, `map u !du -h . | less`) `cmd` is used to define a custom command. @@ -46,6 +46,8 @@ An explicit `:` could be provided to group statements until a `\n` occurs. This is especially useful for `map` and `cmd` commands. If you need multiline you can wrap statements in `{{` and `}}` after the proper prefix. +You can delete an existing binding or command by leaving the expression empty (e.g. `map gh` or `cmd trash`). + ## Yank/Delete/Paste `lf` uses the underlying `cp` and `mv` shell commands for file operations.