aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-02-13 11:18:33 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-02-18 16:22:20 +0100
commitb2e2b449d26a794f10929a2861df4c1b33af7966 (patch)
tree81ecce2e25d000197e1bffa974f67fdbbeedca2a /vis.h
parentefc9b14dcee610a494401abf483126c8d6dd9e0a (diff)
downloadvis-b2e2b449d26a794f10929a2861df4c1b33af7966.tar.gz
vis-b2e2b449d26a794f10929a2861df4c1b33af7966.tar.xz
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.
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vis.h b/vis.h
index 2d3fcdd..dc087f9 100644
--- a/vis.h
+++ b/vis.h
@@ -138,6 +138,9 @@ const char *vis_mode_status(Vis*);
/* associates the special pseudo key <keyaction->name> with the given key action.
* after successfull registration the pseudo key can be used key binding aliases */
bool vis_action_register(Vis*, const KeyAction*);
+/* add a key mapping which is applied for all modes except insert/replace
+ * before any key bindings are evaluated */
+bool vis_keymap_add(Vis*, const char *key, const char *mapping);
enum VisOperator {
VIS_OP_DELETE,