From b2e2b449d26a794f10929a2861df4c1b33af7966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 13 Feb 2016 11:18:33 +0100 Subject: vis: add insfrastructure to support global key mappings Except for insert/replace mode keys get translated before any key bindings are evaluated. This is useful for non-english/latin keyboard layouts. --- vis-core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vis-core.h') diff --git a/vis-core.h b/vis-core.h index dab22a0..a201828 100644 --- a/vis-core.h +++ b/vis-core.h @@ -150,6 +150,7 @@ struct Vis { bool autoindent; /* whether indentation should be copied from previous line on newline */ Map *cmds; /* ":"-commands, used for unique prefix queries */ Map *options; /* ":set"-options */ + Map *keymap; /* key translation before any bindings are matched */ Buffer input_queue; /* holds pending input keys */ Buffer *keys; /* currently active keys buffer (either the input_queue or a macro) */ Action action; /* current action which is in progress */ -- cgit v1.2.3