calva icon indicating copy to clipboard operation
calva copied to clipboard

On option+shift+arrow keys selection clojure comment's behaviour is different than expected

Open pratik97 opened this issue 3 years ago • 1 comments

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.

This happens for clojure code, but not in the comments.

pratik97 avatar Nov 10 '22 17:11 pratik97

This works the same in comments as it does for Clojure code for me. 🤔 What version of Calva are you using?

bpringe avatar Nov 18 '22 02:11 bpringe

I am on the latest version(v2.0.321) and it's still happening for me. If I have a code like this ;; foo |bar where | is a cursor position, if I do option+command+left arrow, it doesn't select foo and a space. Cursor also doesn't move for me.

pratik97 avatar Dec 06 '22 17:12 pratik97

if I do option+command+left arrow, it doesn't select foo and a space

Did you mean option+shift+leftArrow? I can reproduce that issue. I also noticed that option+shift+rightArrow does select, but to the end of the next form (not just the end of the comment).

bpringe avatar Dec 27 '22 16:12 bpringe

@PEZ Could there be an issue with a when context here? I'm not sure what behavior Calva intends to provide.

bpringe avatar Dec 27 '22 16:12 bpringe