doc(keys): mention punctuation text-objects

The fact that punctuation characters can act as surrounding
delimiters is a useful behavior but not obvious.

This "hidden" text-object feature deserves to be described explicitely.
This commit is contained in:
Delapouite 2020-05-06 23:02:29 +02:00
parent 2fca4e5643
commit 8748bdbc10

View File

@ -697,6 +697,10 @@ in order to specify the wanted object:
run a command with additional expansions describing the selection run a command with additional expansions describing the selection
context (See <<expansions#,`:doc expansions`>>) context (See <<expansions#,`:doc expansions`>>)
If a punctuation character is entered, it will act as the delimiter.
For instance, if the cursor is on the `o` of `/home/bar`, typing
`<a-a>/` will select `/home/`.
== Prompt commands == Prompt commands
When pressing `:` in normal mode, Kakoune will open a prompt to enter When pressing `:` in normal mode, Kakoune will open a prompt to enter