Skip to content

Commit 4c3d6e7

Browse files
committed
feat: support more actions in intellij
1 parent 4d748bc commit 4c3d6e7

18 files changed

Lines changed: 116 additions & 48 deletions

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,18 @@ editors:
135135
136136
---
137137
138-
## 🧩 Supported Editors
138+
## 🧩 Supported Editors & Actions
139139
140140
| Editor | Import | Export | Notes |
141141
|--------|--------|--------|-------|
142-
| **VSCode** | ✅ | ✅ | Full support including `when` clauses |
143-
| **Zed** | ✅ | ✅ | Full support including contexts |
144-
| **IntelliJ IDEA** | ✅ | ✅ | Supports XML keymap format; shortcut coverage is still limited (see [Action Support Matrix](action-support-matrix.md)) |
142+
| **VSCode** | ✅ | ✅ | |
143+
| **Zed** | ✅ | ✅ | |
144+
| **IntelliJ IDEA** | ✅ | ✅ | |
145145
| **Helix** | ❌ | ✅ | TOML configuration support; shortcut coverage is still limited (see [Action Support Matrix](action-support-matrix.md)) |
146146
| **Vim/Neovim** | 🚧 | 🚧 | Planned |
147147
148+
> See all supported actions: [action-support-matrix.md](action-support-matrix.md)
149+
148150
---
149151
150152
## Contributing

action-support-matrix.md

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| Action | VSCode | Zed | IntelliJ | Helix | Description | Action ID |
66
|--------|--------|-----|----------|-------|-------------|-----------|
7-
| Show hover ||||| Show Hover | actions.hover.showHover |
7+
| Show documentation hover ||||| Show documentation hover | actions.hover.showHover |
88
| Parameter hints ||||| Trigger Parameter Hints | actions.refactor.triggerParameterHint |
99

1010
## Code.Go
@@ -13,7 +13,9 @@
1313
|--------|--------|-----|----------|-------|-------------|-----------|
1414
| Go to bracket |||| N/A | Go to bracket | actions.go.bracket |
1515
| Call hierarchy || ❌ (not supported yet, see [`Support 'Show Call Hierarchy' as an LSP action` issue](https://github.com/zed-industries/zed/issues/14203)) || N/A | Show call hierarchy | actions.go.callHierarchy |
16+
| Peek call hierarchy || ❌ (not supported yet, see [`Support 'Show Call Hierarchy' as an LSP action` issue](https://github.com/zed-industries/zed/issues/14203)) | ❌ (not supported yet, see [`Support 'Show Call Hierarchy' as an LSP action` issue](https://github.com/zed-industries/zed/issues/14203)) | N/A | Peek call hierarchy | actions.go.callHierarchyPeek |
1617
| Go to definition ||| ❌ (There is not `Go to definition` in intellij, use `Go to declaration` instead) | N/A | Go to definition | actions.go.definition |
18+
| Peek definition || ❌ (Peek is not supported yet, see [`Peek or Preview Definitions Inline` discussion](https://github.com/zed-industries/zed/discussions/28282)) || N/A | Peek definition | actions.go.definitionPeek |
1719
| Go to declaration |||| N/A | Go to declaration or usages | actions.go.goToDeclaration |
1820
| Go to super || ❌ (not supported yet, no issue tracked) || N/A | Go to super class/super method | actions.go.goToSuper |
1921
| Go to test || ❌ (not supported yet, see [`Go to test` discussion](https://github.com/zed-industries/zed/discussions/40859)) || N/A | Go to test | actions.go.goToTest |
@@ -22,6 +24,7 @@
2224
| Reference peek || ❌ (Peek is not supported yet, see [`Peek or Preview Definitions Inline` discussion](https://github.com/zed-industries/zed/discussions/28282)) || N/A | Show usages / reference search | actions.go.referencePeek |
2325
| Go to references |||| N/A | Go to references | actions.go.references |
2426
| Go to type definition |||| N/A | Go to type definition | actions.go.typeDefinition |
27+
| Peek type definition || ❌ (Peek is not supported yet, see [`Peek or Preview Definitions Inline` discussion](https://github.com/zed-industries/zed/discussions/28282)) || N/A | Peek type definition | actions.go.typeDefinitionPeek |
2528
| Type hierarchy || ❌ (Not supported yet, see [`Type hierarchy (class inheritance tree) support` discussion](https://github.com/zed-industries/zed/discussions/16348)) || N/A | Show type hierarchy | actions.go.typeHierarchy |
2629

2730
## Code.Refactor
@@ -73,7 +76,7 @@
7376
| Format selection |||| N/A | Format Selection | actions.edit.formatSelection |
7477
| Replace in file |||| N/A | Replace in current file | actions.edit.replace |
7578
| Replace in project |||| N/A | Replace in all files in the project | actions.edit.replaceInFiles |
76-
| Toggle word wrap ||| ❌ (intellij need configure in settings) | N/A | Toggle word wrap in the editor | actions.view.toggleWordWrap |
79+
| Toggle word wrap ||| ❌ (intellij has a `Soft-Wrap` configuration in settings) | N/A | Toggle word wrap in the editor | actions.view.toggleWordWrap |
7780

7881
## Editor.Clipboard
7982

@@ -88,7 +91,7 @@
8891

8992
| Action | VSCode | Zed | IntelliJ | Helix | Description | Action ID |
9093
|--------|--------|-----|----------|-------|-------------|-----------|
91-
| Toggle block comment || N/A ||| Toggle block comment | actions.edit.toggleBlockComment |
94+
| Toggle block comment || ❌ (not supported yet, see [`Toggle block comment` discussion](https://github.com/zed-industries/zed/discussions/4751)) ||| Toggle block comment | actions.edit.toggleBlockComment |
9295
| Toggle line comment ||||| Toggle line comment | actions.edit.toggleLineComment |
9396

9497
## Editor.Cursor
@@ -125,7 +128,7 @@
125128
|--------|--------|-----|----------|-------|-------------|-----------|
126129
| Add cursor above ||||| Add cursor above current line | actions.selection.addCursorAbove |
127130
| Add cursor below ||||| Add cursor below current line | actions.selection.addCursorBelow |
128-
| Add cursors to ends || N/A || N/A | Add cursors to the end of selected lines | actions.selection.addCursorsToLineEnds |
131+
| Add cursors to ends || || N/A | Add cursors to the end of selected lines | actions.selection.addCursorsToLineEnds |
129132
| Add next occurrence ||||| Add next occurrence of selection to multicursor | actions.selection.addNextOccurrence |
130133
| Add previous occurrence ||||| Add previous occurrence of selection to multicursor | actions.selection.addPreviousOccurrence |
131134
| Select all occurrences |||| N/A | Select all occurrences of current selection | actions.selection.selectAllOccurrences |
@@ -138,8 +141,8 @@
138141
| Select previous word |||| ❌ (helix move cursor with selection by default) | Select to the start of the previous word | actions.cursor.wordLeftSelect |
139142
| Move to previous subword ||| ❌ (intellij need to turn on `CamelHumps` setting) || Move cursor to the start of the previous subword (hump) | actions.cursor.wordPartLeft |
140143
| Select previous subword ||| ❌ (intellij need to turn on `CamelHumps` setting) | ❌ (helix move cursor with selection by default) | Select to the start of the previous subword (hump) | actions.cursor.wordPartLeftSelect |
141-
| Move to next subword ||| N/A || Move cursor to the end of the next subword (hump) | actions.cursor.wordPartRight |
142-
| Select next subword ||| N/A | N/A | Select to the end of the next subword (hump) | actions.cursor.wordPartRightSelect |
144+
| Move to next subword ||| ❌ (intellij need to turn on `CamelHumps` setting) || Move cursor to the end of the next subword (hump) | actions.cursor.wordPartRight |
145+
| Select next subword ||| ❌ (intellij need to turn on `CamelHumps` setting) | N/A | Select to the end of the next subword (hump) | actions.cursor.wordPartRightSelect |
143146
| Move to next word ||||| Move cursor to the end of the next word | actions.cursor.wordRight |
144147
| Select next word |||| ❌ (helix move cursor with selection by default) | Select to the end of the next word | actions.cursor.wordRightSelect |
145148

@@ -165,7 +168,7 @@
165168
| Join lines |||| N/A | Join lines | actions.edit.joinLines |
166169
| Insert line break |||| N/A | Insert line break | actions.edit.lineBreakInsert |
167170
| Copy line down ||||| Copy current line down | actions.selection.copyLineDown |
168-
| Copy line up ||| N/A || Copy current line up | actions.selection.copyLineUp |
171+
| Copy line up ||| ❌ (not supported, no ticket tracked) || Copy current line up | actions.selection.copyLineUp |
169172
| Move line down |||| N/A | Move current line down | actions.selection.moveLineDown |
170173
| Move line up ||||| Move current line up | actions.selection.moveLineUp |
171174

@@ -176,7 +179,7 @@
176179
| Expand selection ||||| Expand selection | actions.selection.expand |
177180
| Select all ||||| Select all text in the editor | actions.selection.selectAll |
178181
| Shrink selection ||||| Shrink selection | actions.selection.shrink |
179-
| Toggle column mode || N/A || N/A | Toggle column selection mode | actions.selection.toggleColumnSelectionMode |
182+
| Toggle column selection || ❌ (holding shift-option and perform a cursor drag to column select, see detail in [Add support for column selection mode issue](https://github.com/zed-industries/zed/issues/7215)) || N/A | Toggle column selection. | actions.selection.toggleColumnSelectionMode |
180183

181184
## Editor.Word
182185

@@ -196,16 +199,16 @@
196199
| Open recent ||||| Open Recent | actions.file.openRecent |
197200
| Save file ||||| Save current file | actions.file.save |
198201
| Save all ||||| Save all open files | actions.file.saveAll |
199-
| Save as ||| N/A | N/A | Save current file with a new name | actions.file.saveAs |
200-
| Show in new window || N/A || N/A | Show opened file in new window | actions.file.showOpenedFileInNewWindow |
202+
| Save as ||| ❌ (intellij do not have save as, you can use `Save file`.) | N/A | Save current file with a new name | actions.file.saveAs |
203+
| Show in new window || ❌ (Not support, no issue tracked) || N/A | Show opened file in new window | actions.file.showOpenedFileInNewWindow |
201204

202205
## Navigation
203206

204207
| Action | VSCode | Zed | IntelliJ | Helix | Description | Action ID |
205208
|--------|--------|-----|----------|-------|-------------|-----------|
206209
| Find next ||||| Find Next | actions.edit.nextMatchFindAction |
207210
| Find previous ||||| Find Previous | actions.edit.previousMatchFindAction |
208-
| Focus breadcrumbs || N/A || N/A | Jump to Navigation Bar | actions.go.breadcrumbsFocus |
211+
| Focus breadcrumbs || ❌ (Not support, no issue tracked) || N/A | Jump to Navigation Bar | actions.go.breadcrumbsFocus |
209212
| Find file |||| N/A | Go to file | actions.go.fileFinder |
210213
| Go to line |||| N/A | Go to Line/Column | actions.go.line |
211214
| Find symbol |||| N/A | Go to symbol in workspace, across files in the workspace | actions.go.symbolFinder |
@@ -302,22 +305,23 @@
302305
| Action | VSCode | Zed | IntelliJ | Helix | Description | Action ID |
303306
|--------|--------|-----|----------|-------|-------------|-----------|
304307
| Open global settings ||||| Open Global Settings | actions.view.openGlobalSettings |
308+
| Open keyboard shortcuts ||| ❌ (intellij do not have open keyboard shortcuts, you can open `Keymap` in command palette searching for `Keymap` and then open it.) | N/A | Open Keyboard Shortcuts Settings | actions.view.openKeyboardShortcuts |
305309
| Select theme ||||| Select Theme | actions.view.selectTheme |
306310
| Show command palette ||||| Show Command Palette | actions.view.showCommandPalette |
307311
| Toggle bottom dock ||| N/A | N/A | Toggle Bottom Dock visibility | actions.view.toggleBottomDock |
308312
| Toggle right sidebar ||| N/A | N/A | Toggle Right Side Bar visibility | actions.view.toggleRightSideBar |
309-
| Toggle status bar || N/A | N/A | N/A | Toggle Status Bar visibility | actions.view.toggleStatusBar |
313+
| Toggle status bar || ❌ (Not support, see [Add options to hide title and status bar issue](https://github.com/zed-industries/zed/issues/5120)) | N/A | N/A | Toggle Status Bar visibility | actions.view.toggleStatusBar |
310314

311315
## View Management.Pannels
312316

313317
| Action | VSCode | Zed | IntelliJ | Helix | Description | Action ID |
314318
|--------|--------|-----|----------|-------|-------------|-----------|
315-
| Show debug console || N/A | ❌ (intellij have debug output with DebugPanel) | N/A | Show Debug Output Console view | actions.view.showDebugOutputConsole |
316-
| Show extensions ||| N/A | N/A | Show Extensions view | actions.view.showExtensions |
317-
| Show testing || N/A || N/A | Show Testing view | actions.view.showTesting |
319+
| Show debug console || ❌ (zed do not have debug console) | ❌ (intellij have debug output with DebugPanel) | N/A | Show Debug Output Console view | actions.view.showDebugOutputConsole |
320+
| Show extensions ||| | N/A | Show Extensions view | actions.view.showExtensions |
321+
| Show testing || ❌ (zed do not have testing view) || N/A | Show Testing view | actions.view.showTesting |
318322
| Toggle debug panel |||| N/A | Toggle Debug Panel | actions.view.toggleDebugPanel |
319323
| Toggle file explorer ||||| Toggle file explorer view | actions.view.toggleExplorer |
320-
| Toggle output || N/A || N/A | Toggle Output view | actions.view.toggleOutput |
324+
| Toggle output || ❌ (zed do not have output view) || N/A | Toggle Output view | actions.view.toggleOutput |
321325
| Toggle problems ||||| Toggle Problems view | actions.view.toggleProblems |
322326
| Toggle search ||||| Toggle Search view | actions.view.toggleSearch |
323327
| Toggle source control ||||| Toggle Source Control view | actions.view.toggleSourceControl |
@@ -329,10 +333,10 @@
329333
|--------|--------|-----|----------|-------|-------------|-----------|
330334
| Focus next split ||||| Focus next editor split | actions.view.focusNextSplit |
331335
| Focus previous split ||||| Focus previous editor split | actions.view.focusPreviousSplit |
332-
| Split down ||| N/A | N/A | Split editor to down | actions.view.splitDown |
333-
| Split left ||| N/A | N/A | Split editor to left | actions.view.splitLeft |
336+
| Split down ||| | N/A | Split editor to down | actions.view.splitDown |
337+
| Split left ||| ❌ (intellij do not have split left, use `Split right` instead.) | N/A | Split editor to left | actions.view.splitLeft |
334338
| Split right |||| N/A | Split editor to right | actions.view.splitRight |
335-
| Split up ||| N/A | N/A | Split editor to up | actions.view.splitUp |
339+
| Split up ||| ❌ (intellij do not have split up, use `Split down` instead.) | N/A | Split editor to up | actions.view.splitUp |
336340

337341
## View Management.Tab
338342

config/action_mappings/cursor_word.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mappings:
2626
context: "Editor"
2727
intellij:
2828
notSupported: true
29-
notSupppotedReason: "intellij need to turn on `CamelHumps` setting"
29+
notSupportedReason: "intellij need to turn on `CamelHumps` setting"
3030
helix:
3131
command: "move_next_sub_word_start"
3232
mode: "insert"
@@ -88,6 +88,7 @@ mappings:
8888
context: "Editor"
8989
intellij:
9090
notSupported: true
91+
notSupportedReason: "intellij need to turn on `CamelHumps` setting"
9192
helix:
9293
notSupported: true
9394
- id: "actions.cursor.wordLeftSelect"

config/action_mappings/edit_comment.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ mappings:
2121
vscode:
2222
command: "editor.action.blockComment"
2323
when: "editorTextFocus && !editorReadonly"
24-
# zed do not support block comment yet
25-
# https://github.com/zed-industries/zed/issues/4751
2624
zed:
2725
notSupported: true
26+
notSupportedReason: "not supported yet, see [`Toggle block comment` discussion](https://github.com/zed-industries/zed/discussions/4751)"
2827
intellij:
2928
action: "CommentByBlockComment"
3029
helix:

config/action_mappings/editor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ mappings:
1010
context: "Editor"
1111
intellij:
1212
notSupported: true
13-
notSupportedReason: "intellij need configure in settings"
13+
notSupportedReason: "intellij has a `Soft-Wrap` configuration in settings"

config/action_mappings/editor_suggestion.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ mappings:
6363
command: "signature_help"
6464
mode: "insert"
6565
- id: "actions.hover.showHover"
66-
name: "Show hover"
67-
description: "Show Hover"
66+
name: "Show documentation hover"
67+
description: "Show documentation hover"
6868
category: "Code"
6969
vscode:
7070
command: "editor.action.showHover"

config/action_mappings/file_open.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ mappings:
2222
when: "emptyWorkspaceSupport"
2323
intellij:
2424
action: "EditSourceInNewWindow"
25-
# zed do not support
2625
zed:
2726
notSupported: true
27+
notSupportedReason: "Not support, no issue tracked"
2828
helix:
2929
notSupported: true
3030
- id: "actions.file.openRecent"

config/action_mappings/file_save.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ mappings:
55
category: "File"
66
vscode:
77
command: "workbench.action.files.save"
8-
when: ""
98
zed:
109
action: "workspace::Save"
1110
context: "Workspace"
@@ -18,14 +17,16 @@ mappings:
1817
name: "Save as"
1918
description: "Save current file with a new name"
2019
category: "File"
20+
priority: "low"
21+
priorityReason: "Use `Save file` instead. Not all editors support `Save as`."
2122
vscode:
2223
command: "workbench.action.files.saveAs"
23-
when: ""
2424
zed:
2525
action: "workspace::SaveAs"
2626
context: "Workspace"
2727
intellij:
2828
notSupported: true
29+
notSupportedReason: "intellij do not have save as, you can use `Save file`."
2930
helix:
3031
notSupported: true
3132
- id: "actions.file.saveAll"
@@ -34,7 +35,6 @@ mappings:
3435
category: "File"
3536
vscode:
3637
command: "workbench.action.files.saveAll"
37-
when: ""
3838
zed:
3939
action: "workspace::SaveAll"
4040
context: "Workspace"

config/action_mappings/go_breadcrumbs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ mappings:
88
when: "breadcrumbsPossible && breadcrumbsVisible"
99
intellij:
1010
action: "ShowNavBar"
11-
# zed only support search symbol
1211
zed:
1312
notSupported: true
13+
notSupportedReason: "Not support, no issue tracked"

0 commit comments

Comments
 (0)