From b677797b923dc9edd16161ee59f607ff94c748b6 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 23 Jan 2018 15:59:46 +1100 Subject: [PATCH] Document the availability of shell expansions in normal mode Fixes #1805 --- doc/pages/expansions.asciidoc | 6 +++++- doc/pages/keys.asciidoc | 15 ++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/doc/pages/expansions.asciidoc b/doc/pages/expansions.asciidoc index 2a61e7f9..fe3e4a13 100644 --- a/doc/pages/expansions.asciidoc +++ b/doc/pages/expansions.asciidoc @@ -126,7 +126,11 @@ informations about Kakoune's state: (e.g. *$kak_client_env_SHELL* is the SHELL variable) Note that in order for Kakoune to pass a value in the environment, the -variable has to be spelled out within the body of the expansion +variable has to be spelled out within the body of the expansion. + +Those environment variables are available in every context where +Kakoune use a shell command, such as the `|`, `!` or `$` normal +mode commands (See <>). == Markup strings diff --git a/doc/pages/keys.asciidoc b/doc/pages/keys.asciidoc index 1d4b74f3..e03eae39 100644 --- a/doc/pages/keys.asciidoc +++ b/doc/pages/keys.asciidoc @@ -298,17 +298,21 @@ is a sequence of non whitespace characters *|*:: pipe each selection through the given external filter program and - replace the selection with its output + replace the selection with its output. Shell expansions are available, + (See <>) **:: pipe each selection through the given external filter program and - ignore its output + ignore its output. Shell expansions are available, + (See <>) *!*:: - insert command output before selection + insert command output before selection. Shell expansions are available, + (See <>) **:: - append command output after selection + append command output after selection. Shell expansions are available, + (See <>) *u*:: undo last change @@ -542,7 +546,8 @@ to skim through the jump list using: *$*:: pipe each selection to the given shell command and keep the ones - for which the shell returned 0 + for which the shell returned 0. Shell expansions are available, + (See <>) == Object Selection