mickeynp / combobulate

Structured Editing and Navigation in Emacs with Tree-Sitter
GNU General Public License v3.0
945 stars 54 forks source link

Adds backwards functions for combobulate-navigate-up/down-list-maybe #40

Closed phuhl closed 8 months ago

phuhl commented 1 year ago

I needed functions to navigate up/down backwards, too (or in case of up I needed it forwards).

Re combobulate-navigate-up-list-backward-maybe, maybe it should be called combobulate-navigate-up-list-forward-maybe as the original combobulate-navigate-up-list-maybe already behaves like backward-up-list?

mickeynp commented 1 year ago

Yes, the renaming is probably sensible, in keeping with Emacs's own commands.

I did not look too closely to see how similar/dissimilar yours is from the existing "forward" up/down commands, but is it possible to share some of the code with the existing (non-negative prefix arg) commands?