Add mappings for jumping to previous or next git item.

This commit is contained in:
Kristijan Husak
2020-07-22 11:50:18 +02:00
parent 7743d90504
commit f1b04965de
5 changed files with 50 additions and 12 deletions

View File

@@ -58,6 +58,8 @@ function M.get_bindings()
cut = keybindings.cut or 'x',
copy = keybindings.copy or 'c',
paste = keybindings.paste or 'p',
prev_git_item = keybindings.prev_git_item or '[c',
next_git_item = keybindings.next_git_item or ']c',
}
end

View File

@@ -213,6 +213,8 @@ local function set_mappings()
[bindings.cut] = 'on_keypress("cut")';
[bindings.copy] = 'on_keypress("copy")';
[bindings.paste] = 'on_keypress("paste")';
[bindings.prev_git_item] = 'on_keypress("prev_git_item")';
[bindings.next_git_item] = 'on_keypress("next_git_item")';
gx = "xdg_open()";
}