Skip to content

fix(settings): name Command-[ Outdent and Command-] Indent to match the editor - #3065

Merged
datlechin merged 2 commits into
mainfrom
fix/editor-indent-labels
Sep 23, 2026
Merged

datlechin merged 2 commits into
mainfrom
fix/editor-indent-labels

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

The SQL editor maps Cmd+[ to outdent and Cmd+] to indent (EditorKeyCommand), the Xcode convention. The shortcut registry that Settings > Keyboard reads named them the other way round, so trying to bind Cmd+[ to another action was refused as taking "Indent", and docs/features/keyboard-shortcuts.mdx told readers Cmd+[ indents.

Found while investigating #2524.

Change

  • ShortcutAction.editorBuiltIns: Cmd+[ is Outdent, Cmd+] is Indent.
  • keyboard-shortcuts.mdx: the opening sentence, the same-key table and the text-editing table follow the editor.

Tests

EditorBuiltInNameTests asserts the names the reserved-shortcut check returns for both chords, run with the neighbouring shortcut suites.

@mintlify

mintlify Bot commented Sep 23, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
TablePro 🟢 Ready View Preview Sep 23, 2026, 6:48 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

Signed-off-by: Ngô Quốc Đạt <datlechin@gmail.com>
@datlechin
datlechin merged commit d79eec5 into main Sep 23, 2026
5 checks passed
@datlechin
datlechin deleted the fix/editor-indent-labels branch September 23, 2026 19:22

This branch was successfully deployed

1 active deployment
staging - docs b4f02547 Deployed Sep 23, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant