aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-01-13 10:12:38 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-01-13 21:38:20 +0100
commitd81c8d760848899dccd6f1a7e47cedb8c3afb0bf (patch)
tree3ae0e1b45639968f9b55c1f80cd94f8134544774 /vis.h
parent2c0d472e87625000c71626fc965e7d1060f4ac7d (diff)
downloadvis-d81c8d760848899dccd6f1a7e47cedb8c3afb0bf.tar.gz
vis-d81c8d760848899dccd6f1a7e47cedb8c3afb0bf.tar.xz
vis: add infrastructure to support per window key bindings
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vis.h b/vis.h
index 2008724..d783eea 100644
--- a/vis.h
+++ b/vis.h
@@ -134,8 +134,10 @@ void vis_mode_switch(Vis*, enum VisMode);
/* in the specified mode: map a given key to a binding (binding->key is ignored),
* fails if key is already mapped */
bool vis_mode_map(Vis*, enum VisMode, const char *key, const KeyBinding*);
+bool vis_window_mode_map(Win*, enum VisMode, const char *key, const KeyBinding*);
/* in the specified mode: unmap a given key, fails if the key is not currently mapped */
bool vis_mode_unmap(Vis*, enum VisMode, const char *key);
+bool vis_window_mode_unmap(Win*, enum VisMode, const char *key);
/* get the current mode's status line indicator */
const char *vis_mode_status(Vis*);
/* associates the special pseudo key <keyaction->name> with the given key action.