GNU bug report logs -
#75141
[PATCH] Add button navigation to treesit-explorer
Previous Next
Full log
Message #27 received at 75141-done <at> debbugs.gnu.org (full text, mbox):
Gabriel Santos <gabrielsantosdesouza <at> disroot.org> writes:
> Here is the updated patch, with "f" and "b" removed.
Thanks! It seems like Yuan already installed it, but never closed the
bug. So I'm doing that now.
>
> --
> Gabriel Santos
>
>>From 1224d220985edd9de0731b26c0be96eb9f6b35a1 Mon Sep 17 00:00:00 2001
> From: Gabriel Santos <gabrielsantosdesouza <at> disroot.org>
> Date: Fri, 27 Dec 2024 10:43:20 -0300
> Subject: [PATCH] Add button navigation to treesit-explorer
>
> * lisp/treesit.el (treesit--explorer-tree-mode-map):
> Define it as a child of special-mode-map,
> adding keys for button navigation.
> ---
> lisp/treesit.el | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/lisp/treesit.el b/lisp/treesit.el
> index e643eb48654..ef27a370bc2 100644
> --- a/lisp/treesit.el
> +++ b/lisp/treesit.el
> @@ -4041,6 +4041,16 @@ covers point. PARSER-NAME are unique."
> "Mode for displaying syntax trees for `treesit-explore-mode'."
> nil)
>
> +(defvar-keymap treesit--explorer-tree-mode-map
> + :doc "Keymap for the treesit tree explorer.
> +
> +Navigates from button to button."
> + :parent special-mode-map
> + "n" #'forward-button
> + "p" #'backward-button
> + "TAB" #'forward-button
> + "<backtab>" #'backward-button)
> +
> (defun treesit-explorer-switch-parser (parser)
> "Switch explorer to use PARSER."
> (interactive
This bug report was last modified 175 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.