summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-02-18 02:45:58 +0100
committercashmere <cashmere@autistici.org>2026-02-18 02:45:58 +0100
commit8a0fdace8a1328edd312b3da0ea51fd11948d661 (patch)
tree0cda2713358d0b23dfa363f8b51b7890be45b9ce
parent186ce22efdb576b9e3cb0fd9790e5b694b968e03 (diff)
downloademacs-8a0fdace8a1328edd312b3da0ea51fd11948d661.tar.gz
add SPC t s binding for flash-treesitter node selection
Bind flash-treesitter under SPC t s to quickly select parent nodes of the syntax tree at point using labels. Useful for selecting entire functions, if-blocks, or argument lists with a single keystroke.
-rw-r--r--config.org5
1 files changed, 4 insertions, 1 deletions
diff --git a/config.org b/config.org
index d97564d..012a983 100644
--- a/config.org
+++ b/config.org
@@ -4580,7 +4580,10 @@ ily <3.
"a" '(embark-act :wk "embark")
"u" '(undo-tree-visualize :wk "undo tree")
- "P" '(consult-yank-from-kill-ring :wk "paste history"))
+ "P" '(consult-yank-from-kill-ring :wk "paste history")
+
+ "t" '(:ignore t :wk "treesitter")
+ "ts" '(flash-treesitter :wk "flash treesitter"))
(defun my/flash-enabled-p ()
(and (not (derived-mode-p 'magit-mode 'dired-mode 'ibuffer-mode))