Skip to content

Commit

Permalink
feat(intellij): add keybindings for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasnorrby committed Apr 16, 2020
1 parent 1b36509 commit 0d718cf
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion editor/intellij/ideavim/ideavimrc
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,26 @@ imap <C-V> <C-O>:action IntroduceVariable<CR>
nmap <leader>im :action ImplementMethods<CR>

" === RUN ===
nmap <leader>rR :action ChooseRunConfiguration<CR>
nmap <leader>rc :action ChooseRunConfiguration<CR>
" nmap <leader>rr :action RunConfiguration<CR>
nmap <leader>rr :action Run<CR>
nmap <leader>rR :action Rerun<CR>
nmap <leader>rs :action Stop<CR>

" === DEBUG ===
nmap <leader>dc :action ChooseDebugConfiguration<CR>
nmap <leader>dd :action Debug<CR>
nmap <leader>ds :action Stop<CR>

" Breakpoints
nmap <leader>dbl :action ToggleLineBreakpoint<CR>
nmap <leader>dbm :action ToggleMethodBreakpoint<CR>
nmap <leader>dbf :action ToggleFieldBreakpoint<CR>

nmap <leader>dbt :action ToggleBreakpointEnabled<CR>

nmap <leader>dbc :action Debugger.RemoveAllBreakpoints<CR>

" === NAVIGATION ===
nmap <leader><leader> :action SearchEverywhere<CR>
nmap <leader>, :action RecentFiles<CR>
Expand All @@ -102,6 +117,14 @@ nmap <leader>gc :action GotoClass<CR>
nmap <leader>gs :action GotoSymbol<CR>
nmap <leader>tw :action ToolWindowsGroup<CR>

" popup with list of methods in file
nmap <leader>fn :action FileStructurePopup<CR>

nmap gh :action ShowErrorDescription<cr>

nmap <C-o> :action Back<CR>
nmap <C-i> :action Forward<CR>

" lang stuff
nmap gd :action GotoDeclaration<CR>
nmap gi :action GotoImplementation<CR>
Expand All @@ -121,8 +144,13 @@ nmap <leader>MM :action EditorBreadcrumbsShowBelow<CR>:action ViewNavigationBar<
" - Tab placement
" - Show tool window bars

nmap <leader>tlr :set invrelativenumber<CR>
nmap <leader>tll :action EditorToggleShowLineNumbers<CR>
nmap <leader>tlL :action EditorGutterToggleGlobalLineNumbers<CR>

" Interesting actions
" ShowPopupMenu
" QuickFixes?

" List
" https://centic9.github.io/IntelliJ-Action-IDs/
Expand Down

0 comments on commit 0d718cf

Please sign in to comment.