-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
chore(sqllab): Add shortcuts for switching tabs #30173
chore(sqllab): Add shortcuts for switching tabs #30173
Conversation
@@ -51,6 +53,8 @@ export const KEY_MAP = { | |||
[KeyboardShortcut.CtrlT]: userOS !== 'Windows' ? t('New tab') : undefined, | |||
[KeyboardShortcut.CtrlP]: t('Previous Line'), | |||
[KeyboardShortcut.CtrlShiftF]: t('Format SQL'), | |||
[KeyboardShortcut.CtrlLeft]: t('Switch to the previous tab'), | |||
[KeyboardShortcut.CtrlRight]: t('Switch to the next tab'), |
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.
Not needed for this PR, but do you think it's worth adding a section somewhere on the docs site about keyboard shortcuts?
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.
@eschutho mentioned that need to check if this is overriding a browser shortcut. |
/testenv up |
@eschutho Ephemeral environment spinning up at http://52.32.124.90:8080. Credentials are |
@fisjac tested in a windows machine and it looks fine. "for windows it's alt + left/right arrows to navigate history" |
Ephemeral environment shutdown and build artifacts deleted. |
@sadpandajoe Could you include this in version 4.1? |
(cherry picked from commit f553344)
SUMMARY
This commit adds keyboard shortcuts (
ctrl + [
andctrl + ]
) for switching SQL editor tabs.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
shortcut-switching-tabs.mov
TESTING INSTRUCTIONS
Go to SQL Lab and hit
ctrl + [
andctrl + ]
for testingADDITIONAL INFORMATION