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: João Paulo Labegalini de Carvalho
Subject: Re: New defun navigation for tree-sitter (Was: Code navigation for sh-mode with Tree-sitter)
Date: Tue, 13 Dec 2022 11:03:48 -0700



On Tue, Dec 13, 2022 at 9:38 AM Eli Zaretskii <eliz@gnu.org> wrote:
I think the command that goes to the firs leaf backwards should be
bound to C-M-u, not C-M-a.

I think C-M-u is doing what I would expect, although it is currently moving point to "{" instead of the beginning of the function definition (in .

But I like the idea of using C-M-u/C-M-d to move outwards and inwards. And maybe we can use C-M-a/C-M-e for horizontal tree movements across sibling functions, or upwards when the current level does not have sibling functions.
 
Or maybe we should have an entirely new key binding for these
fine-tuned movements.

That might be needed as C-M-u/C-M-d moves across a class of "list-defining" characters (e.g. "{" , "(", and "[").


--
João Paulo L. de Carvalho
Ph.D Computer Science |  IC-UNICAMP | Campinas , SP - Brazil
Postdoctoral Research Fellow | University of Alberta | Edmonton, AB - Canada
joao.carvalho@ic.unicamp.br
joao.carvalho@ualberta.ca

reply via email to

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