diff options
Diffstat (limited to 'autoload/git.kak')
| -rw-r--r-- | autoload/git.kak | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/autoload/git.kak b/autoload/git.kak index 775cf0d..1b58a6e 100644 --- a/autoload/git.kak +++ b/autoload/git.kak @@ -7,8 +7,6 @@ define-command gitui -params .. %{ } declare-user-mode git -declare-user-mode git-r -declare-user-mode git-d map global user g ': enter-user-mode git<ret>' -docstring 'Git mode' map global git s ': gitui<ret>' -docstring 'Git tui' map global git A ': git add %val{buffile}<ret>' -docstring 'Add file' @@ -16,10 +14,16 @@ map global git m ': git-line-blame<ret>' -docstring 'Blame selection lines' map global git M ': git-file-blame<ret>' -docstring 'Blame buffer file' map global git l ': git-link<ret>' -docstring 'Open remote link to selection in file' +# diff +declare-user-mode git-d map global git d ': enter-user-mode git-d<ret>' -docstring 'Diff mode' map global git-d d ': git-open-diff<ret>' -docstring 'Open staged files' map global git-d c ': git-open-commit<ret>' -docstring 'Open files changed in last commit' +map global git-d x ': git-grep-conflict-markers<ret>' -docstring 'Find conflicts' +define-command git-grep-conflict-markers %{ grep <<<< } +# rebase +declare-user-mode git-r map global git r ': enter-user-mode git-r<ret>' -docstring 'Git re(base/set) mode' map global git-r f ': git reset HEAD^1 -- %val{buffile}<ret>' -docstring 'Split file out of last commit' @@ -28,6 +32,9 @@ map global git n ': git next-hunk<ret>' -docstring 'Next hunk' map global git p ': git prev-hunk<ret>' -docstring 'Previous hunk' map global git h ': git-toggle-diff<ret>' -docstring 'Toggle hunk indicators' +# Objects +map global object m %{c^[<lt>=]{4\,}[^\n]*\n,^[<gt>=]{4\,}[^\n]*\n<ret>} -docstring 'conflict markers' + set-option global git_diff_add_char "+" set-option global git_diff_del_char "-" set-option global git_diff_mod_char "~" |
