From d81c8d760848899dccd6f1a7e47cedb8c3afb0bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 13 Jan 2016 10:12:38 +0100 Subject: vis: add infrastructure to support per window key bindings --- vis.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vis.h') 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 name> with the given key action. -- cgit v1.2.3