Fix command example to use correct syntax

Change the example to something that requires going through the
shell.
This commit is contained in:
Maxime Coste 2020-07-21 20:47:44 +10:00
parent c2516f02f6
commit 3e17a6d185

View File

@ -488,9 +488,10 @@ New commands can be defined using the *define-command* command:
Using shell expansion allows defining complex commands or accessing Using shell expansion allows defining complex commands or accessing
Kakoune's state: Kakoune's state:
-------------------------------------------------------- ---------------------------------------------------------------------
def " print_selection %{ echo %sh{ ${kak_selection} } }" # create a directory for current buffer if it does not exist
-------------------------------------------------------- define-command mkdir %{ nop %sh{ mkdir -p $(dirname $kak_buffile) } }
---------------------------------------------------------------------
== Aliases == Aliases