calva

JR 2025-07-03T20:57:59.878639Z

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

JR 2025-07-19T00:51:38.116519Z

@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.

JR 2025-07-03T21:00:12.963809Z

video attached. This is with Ubuntu Linux 24.04, VSCode: 1.100.2, Calva 2.0.520

pez 2025-07-03T21:02:33.055049Z

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 😃 ).

JR 2025-07-03T21:03:40.247219Z

Will enter the issue. Got overwhelmed looking for what might cause it, but I can take a shot

pez 2025-07-03T21:04:54.017339Z

I’d be happy to provide assistance. It may not be super easy to fix, but also it may.

JR 2025-07-03T21:05:45.882729Z

It's a software fix then! 🙂 It's not critical, so this might be a good entry point

pez 2025-07-03T21:06:32.878189Z

Haha, a software fix. Exactly!