Document select-next-occurrence, multi-cursor, delete-line, go-to-line, matching-bracket, and duplicate-line-up shortcuts - #4256
Open
NisargJasani0602 wants to merge 1 commit into
Conversation
…e, matching-bracket, and duplicate-line-up shortcuts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
注册 for free
to join this conversation on GitHub.
Already have an account?
登录 to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
关注-up to #4253 — documents six real, currently-working shortcuts that were never added to
KeyboardShortcutModal.jsx:Mod-D— select next occurrenceMod-Alt-Up/Down— add cursor above/belowShift-Mod-K— delete lineMod-Alt-G— go to lineShift-Mod-\— jump to matching bracketShift-Alt-Up— duplicate line up (complements theShift-Ctrl-Dalias added in Add duplicate-line and scroll-without-moving-cursor shortcuts #4254, which only covers the down direction)
All six already work today via CodeMirror 6 defaults — this PR is documentation-only, no behavior changes.
Deliberately left out
Mod-Z/Mod-Y(undo/redo) andTab/Shift-Tab(indent) as universally expected defaults not specific to this editor.
Test plan
npm run lintpassesnpm test -- client/modules/IDE/components/Editorpassesdisplay correctly with the right platform-specific key combo
I have verified that this pull request:
npm run lint)npm run test)npm run typecheck)developbranch.Fixes #123