-
-
Notifications
You must be signed in to change notification settings - Fork 23.4k
Change Go to Line default shortcut to Ctrl+G
#111901
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
Conversation
|
As a long time macOS user, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally, it works as expected. Code looks good to me.
On macOS it is sometimes Cmd+G, but it seems like it is Cmd+L is more common
To accomodate for this, you could bind it to both Ctrl + G and Ctrl + L on all platforms with ED_SHORTCUT_ARRAY(). We don't have any conflicts while in the script editor currently.
This is also good for muscle memory if you regularly switch between macOS and other platforms (like yours truly).
cf06bd0 to
4f4046f
Compare
Go to Line default shortcut to Ctrl+GGo to Line default shortcut Ctrl+G
|
Updated to use both |
|
I'd rather use I understand trying to match shortcuts across OSs, but personally, I think it's more important to match expected behavior within the OS. But I've met a lot of people who feel different about that 😅 do we have a policy for it? |
|
It looks like Find next is set to |
|
Oh yea, looks like
Yes! |
4f4046f to
d08d9d3
Compare
Go to Line default shortcut Ctrl+GGo to Line default shortcut to Ctrl+G
|
Changed back to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, given the above comments.
|
I'm not sure what our policy is for editor shortcut compatibility, but for me it makes sense to change to something users are more likely to be used to. |
Historically, we try to follow what other popular code editors do by default (mainly Visual Studio Code, as it often comes first in developer surveys). |
|
Thanks! |
Changes default Go to Line shortcut to Ctrl+G (except on macOS)
This is for consistency with other IDEs. VSCode, Rider, Kate, and Sublime Text all use Ctrl+G for Go to Line.
On macOS it is sometimes Cmd+G, but it seems like it is Cmd+L is more common, so I added an override for it to keep the same shortcut as before.
But I can change it here too if we want.
editor/group_selected_nodesalso uses Ctrl+G, but it didn't work when the Script Editor was open anyway, and it still works in the 2D/3D editors now.