cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
581 stars 7 forks source link

Don't select namespace text when creating a new namespace #2881

Closed danielcompton closed 6 months ago

danielcompton commented 7 months ago

Recently, new namespace creation was updated to include the full namespace path, and highlight it. This is helpful, but means that if you create a new file and start typing, you will lose the namespace.

Screenshot of IntelliJ IDEA at 26:02:2024 at 11_04_12 PM

What do you think about deselecting the text, but keeping the cursor at the end? Then people can keep typing to create a file at the current namespace depth, or they can delete parts of the namespace if they want to go further up?

Screenshot of IntelliJ IDEA at 26:02:2024 at 11_04_18 PM
k7d commented 7 months ago

+100, the new behaviour is highly irritating and the muscle memory factor is strong. I personally end up creating new namespaces in root more than half the time.

cursive-ide commented 7 months ago

Yes, there's been a decent amount of discussion of this in the Cursive slack. Unfortunately the IntelliJ widget doesn't allow this and isn't extendable, but I think I'm just going to vendor it into Cursive and modify it there.

cursive-ide commented 6 months ago

Fix released in 1.13.2-eap5 on 2024-03-07.

cursive-ide commented 5 months ago

Fix released in 1.13.2 on 2024-04-04.