Fix command example to use correct syntax
Change the example to something that requires going through the shell.
This commit is contained in:
parent
c2516f02f6
commit
3e17a6d185
|
@ -488,9 +488,10 @@ New commands can be defined using the *define-command* command:
|
|||
Using shell expansion allows defining complex commands or accessing
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user