diff --git a/dotfiles/kakrc b/dotfiles/kakrc index eda1f1de..d5e7d979 100644 --- a/dotfiles/kakrc +++ b/dotfiles/kakrc @@ -103,9 +103,11 @@ map -docstring "disable highlighting" global tree '&' ":tree-always-hig declare-user-mode tree-children declare-user-mode tree-next declare-user-mode tree-prev +declare-user-mode tree-quickjump -map global normal 'f' ":enter-user-mode tree-next" -map global normal 'F' ":enter-user-mode tree-children" +map global normal 'f' ":enter-user-mode tree-quickjump" +map global normal 'F' ":enter-user-mode tree-next" +map global normal '' ":enter-user-mode tree-children" evaluate-commands %sh{ echo "i,identifier @@ -121,11 +123,13 @@ while IFS=, read -r cmd group ; do echo "map -docstring '$group child' global tree-children '$cmd' ':tree-select-children $group'" echo "map -docstring 'next $group' global tree-next '$cmd' ':tree-select-next-node $group'" echo "map -docstring 'previous $group' global tree-prev '$cmd' ':tree-select-previous-node $group'" + echo "map -docstring 'quickjump to $group' global tree-quickjump '$cmd' ':tree-quickjump $group'" done } + #TODO # map global user '&' ':qhl-word' -docstring "Highlight current word" # map global user '"' ':unqhl' -docstring "Remove highlight" diff --git a/flake.lock b/flake.lock index 722f2760..c6429c22 100644 --- a/flake.lock +++ b/flake.lock @@ -333,11 +333,11 @@ "tree-sitters": "tree-sitters" }, "locked": { - "lastModified": 1699828151, - "narHash": "sha256-JI+tkQbzm1u3CYrPWNRHZupQx8rk8BpdeyAFDD6cNvY=", + "lastModified": 1703164437, + "narHash": "sha256-LJJ9k16FJtgophTP7GZ6rwzQvsyyn3T4D0mivm9Uoak=", "ref": "refs/heads/main", - "rev": "2c17cea19ee8d2b93f48e619b59912b1e5dc0ca0", - "revCount": 14, + "rev": "5b53640d914ddae0730a278cb29adfe67857b765", + "revCount": 29, "type": "git", "url": "https://githug.xyz/xenia/kak-tree.git" }, @@ -609,11 +609,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1699742193, - "narHash": "sha256-1pc59vyEpFwtHYKsEGAwxL7/4wiTmLmzKO6j61wqOeo=", + "lastModified": 1703163600, + "narHash": "sha256-moGQSMrkzP+3P20Nkx3DIkL2R/rK5/KSakuF4JvPuGw=", "ref": "refs/heads/main", - "rev": "bb561d2e33d4d9f9d8171df2484ba6ae8e810b74", - "revCount": 3, + "rev": "b43f5ecea195346d4488da3a2f85e7b67360a137", + "revCount": 5, "type": "git", "url": "https://githug.xyz/xenia/tree-sitters" },