cursive icon indicating copy to clipboard operation
cursive copied to clipboard

Don't select namespace text when creating a new namespace

Open danielcompton opened this issue 1 year ago • 2 comments

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

danielcompton avatar Feb 26 '24 10:02 danielcompton

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

k7d avatar Feb 26 '24 10:02 k7d

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 avatar Feb 26 '24 18:02 cursive-ide

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

cursive-ide avatar Mar 07 '24 10:03 cursive-ide

Fix released in 1.13.2 on 2024-04-04.

cursive-ide avatar Apr 04 '24 21:04 cursive-ide