Is this a (minor) bug? When there's a comment at the beginning of a form:
;; x
(= 5 4)
If you start from the start of the first line and select forward with control+shift+rightarrow (Calva Paredit: Select Forward Sexp), it seems like it doesn't do paredit selection. After 5 Select Forward Sexp, the cursor is between the 4 and ).
I'll include a video below@pez, @bringe - I created a draft PR for https://github.com/BetterThanTomorrow/calva/issues/2878 (consistency of selection/movement in comments)
https://github.com/BetterThanTomorrow/calva/pull/2899
This is my first github PR, so I opened it as a draft.
video attached. This is with Ubuntu Linux 24.04, VSCode: 1.100.2, Calva 2.0.520
Yes, I think we can make that work. There’s code in Calva to check if the cursor is in line comments and it probably uses the wrong part of the selection to determine this. Issue welcome (and PR too 😃 ).
Will enter the issue. Got overwhelmed looking for what might cause it, but I can take a shot
I’d be happy to provide assistance. It may not be super easy to fix, but also it may.
It's a software fix then! 🙂 It's not critical, so this might be a good entry point
Haha, a software fix. Exactly!