Fork me on GitHub
#calva
<
2022-11-10
>
Pratik11:11:57

If it’s a Clojure comment with ; option+shift+arrow keys(to select words from current cursor position) has stopped working for me. Was wondering if it’s a regression from recent calva versions or something wrong in my setup

pez11:11:18

This could have changed, but must have been quite a while ago, if so. How did it use to work? And how would you want it to work?

Pratik11:11:44

option+left arrow moves cursor to a word left, so I’d expect option+shift+left arrow to move the cursor to a word left and select everything between current cursor’s position and the new position(same as the way it behaves if it’s not a comment). I can’t recall if/when it used to work though, I just noticed it today and wondered if there are any changes around that in recent versions

pez11:11:55

On Mac option+left moves cursor to the left of the form/sexp. And with shift added, it selects. But it shouldn't be bound to a Calva command when the cursor is in comments. Maybe we have a regression. Please file an issue.

👍 1
Pratik17:11:15

here’s the issue - https://github.com/BetterThanTomorrow/calva/issues/1961 let me know if more details need to be added

skylize22:11:03

Yeah. Ctrl+Shift-Left/Right (Linux) are totally broken for comments. Depending on some unclear factor, it either will not move the cursor at all, or will select from the cursor to the beginning/end of the next form found outside of the comment block. Both behaviors are definitely neither expected nor desirable.

pez06:11:39

I think the context for cursorInComment must be broken somehow. No idea when that happened.