summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJason Felice <jason.m.felice@gmail.com>2019-02-14 09:53:36 -0500
committerJason Felice <jason.m.felice@gmail.com>2019-02-17 20:18:19 -0500
commit7cf6eddc30f8d0f704e92fe13c447df3aa664ddd (patch)
tree3147062b21f686f7ef5f384580116832fe073e50 /doc
parente169a1893b117e6d8983146c3bcbc2efd1371092 (diff)
Add object mode expansions
Diffstat (limited to 'doc')
-rw-r--r--doc/pages/expansions.asciidoc15
-rw-r--r--doc/pages/keys.asciidoc4
2 files changed, 15 insertions, 4 deletions
diff --git a/doc/pages/expansions.asciidoc b/doc/pages/expansions.asciidoc
index 36e5d020..754cf573 100644
--- a/doc/pages/expansions.asciidoc
+++ b/doc/pages/expansions.asciidoc
@@ -215,7 +215,7 @@ The following expansions are supported (with required context _in italics_):
directory containing the user configuration
*%val{count}*::
- _in `map` command <keys> parameter_ +
+ _in `map` command <keys> parameter and `<a-;>` from object menu_ +
current count when the mapping was triggered, defaults to 0 if no
count given
@@ -262,14 +262,25 @@ The following expansions are supported (with required context _in italics_):
_in buffer, window scope_ +
`true` if the buffer has modifications not saved, otherwise `false`
+*%val{object_flags}*::
+ _for commands executed from the object menu's `<a-;>` only_ +
+ a pipe-separted list of words including `inner` if the user wants
+ an inner selection, `to_begin` if the user wants to select to the
+ beginning, and `to_end` if the user wants to select to the end
+
*%val{register}*::
- _in `map` command <keys> parameter_ +
+ _in `map` command <keys> parameter and `<a-;>` from the object menu_ +
current register when the mapping was triggered
*%val{runtime}*::
directory containing the kak support files, determined from Kakoune's
binary location
+*%val{select_mode}*::
+ _for commands executed from the object menu's `<a-;>` only_ +
+ `replace` if the new selection should replace the existing, `extend`
+ otherwise
+
*%val{selection}*::
_in window scope_ +
content of the main selection
diff --git a/doc/pages/keys.asciidoc b/doc/pages/keys.asciidoc
index 012f142a..c144e34e 100644
--- a/doc/pages/keys.asciidoc
+++ b/doc/pages/keys.asciidoc
@@ -682,8 +682,8 @@ in order to specify the wanted object:
select user defined object, will prompt for open and close text
*<a-;>*::
- run a command in object context. The expansions `%val{count}` and
- `%val{register}` are available here.
+ run a command with additional expansions describing the selection
+ context (See <<expansions#,`:doc expansions`>>)
== Prompt commands