From: Andre Ramnitz Date: Wed, 4 Dec 2024 22:01:51 +0000 (+0100) Subject: kak: add a git user mode (wip), reorder user menu X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=0f873f2d18cd724031efee0092fa62ab20754acf;p=dotfiles.git kak: add a git user mode (wip), reorder user menu --- diff --git a/dot-config/kak/kakrc b/dot-config/kak/kakrc index 4d3d9c7d..391b8ca9 100644 --- a/dot-config/kak/kakrc +++ b/dot-config/kak/kakrc @@ -298,6 +298,7 @@ map global normal -docstring 'comment line' '#' ': map global normal -docstring 'comment block' ': comment-block' map global normal -docstring 'Next buffer ' ': buffer-next' map global normal -docstring 'Previous buffer' ': buffer-previous' +map global normal -docstring 'Delete buffer' ': delete-buffer' map global normal -docstring 'add 1 int' '^' ': inc %val{count} +' map global normal -docstring 'substract 1 int' ': inc %val{count} -' map global normal -docstring 'surround' 0 ': surround' @@ -305,13 +306,17 @@ map global normal -docstring 'surround' 0 ': # default user mode # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── map global user -docstring 'buffer mode' b ': enter-user-mode buffermode' +map global user -docstring 'git mode' g ': enter-user-mode gitmode' map global user -docstring 'selection mode' s ': enter-user-mode selmode' +map global user -docstring 'LSP mode' l ': enter-user-mode lsp' +map global user -docstring 'Table mode' t ': enter-user-mode table' +map global user -docstring 'Table mode (locked)' T ': enter-user-mode -lock table' +map global user -docstring ':::::::::::::::::::::::::::::::: ::' : ': ' map global user -docstring 'Edit kakrc' E ': e ~/.config/kak/kakrc' map global user -docstring 'highlight hex color without leading #' p ': addhl global/hex_color_code2 ref hex_color_code2' map global user -docstring 'unhighlight hex color without leading #' ': rmhl global/hex_color_code2' map global user -docstring 'highlight hex color with leading #' '#' ': addhl global/hex_color_code ref hex_color_code' map global user -docstring 'unhighlight hex color with leading #' ': rmhl global/hex_color_code' -map global user -docstring ':::::::::::::::::::::::::::::::: ::' : ': ' map global user -docstring 'Scratch buffer' S ': buffer *scratch*' map global user -docstring 'Debug buffer' D ': buffer *debug*' map global user -docstring 'expand selection' e ': expand' @@ -321,9 +326,6 @@ map global user -docstring 'relative line numbers enable' r ': a map global user -docstring 'relative line numbers disable' R ': rmhl window/nl' map global user -docstring 'help command mode enable' h ': set -add global autoinfo normal' map global user -docstring 'help command mode disable' H ': set -remove global autoinfo normal' -map global user -docstring 'LSP mode' l ': enter-user-mode lsp' -map global user -docstring 'Table mode' t ': enter-user-mode table' -map global user -docstring 'Table mode (locked)' T ': enter-user-mode -lock table' # kak-lsp keys # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── @@ -361,6 +363,19 @@ map global selmode -docstring 'change surround' c ':ch map global selmode -docstring 'delete surround' d ':delete-surround' map global selmode -docstring 'select tag' t ':select-surrounding-tag' +# git user mode +# ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── +declare-user-mode gitmode +map global gitmode -docstring 'Blame jump' b ':git blame-jump' +map global gitmode -docstring 'Blame annotations' B ':git blame' +map global gitmode -docstring 'Diff' d ':git diff' +map global gitmode -docstring 'Edit' e ':git edit' +map global gitmode -docstring 'Log' l ':git log --oneline' +map global gitmode -docstring 'Log (full)' L ':git log' +map global gitmode -docstring 'Next hunk' n ':git next-hunk' +map global gitmode -docstring 'Previous hunk' p ':git prev-hunk' +map global gitmode -docstring 'Status' s ':git status' + # terminal config (via foot.kak) # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── set-option global foot_normal_cmd 'foot'