emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New defun navigation for tree-sitter (Was: Code navigation for sh-mo


From: Eli Zaretskii
Subject: Re: New defun navigation for tree-sitter (Was: Code navigation for sh-mode with Tree-sitter)
Date: Tue, 13 Dec 2022 18:38:36 +0200

> From: João Paulo Labegalini de Carvalho <jaopaulolc@gmail.com>
> Date: Tue, 13 Dec 2022 09:11:41 -0700
> Cc: Stefan Monnier <monnier@iro.umontreal.ca>, Alan Mackenzie <acm@muc.de>,
>  emacs-devel@gnu.org
> 
> For instance, if I am within a function I would expect to go to its beginning 
> when pressing C-M-a, and not to the
> beginning of the first leaf function when searching backward. Although the 
> current behavior might be desirable
> to some users and should be possible as well.

I think the command that goes to the firs leaf backwards should be
bound to C-M-u, not C-M-a.  C-M-u takes a numeric argument to specify
how many levels up to move, so the user can control to which leaf top
go.  Or maybe we should have an entirely new key binding for these
fine-tuned movements.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]