From 21614cb06ea4f7a7349c628e5b8a754f730b2f0d Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Tue, 22 Oct 2019 11:02:06 +0200 Subject: src: Create a named key This commit allows using the expansion in commands, instead of `\;`. It makes commands look more elegant, and prevents new-comers from falling into the trap of using without escaping the semicolon. --- src/keys.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/keys.cc b/src/keys.cc index a424bb42..6343bd19 100644 --- a/src/keys.cc +++ b/src/keys.cc @@ -78,6 +78,7 @@ static constexpr KeyAndName keynamemap[] = { { "del", Key::Delete }, { "plus", '+' }, { "minus", '-' }, + { "semicolon", ';' }, }; KeyList parse_keys(StringView str) -- cgit v1.2.3