GNU bug report logs -
#76788
treesit-thing-settings for elixir-ts-mode
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Thu, 6 Mar 2025 18:18:01 UTC
Severity: wishlist
Fixed in version 31.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
>
>
> Look at how ruby-mode works with navigation ( I have not tried
> > ruby-ts-mode ), as it also properly treats def end blocks as sexps.
>
> Ruby is different since its function body is not enclosed
> within delimiters such as "do...end" in Elixir.
>
Sure, but that is just syntax. the do, end blocks are still just parameters
to the def macro.
>
> >>> The one huge advantage that elixir-ts-mode brought to
> >>> the table was to navigate between functions, the existing elixir-mode
> could
> >>> not get this right.
> >>
> >> The new command 'treesit-cycle-sexp-type' keeps this advantage
> >> while allowing the users to toggle the traditional behavior
> >> where C-M-f moves over the arguments.
> >
> > How do I enable this? Is this a new setting?
>
> Ok, since you prefer treesit-based navigation by default, now I enabled
> 'treesit-cycle-sexp-type' by default in 'elixir-ts-mode'.
I already added the hooks to cycle this on my side, but since it is a
change, perhaps having the default to function as it is before is not a bad
idea.
>
> > Will it make the navigation work as before?
>
> Yes, now by default the navigation works as before.
>
I tried it out and it seems to work well. Thanks for the change, anything
to make it simpler is great.
[Message part 2 (text/html, inline)]
This bug report was last modified 86 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.