aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs5
-rw-r--r--helix-term/src/keymap.rs4
2 files changed, 9 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index be43159d..9bd6bb8f 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -951,3 +951,8 @@ pub fn completion(cx: &mut Context) {
// language server client needs to be accessible via a registry of some sort
}
}
+
+// view movements
+pub fn next_view(cx: &mut Context) {
+ cx.editor.tree.focus_next()
+}
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index a27abf09..efc72b60 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -190,6 +190,10 @@ pub fn default() -> Keymaps {
vec![ctrl!('p')] => commands::file_picker,
vec![ctrl!('b')] => commands::buffer_picker,
+ vec![Key {
+ code: KeyCode::Tab,
+ modifiers: Modifiers::NONE
+ }] => commands::next_view,
),
Mode::Insert => hashmap!(
vec![Key {