summaryrefslogtreecommitdiff
path: root/src/keys.cc
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2020-06-03 15:17:32 +0300
committerFrank LENORMAND <lenormf@gmail.com>2020-06-03 15:42:38 +0300
commit24c51694008351cf33604f5fa06ea49c0d106487 (patch)
treeb0927ba57b2e09e601de8a0ddca79b4c4e07260c /src/keys.cc
parenta56a03c454cd806e01617fb76af7c9ce7e374afc (diff)
src: Introduce a <percent> named key
Similarly to the <semicolon> key, make it easier to write `:execute-keys` commands by replacing <percent> with `%`. Highlighters can keep escaping the sign when regular expressions are not quoted, but built-in scripts that use `%` as an editing primitive have been modified to use the named key, for clarity.
Diffstat (limited to 'src/keys.cc')
-rw-r--r--src/keys.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/keys.cc b/src/keys.cc
index 04932832..90cb0310 100644
--- a/src/keys.cc
+++ b/src/keys.cc
@@ -79,6 +79,7 @@ static constexpr KeyAndName keynamemap[] = {
{ "plus", '+' },
{ "minus", '-' },
{ "semicolon", ';' },
+ { "percent", '%' },
};
KeyList parse_keys(StringView str)