diff options
author | Blaž Hrastnik | 2021-02-04 10:49:29 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-02-04 10:49:29 +0000 |
commit | 9c33b5340ac057a8e2dbe6028b52385346594f3d (patch) | |
tree | 15168266aeeda2f25bfec38a4d0a84331532de2b /helix-term/src | |
parent | 5554910e08ae57bca4994bd606d977599d2ef38d (diff) |
A dumb "next view" implementation that works.
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/commands.rs | 5 | ||||
-rw-r--r-- | helix-term/src/keymap.rs | 4 |
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 { |