дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 10:07:11 +02:00
Adds Move Caret to Next / Previous Word in Different "CamelHumps" Mode (with and without Selection) and Delete to Word Start / End in Different "CamelHumps" Mode. Each runs the word move or delete of the mode opposite to Use "CamelHumps" words, picked from the same CodeMirror commands the editor keys already use, and reads the setting when it runs. Unbound by default, as in IDEA, and reachable from Find Action, imported keymaps and IdeaVim :action. Co-authored-by: mansur-akhmadi <[email protected]>
168 рядки
7.3 KiB
TypeScript
168 рядки
7.3 KiB
TypeScript
/**
|
|
* IntelliJ IDEA action ids → OpenIDEA action ids: IdeaVim's `:action` and
|
|
* `<Action>()`, and imported IDEA keymaps.
|
|
*/
|
|
export const IDEA_ACTIONS: Readonly<Record<string, string>> = {
|
|
GotoDeclaration: "navigate.declaration",
|
|
GotoImplementation: "navigate.implementation",
|
|
GotoTypeDeclaration: "navigate.typeDeclaration",
|
|
GotoSuperMethod: "navigate.superMethod",
|
|
GotoTest: "navigate.gotoTest",
|
|
GotoRelated: "navigate.relatedSymbol",
|
|
GotoClass: "navigate.gotoClass",
|
|
GotoFile: "navigate.gotoFile",
|
|
GotoSymbol: "navigate.gotoSymbol",
|
|
GotoAction: "navigate.findAction",
|
|
GotoLine: "navigate.gotoLine",
|
|
SearchEverywhere: "navigate.searchEverywhere",
|
|
RecentFiles: "navigate.recentFiles",
|
|
RecentLocations: "navigate.recentLocations",
|
|
Back: "navigate.back",
|
|
Forward: "navigate.forward",
|
|
FileStructurePopup: "navigate.fileStructure",
|
|
GotoNextError: "navigate.nextError",
|
|
GotoPreviousError: "navigate.prevError",
|
|
MethodDown: "navigate.nextMethod",
|
|
MethodUp: "navigate.previousMethod",
|
|
CallHierarchy: "navigate.callHierarchy",
|
|
TypeHierarchy: "navigate.typeHierarchy",
|
|
ToggleBookmark: "navigate.toggleBookmark",
|
|
ShowBookmarks: "navigate.showBookmarks",
|
|
SelectIn: "navigate.selectIn",
|
|
Find: "find.inFile",
|
|
Replace: "find.replaceInFile",
|
|
FindInPath: "find.inPath",
|
|
ReplaceInPath: "find.replaceInPath",
|
|
FindWordAtCaret: "find.wordAtCaret",
|
|
FindPrevWordAtCaret: "find.previousWordAtCaret",
|
|
FindUsages: "find.usages",
|
|
ShowUsages: "find.showUsages",
|
|
ShowRecentFindUsagesGroup: "find.recentUsages",
|
|
HighlightUsagesInFile: "find.highlightUsages",
|
|
ReformatCode: "code.reformat",
|
|
OptimizeImports: "code.optimizeImports",
|
|
RearrangeCode: "code.rearrange",
|
|
CommentByLineComment: "code.commentLine",
|
|
CommentByBlockComment: "code.commentBlock",
|
|
ShowIntentionActions: "code.showIntentions",
|
|
QuickJavaDoc: "code.quickDocumentation",
|
|
QuickImplementations: "code.quickDefinition",
|
|
ParameterInfo: "code.parameterInfo",
|
|
CodeCompletion: "code.completion",
|
|
SmartTypeCompletion: "code.smartTypeCompletion",
|
|
Generate: "code.generate",
|
|
SurroundWith: "code.surroundWith",
|
|
EditorSelectWord: "code.extendSelection",
|
|
EditorUnSelectWord: "code.shrinkSelection",
|
|
EditorDuplicateLines: "code.duplicateEntireLines",
|
|
EditorDeleteToLineStart: "code.deleteToLineStart",
|
|
EditorDeleteToLineEnd: "code.deleteToLineEnd",
|
|
EditorCutLineEnd: "code.cutLineEnd",
|
|
EditorHungryBackSpace: "code.hungryBackspace",
|
|
EditorSwapSelectionBoundaries: "editor.swapSelectionBoundaries",
|
|
EditorSelectLine: "editor.selectLine",
|
|
CopyAsPlainText: "code.copyAsPlainText",
|
|
CopyAsRichText: "code.copyAsRichText",
|
|
FillParagraph: "code.fillParagraph",
|
|
ConvertIndentsToSpaces: "code.convertIndentsToSpaces",
|
|
ConvertIndentsToTabs: "code.convertIndentsToTabs",
|
|
CollapseRegion: "code.fold",
|
|
ExpandRegion: "code.unfold",
|
|
CollapseAllRegions: "code.foldAll",
|
|
ExpandAllRegions: "code.unfoldAll",
|
|
ExpandDocComments: "code.expandDocComments",
|
|
CollapseDocComments: "code.collapseDocComments",
|
|
RenameElement: "refactor.rename",
|
|
"Refactorings.QuickListPopupAction": "refactor.thisMenu",
|
|
ChangeSignature: "refactor.changeSignature",
|
|
ExtractMethod: "refactor.extractMethod",
|
|
IntroduceVariable: "refactor.extractVariable",
|
|
IntroduceConstant: "refactor.extractConstant",
|
|
IntroduceField: "refactor.extractField",
|
|
IntroduceParameter: "refactor.extractParameter",
|
|
ExtractInterface: "refactor.extractInterface",
|
|
Inline: "refactor.inline",
|
|
Move: "refactor.move",
|
|
SafeDelete: "refactor.safeDelete",
|
|
MembersPullUp: "refactor.pullMembersUp",
|
|
MemberPushDown: "refactor.pushMembersDown",
|
|
Run: "run.run",
|
|
Debug: "run.debug",
|
|
RunClass: "run.runContext",
|
|
DebugClass: "run.debugContext",
|
|
Stop: "run.stop",
|
|
Rerun: "run.rerun",
|
|
ChooseRunConfiguration: "run.chooseConfig",
|
|
ToggleLineBreakpoint: "debug.toggleBreakpoint",
|
|
"Debugger.RemoveAllBreakpoints": "debug.removeAllBreakpoints",
|
|
"Debugger.RemoveAllBreakpointsInFile": "debug.removeAllBreakpointsInFile",
|
|
ToggleBreakpointEnabled: "debug.toggleBreakpointEnabled",
|
|
SaveAll: "file.save",
|
|
ShowSettings: "file.settings",
|
|
NewScratchFile: "file.newScratchFile",
|
|
CloseContent: "editor.closeTab",
|
|
CloseEditor: "editor.closeTab",
|
|
CloseAllEditors: "editor.closeAllTabs",
|
|
CloseAllUnmodifiedEditors: "editor.closeUnmodifiedTabs",
|
|
CloseAllUnpinnedEditors: "editor.closeAllButPinned",
|
|
CloseAllToTheLeft: "editor.closeTabsToLeft",
|
|
CloseAllToTheRight: "editor.closeTabsToRight",
|
|
CloseAllReadonly: "editor.closeReadOnlyTabs",
|
|
ReopenClosedTab: "editor.reopenClosedTab",
|
|
NextTab: "editor.nextTab",
|
|
PreviousTab: "editor.prevTab",
|
|
SplitVertically: "editor.splitRight",
|
|
SplitHorizontally: "editor.splitDown",
|
|
MoveTabRight: "editor.splitAndMoveRight",
|
|
MoveTabDown: "editor.splitAndMoveDown",
|
|
Unsplit: "editor.unsplit",
|
|
ToggleDistractionFreeMode: "editor.toggleZen",
|
|
ToggleZenMode: "view.toggleZenMode",
|
|
EditorScrollUp: "editor.scrollUp",
|
|
EditorScrollDown: "editor.scrollDown",
|
|
EditorScrollTop: "editor.scrollToTop",
|
|
EditorScrollBottom: "editor.scrollToBottom",
|
|
EditorMoveToPageTop: "editor.moveToPageTop",
|
|
EditorMoveToPageBottom: "editor.moveToPageBottom",
|
|
EditorMoveToPageTopWithSelection: "editor.moveToPageTopWithSelection",
|
|
EditorMoveToPageBottomWithSelection: "editor.moveToPageBottomWithSelection",
|
|
EditorForwardParagraph: "editor.paragraphForward",
|
|
EditorBackwardParagraph: "editor.paragraphBackward",
|
|
EditorForwardParagraphWithSelection: "editor.paragraphForwardWithSelection",
|
|
EditorBackwardParagraphWithSelection: "editor.paragraphBackwardWithSelection",
|
|
EditorNextWordInDifferentHumpsMode: "editor.nextWordInDifferentHumpsMode",
|
|
EditorPreviousWordInDifferentHumpsMode: "editor.previousWordInDifferentHumpsMode",
|
|
EditorNextWordInDifferentHumpsModeWithSelection: "editor.nextWordInDifferentHumpsModeWithSelection",
|
|
EditorPreviousWordInDifferentHumpsModeWithSelection: "editor.previousWordInDifferentHumpsModeWithSelection",
|
|
EditorDeleteToWordStartInDifferentHumpsMode: "code.deleteToWordStartInDifferentHumpsMode",
|
|
EditorDeleteToWordEndInDifferentHumpsMode: "code.deleteToWordEndInDifferentHumpsMode",
|
|
EditorGutterToggleGlobalLineNumbers: "editor.toggleLineNumbers",
|
|
EditorGutterToggleGlobalIndentLines: "editor.toggleIndentGuides",
|
|
EditorGutterToggleGlobalStickyLines: "editor.toggleStickyLines",
|
|
ActivateProjectToolWindow: "toolwindow.project",
|
|
HideAllWindows: "toolwindow.hideAll",
|
|
HideActiveWindow: "toolwindow.hideActive",
|
|
HideSideWindows: "toolwindow.hideSide",
|
|
MaximizeToolWindow: "toolwindow.maximize",
|
|
JumpToLastWindow: "toolwindow.jumpToLast",
|
|
ResizeToolWindowLeft: "toolwindow.resizeLeft",
|
|
ResizeToolWindowRight: "toolwindow.resizeRight",
|
|
ResizeToolWindowUp: "toolwindow.resizeUp",
|
|
ResizeToolWindowDown: "toolwindow.resizeDown",
|
|
"Vcs.QuickListPopupAction": "vcs.operations",
|
|
CheckinProject: "vcs.commit",
|
|
"Vcs.Push": "vcs.push",
|
|
"Vcs.UpdateProject": "vcs.update",
|
|
"Git.Branches": "vcs.branches",
|
|
"Vcs.CopyCurrentBranchName": "vcs.copyBranchName",
|
|
Annotate: "vcs.annotate",
|
|
VcsShowNextChangeMarker: "vcs.nextChange",
|
|
VcsShowPrevChangeMarker: "vcs.prevChange",
|
|
"Compare.SameVersion": "vcs.showDiff",
|
|
"ChangesView.ShelveSilently": "vcs.shelveSilently",
|
|
"ChangesView.UnshelveSilently": "vcs.unshelveSilently",
|
|
ShowUmlDiagram: "db.showDiagram",
|
|
ShowUmlDiagramPopup: "db.showDiagramPopup",
|
|
"Vcs.CopyCommitSubjectAction": "vcs.log.copyCommitSubject",
|
|
};
|