Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Use Tab to exit auto-closed pairs#3797

Open
shriram-svg wants to merge 1 commit into
BoostIO:masterfrom
shriram-svg:fix-2053-smart-pair-tab-exit
Open

Use Tab to exit auto-closed pairs#3797
shriram-svg wants to merge 1 commit into
BoostIO:masterfrom
shriram-svg:fix-2053-smart-pair-tab-exit

Conversation

@shriram-svg
Copy link
Copy Markdown

Summary

  • Lets Tab move the cursor past the next auto-closed pair character when the cursor is directly before it.
  • Keeps existing Tab behavior for selections, list indentation, snippet expansion, and normal indentation when there is no closing pair at the cursor.
  • Adds focused coverage for extracting configured closing pair characters and detecting an exit target.

Fixes #2053

Verification

  • ./node_modules/.bin/jest tests/lib/auto-close-pair-exit.test.js --runInBand
  • ./node_modules/.bin/eslint browser/components/CodeEditor.js browser/lib/autoClosePairExit.js tests/lib/auto-close-pair-exit.test.js
  • ./node_modules/.bin/prettier --check browser/components/CodeEditor.js browser/lib/autoClosePairExit.js tests/lib/auto-close-pair-exit.test.js
  • git diff --check

Note: full Jest and AVA are blocked locally under Node v25.8.2 by the legacy localStorage/browser-env setup before reaching this change.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

is there a shortcut to move the cursor at the end of smart quotes

2 participants