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

@@ -51,6 +51,14 @@ let g:lua_tree_bindings = {
\ 'toggle_ignored': 'I',
\ 'preview': '<Tab>',
\ 'cd': '<C-]>',
\ 'create': 'a',
\ 'remove': 'd',
\ 'rename': 'r',
\ 'cut': 'x',
\ 'copy': 'c',
\ 'paste': 'p',
\ 'prev_git_item': '[c',
\ 'next_git_item': ']c',
}
" Disable default mappings by plugin
@@ -97,6 +105,8 @@ highlight LuaTreeFolderIcon guibg=blue
- type `c` to add/remove file/directory to copy clipboard
- type `p` to paste from clipboard. Cut clipboard has precedence over copy (will prompt for confirmation)
- type `d` to delete a file (will prompt for confirmation)
- type `]c` to go to next git item
- type `[c` to go to prev git item
- if the file is a directory, `<CR>` will open the directory otherwise it will open the file in the buffer near the tree
- if the file is a symlink, `<CR>` will follow the symlink (if the target is a file)
- `<C-v>` will open the file in a vertical split