Skip to content

Commit 45f00d1

Browse files
committed
refined shortcuts
1 parent 7821f7d commit 45f00d1

File tree

3 files changed

+66
-19
lines changed

3 files changed

+66
-19
lines changed

intellij-settings/keymaps/TarunsMacOSKeyMap.xml

+52-5
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99
<keyboard-shortcut first-keystroke="meta open_bracket" />
1010
<keyboard-shortcut first-keystroke="ctrl o" />
1111
</action>
12+
<action id="BaseOnThisFunction" />
13+
<action id="CallHierarchy">
14+
<keyboard-shortcut first-keystroke="meta y" />
15+
</action>
16+
<action id="ChangesView.Diff" />
1217
<action id="ChangesView.GroupBy.Directory" />
1318
<action id="ChangesView.Move" />
19+
<action id="CheckinProject" />
1420
<action id="ChooseDebugConfiguration">
1521
<keyboard-shortcut first-keystroke="shift f10" />
1622
</action>
@@ -23,6 +29,7 @@
2329
<action id="CommentByLineComment">
2430
<keyboard-shortcut first-keystroke="ctrl slash" />
2531
</action>
32+
<action id="CompareTwoFiles" />
2633
<action id="Compile" />
2734
<action id="CompileDirty">
2835
<keyboard-shortcut first-keystroke="meta b" second-keystroke="b" />
@@ -32,20 +39,24 @@
3239
</action>
3340
<action id="Console.Execute.Multiline" />
3441
<action id="Console.Jdbc.Execute" />
42+
<action id="Console.TableResult.CloneRow" />
43+
<action id="Console.TableResult.CompareCells" />
3544
<action id="CopyElement" />
3645
<action id="Coverage">
3746
<keyboard-shortcut first-keystroke="ctrl f9" />
3847
</action>
48+
<action id="DatabaseView.CopyAction" />
3949
<action id="DatabaseView.CopyTable" />
4050
<action id="DatabaseView.PropertiesAction" />
4151
<action id="Debug">
4252
<keyboard-shortcut first-keystroke="f10" />
4353
</action>
4454
<action id="DebugClass" />
55+
<action id="Diff.ShowDiff" />
56+
<action id="Diff.ShowSettingsPopup" />
4557
<action id="DirDiffMenu.SynchronizeDiff.All" />
46-
<action id="EditorContextInfo">
47-
<keyboard-shortcut first-keystroke="shift meta i" />
48-
</action>
58+
<action id="EditorContextInfo" />
59+
<action id="EditorDuplicate" />
4960
<action id="EditorSelectWord">
5061
<keyboard-shortcut first-keystroke="meta t" />
5162
</action>
@@ -55,6 +66,10 @@
5566
<keyboard-shortcut first-keystroke="shift meta t" />
5667
</action>
5768
<action id="ExportToTextFile" />
69+
<action id="ExpressionTypeInfo">
70+
<keyboard-shortcut first-keystroke="shift meta i" />
71+
</action>
72+
<action id="FileChooser.GotoDesktop" />
5873
<action id="FileChooser.TogglePathShowing" />
5974
<action id="FileStructurePopup">
6075
<keyboard-shortcut first-keystroke="shift meta o" />
@@ -78,6 +93,7 @@
7893
<action id="Git.Reword.Commit">
7994
<keyboard-shortcut first-keystroke="f2" />
8095
</action>
96+
<action id="GoTypeHierarchyPopupMenu.BaseOnThisType" />
8197
<action id="GotoChangedFile" />
8298
<action id="GotoClass">
8399
<keyboard-shortcut first-keystroke="shift meta p" />
@@ -91,6 +107,7 @@
91107
</action>
92108
<action id="GotoImplementation">
93109
<keyboard-shortcut first-keystroke="shift ctrl close_bracket" />
110+
<keyboard-shortcut first-keystroke="shift meta d" />
94111
</action>
95112
<action id="GotoLine" />
96113
<action id="GotoNamespace" />
@@ -127,15 +144,28 @@
127144
</action>
128145
<action id="Images.ShowThumbnails" />
129146
<action id="ImplementMethods" />
147+
<action id="InsertLiveTemplate" />
130148
<action id="Jdbc.OpenEditor.DDL">
131149
<mouse-shortcut keystroke="meta button1" />
132150
<mouse-shortcut keystroke="button2" />
133151
</action>
152+
<action id="JumpToLastChange">
153+
<keyboard-shortcut first-keystroke="meta e" />
154+
</action>
155+
<action id="JumpToNextChange">
156+
<keyboard-shortcut first-keystroke="shift meta e" />
157+
</action>
134158
<action id="KotlinShellExecute" />
135159
<action id="MakeModule">
136160
<keyboard-shortcut first-keystroke="meta b" second-keystroke="m" />
137161
</action>
162+
<action id="MethodDown">
163+
<keyboard-shortcut first-keystroke="meta j" />
164+
</action>
138165
<action id="MethodHierarchy.OverrideMethodAction" />
166+
<action id="MethodUp">
167+
<keyboard-shortcut first-keystroke="meta k" />
168+
</action>
139169
<action id="Move" />
140170
<action id="NewElementSamePlace">
141171
<keyboard-shortcut first-keystroke="shift meta n" />
@@ -153,7 +183,11 @@
153183
<keyboard-shortcut first-keystroke="meta i" />
154184
</action>
155185
<action id="QuickImplementations">
156-
<keyboard-shortcut first-keystroke="shift ctrl d" />
186+
<keyboard-shortcut first-keystroke="meta d" />
187+
</action>
188+
<action id="RecentChangedFiles" />
189+
<action id="RecentFiles">
190+
<keyboard-shortcut first-keystroke="shift ctrl p" />
157191
</action>
158192
<action id="Refactorings.QuickListPopupAction">
159193
<keyboard-shortcut first-keystroke="shift meta r" />
@@ -178,8 +212,10 @@
178212
<action id="Run">
179213
<keyboard-shortcut first-keystroke="f9" />
180214
</action>
215+
<action id="RunDashboard.CopyConfiguration" />
181216
<action id="RunDashboard.Debug" />
182217
<action id="RunDashboard.ShowConfigurations" />
218+
<action id="SendEOF" />
183219
<action id="ShelveChanges.UnshelveWithDialog" />
184220
<action id="ShelvedChanges.Rename">
185221
<keyboard-shortcut first-keystroke="f2" />
@@ -210,7 +246,7 @@
210246
<keyboard-shortcut first-keystroke="f6" />
211247
</action>
212248
<action id="SurroundWith">
213-
<keyboard-shortcut first-keystroke="meta y" />
249+
<keyboard-shortcut first-keystroke="shift meta s" />
214250
</action>
215251
<action id="ToggleLineBreakpoint">
216252
<keyboard-shortcut first-keystroke="shift ctrl b" />
@@ -219,17 +255,28 @@
219255
<keyboard-shortcut first-keystroke="shift meta b" />
220256
</action>
221257
<action id="ToggleTemporaryLineBreakpoint" />
258+
<action id="TypeHierarchy">
259+
<keyboard-shortcut first-keystroke="ctrl meta h" />
260+
</action>
261+
<action id="TypeHierarchy.BaseOnThisType" />
262+
<action id="TypeHierarchyBase.BaseOnThisType" />
222263
<action id="UML.ActualSize">
223264
<keyboard-shortcut first-keystroke="meta divide" />
224265
</action>
225266
<action id="UML.ApplyCurrentLayout" />
267+
<action id="Uml.ShowDiff" />
226268
<action id="UsageView.Rerun" />
227269
<action id="Vcs.Log.FocusTextFilter" />
228270
<action id="Vcs.MoveChangedLinesToChangelist" />
271+
<action id="Vcs.ShowMessageHistory">
272+
<keyboard-shortcut first-keystroke="ctrl m" />
273+
</action>
229274
<action id="Vcs.UpdateProject" />
230275
<action id="ViewBreakpoints" />
231276
<action id="ViewSource" />
232277
<action id="XDebugger.AttachToProcess">
233278
<keyboard-shortcut first-keystroke="ctrl f10" />
234279
</action>
280+
<action id="XDebugger.CopyWatch" />
281+
<action id="openAssertEqualsDiff" />
235282
</keymap>

shortcuts.md

+14-12
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ the right keymap.
7373
| | | | |
7474
| Navigate File | `Cmd-P` | `Alt-P` | `Ctrl-P` |
7575
| Navigate Class/Type | `Cmd-Shift-P` | `Alt-Shift-P` | |
76+
| Navigate Recent Files | `Ctrl-Shift-P` | same | :b |
7677
| Navigate Symbol | `Cmd-Ctrl-P` | `Alt-Ctrl-P` | |
77-
| Navigate Recent Files | `Cmd-P` | `Alt-P` | `Ctrl-P` |
7878
| | | | |
7979
| Open File Structure/Outline | `Cmd-Shift-O` | `Alt-Shift-O` | |
8080
| Navigate Related/Linked File/Symb | `Cmd-Ctrl-O` | `Alt-Ctrl-O` | `:A` |
@@ -93,6 +93,9 @@ the right keymap.
9393
| Navigate Last Edit Location | `Cmd-E` | `Alt-E` | `g;` |
9494
| Navigate Next Edit Location | `Cmd-Shift-E` | `Alt-Shift-E` | `g,` |
9595

96+
| Navigate Next Buffer/Tab | `Ctrl-Tab` | same | `]b` |
97+
| Navigate Prev Buffer/Tab | `Ctrl-Shift-Tab` | same | `[b` |
98+
9699

97100
## Editing
98101

@@ -108,6 +111,9 @@ the right keymap.
108111
| Reformat Code | `Cmd-Shift-M` | `Alt-Shift-M` | `gg=G`(N) |
109112
| Reformat Code (with options) | `Ctrl-Shift-M` | | |
110113
| | | | |
114+
| Commemnt (Line Comment) | `Ctrl-/` | same | same or `gcc` |
115+
| Commemnt (Block Comment) | `Ctrl-Shift-/` | same | same or motion `gcc` |
116+
| | | | |
111117
| Optimize Imports | `Ctrl-Shift-O` | same | |
112118
| | | | |
113119
| Paste from buffers | `Cmd-Shift-V` | `Alt-Shift-V` | `[a-z]p` (register paste) |
@@ -138,10 +144,10 @@ the right keymap.
138144
| Action | Shortcut Key (Mac) | Shortcut (Win/Lin) | VIM Shortcut |
139145
| -- | -- | -- | -- |
140146
| Show Parameter Info | `Cmd-I` | `Alt-I` | `<Leder>i`(N) |
141-
| Show Context Info | `Cmd-Shift-I` | `Alt-Shift-I` | `<Leder>I`(N) |
142-
| External Docu Lookup | `gK`(N) | same | same |
143-
| Quick Docu Lookup | `K`(N) | same | same |
144-
| External Docu Lookup | `gK`(N) | same | same |
147+
| Show Expression Info | `Cmd-Shift-I` | `Alt-Shift-I` | `<Leder>I`(N) |
148+
| Quick Docu Lookup | `F1` | same | `K`(N) |
149+
| External Docu Lookup | `Shift-F1` | same | `gK`(N) |
150+
145151

146152
## Build / Run / Debug
147153

@@ -190,15 +196,11 @@ the right keymap.
190196

191197
## TODO
192198
* Make f2 shortcuts for ide bookmarks for convenience.
199+
* Add standard shortcut key for Context Info (very useful)
193200
* Other breakpoint actions, including field watches
194201
* Switching Buffers, Choosing diff Buffer buffers in both vim and intellij
195-
* Ensure there is a shortcut for quick definition (one of the gD stuff I think)
196-
* Debug / Run shortcuts include breakpoints, step over, step out, etc
197202
* Structural movement shorcuts
198-
* Structural Selection
199203
* Panel shortcuts (sidebar/run/debug panels, etc)
200-
* Study Intellij Structural Search/Replace and introduce shortuts
201-
* Commenting code, going backward/forwards
204+
* Structural Search/Replace and introduce shortuts
202205
* map backspace to most recent buffer
203-
* next/previous errors
204-
* refactor: extract parameter shortcut was initially assinged to meta-alt-p
206+
* refactor: extract parameter shortcut was initially assinged to meta-alt-p

vimcfg/ideavimrc

-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ map <leader>b :action CompileDirty<CR>
77
nmap <C-P> :action GotoFile<CR>
88
nmap <M-P> :action GotoFile<CR>
99
nmap ]q :action GotoNextError<CR>
10-
nmap <C-;> :action GotoNextError<CR>
1110
nmap [q :action GotoPreviousError<CR>
12-
nmap <C-,> :action GotoPreviousError<CR>
1311

1412
"Buffers
1513
nmap ]b :action NextTab<CR>

0 commit comments

Comments
 (0)