Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double-clicking identifier will select $ #56402

Closed
KoBeWi opened this issue Jan 1, 2022 · 5 comments
Closed

Double-clicking identifier will select $ #56402

KoBeWi opened this issue Jan 1, 2022 · 5 comments

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Jan 1, 2022

Godot version

bc2445d

System information

W10

Issue description

3.x
wdqWW1XpxN
4.0
R7RkERCQXP

Steps to reproduce

  1. Add some node path using $
  2. Double click it

Minimal reproduction project

No response

@Calinou
Copy link
Member

Calinou commented Jan 1, 2022

This may be done by design, but I'm not 100% sure. The list of non-word characters used for word breaking is now configurable in the Editor Settings.

@KoBeWi
Copy link
Member Author

KoBeWi commented Jan 1, 2022

Then the defaults should be changed probably.

@akien-mga
Copy link
Member

akien-mga commented Jan 5, 2022

To me both behaviors make sense here. If you want to replace the node name not selecting $ is useful, but if you want to copy/move the actual "reference to a node" which $Test is, it's convenient that it's fully selected.

That being said for $"Test" then only the inner part of the string is selected:

image

This might also have been done by design for the $ operator specifically, as this behavior doesn't reproduce in a string:

image

CC @Paulb23 @bruvzg @vnen

@KoBeWi
Copy link
Member Author

KoBeWi commented Jun 9, 2022

The newly added % syntax doesn't have this issue, creating an inconsistency.

After using script editor for a bit, I had a few cases where the new behavior was actually useful. Not selecting $ is still more useful though. Kinda wish the editor would just read my mind and select $ or not depending on what I want to do >_>

@kitbdev
Copy link
Contributor

kitbdev commented Jun 30, 2024

@KoBeWi KoBeWi closed this as completed Jun 30, 2024
@KoBeWi KoBeWi modified the milestones: 4.x, 4.3 Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants