Skip to content

Commit

Permalink
Add which key support (#15)
Browse files Browse the repository at this point in the history
* enable which key

* spacemacs: add which-key names

Signed-off-by: MarcoIeni <[email protected]>

* windows: add which key names

Signed-off-by: MarcoIeni <[email protected]>

* extra: add which-key names

Signed-off-by: MarcoIeni <[email protected]>

* misc: add which-key names

Signed-off-by: MarcoIeni <[email protected]>

* leader: add which-key

Signed-off-by: MarcoIeni <[email protected]>

* applications: add which key names (#16)

Co-authored-by: tl-marco-ieni <[email protected]>

* bookmarks: add which-key names (#18)

* Add which-key description for bookmarks

* Update extra/bookmarks.vim

Co-authored-by: Marco Ieni <[email protected]>

Co-authored-by: Marco Ieni <[email protected]>

* Add which-key names to all buffer related commands. (#19)

Relates to issue #17

Co-authored-by: Jamal Rahhali <[email protected]>

* [#20] SPC ' Activate terminal window

Signed-off-by: MarcoIeni <[email protected]>

* Describe colors for which-key (#21)

* Add description for colors.vim

* Requested change for kebab-case

* Add description for compile-comments files (#23)

* Add description for compile-comments files

* Requested changes and adjust "namespace"

* Add which key +zoom menu descriptions (#28)

* Add which-key +zoom menu descriptions.

#17

* Update spacemacs/zoom.vim

Co-authored-by: Jamal Rahhali <[email protected]>
Co-authored-by: Marco Ieni <[email protected]>

* Add which-key descriptions for the +quit menu (#27)

Also added the `<leader>qr` and `<leader>qR` shortcuts that mimic
the Spacemacs restart shortcuts.

#17

Co-authored-by: Jamal Rahhali <[email protected]>

* Add which-key names for files (#26)

Removed `<leader>fg` (search in project files) from files menu because
it does not appear in Spacemacs.

`<leader>/` works with my which-key version, so added that shortcut
to the `leader.vim`.

Relates to #17

Co-authored-by: Jamal Rahhali <[email protected]>

* Added which-key names for the search/symbol menu. (#31)

#17

Co-authored-by: Jamal Rahhali <[email protected]>

* Add which-key names for errors. (#25)

* Add which-key names for errors.

Moved a few shortcuts that weren't part of spacemacs from
from `spacemacs/errors.vim` to `extra/errors.vim`

Two shorcuts both had a `<leader>es` mapping.  Remapped one of them.

Relates to #17

* Moved some shortcuts from extra/errors.vim back to spacemacs/errors.vim

Relates to #17

Co-authored-by: Jamal Rahhali <[email protected]>

* Added which key jump-join-split menu (#34)

#17

Co-authored-by: Jamal Rahhali <[email protected]>

* Added which key text menu (#33)

#17

Co-authored-by: Jamal Rahhali <[email protected]>

* Which key frame menu (#32)

* Added which key Frame menu

#17

* Fixed typo

#17

Co-authored-by: Jamal Rahhali <[email protected]>

* Added which-key help menu descriptions (#35)

#17

Co-authored-by: Jamal Rahhali <[email protected]>

* Add which-key project menu descriptions. (#42)

* Add which-key project menu descriptions.

#17

* Update spacemacs/projects.vim

Co-authored-by: Jamal Rahhali <[email protected]>
Co-authored-by: Marco Ieni <[email protected]>

* Added which-key insertion menu descriptions. (#36)

* Added which-key insertion menu descriptions.

#17

* Comment repair.

#17

* Update spacemacs/insertion.vim

Co-authored-by: Jamal Rahhali <[email protected]>
Co-authored-by: Marco Ieni <[email protected]>

* Add which-key run menu descriptions. (#40)

#17

Co-authored-by: Jamal Rahhali <[email protected]>

* Added which-key narrow/numbers menu descriptions. (#37)

#17

Co-authored-by: Jamal Rahhali <[email protected]>

* Added which-key registers/reings/resume menu descriptions. (#39)

#17

Co-authored-by: Jamal Rahhali <[email protected]>

* Added which-key toggles and ui-toggles menu descriptions. (#38)

#17

Co-authored-by: Jamal Rahhali <[email protected]>

* Add which-key git menu descriptions. (#43)

* Add which-key git menu descriptions.

#17

* Change SPC g v menu description from +vcs to +version-control

To align with the name in Spacemacs.

#17

Co-authored-by: Marco Ieni <[email protected]>

* Change SPC g b menu description from "checkout" to "branches".

#17

Co-authored-by: Marco Ieni <[email protected]>

Co-authored-by: Jamal Rahhali <[email protected]>
Co-authored-by: Marco Ieni <[email protected]>

* Add which-key major mode menu descriptions. (#41)

* Add which-key major mode menu descriptions.

#17

* Update major/debug.vim

* Change major mode SPC m p menu description from "+package" to "+project".

Code review change.

#17

Co-authored-by: Jamal Rahhali <[email protected]>
Co-authored-by: Marco Ieni <[email protected]>

* update changelog

Signed-off-by: MarcoIeni <[email protected]>

* README: add SpaceVim

Signed-off-by: MarcoIeni <[email protected]>

* add gif

Signed-off-by: MarcoIeni <[email protected]>

Co-authored-by: tl-marco-ieni <[email protected]>
Co-authored-by: Nimamoh <[email protected]>
Co-authored-by: Jamal Rahhali <[email protected]>
Co-authored-by: Jamal Rahhali <[email protected]>
Co-authored-by: Ellis Kenyő <[email protected]>
  • Loading branch information
6 people authored Mar 30, 2021
1 parent 8e29374 commit 7537423
Show file tree
Hide file tree
Showing 56 changed files with 461 additions and 56 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Intellij
/.idea/
21 changes: 15 additions & 6 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[[http://spacemacs.org][file:https://cdn.rawgit.com/syl20bnr/spacemacs/442d025779da2f62fc86c2082703697714db6514/assets/spacemacs-badge.svg]]

[[file:docs/preview.gif]]

* Presentation
This project tries to mimic [[http://spacemacs.org][Spacemacs]] key bindings in IDEs based on the [[https://www.jetbrains.com][IntelliJ]]
platform, i.e. IntelliJ IDEA, PyCharm, CLion, PhpStorm, WebStorm, RubyMine,
Expand Down Expand Up @@ -38,8 +40,10 @@ mode, which may be enabled by sourcing the file =~/.intellimacs/hybrid.vim=.
Read [[file:docs/KEYBINDINGS.org][KEYBINDINGS.org]] to see all 200+ available key bindings.

* Installation
1. Install IdeaVim by using the IDE's plugin manager (File -> Settings ->
Plugins -> Search for IdeaVim -> Install IdeaVim).
1. Go to the IDE's plugin manager (File -> Settings -> Plugins) and install
the following plugins:
- [[https://plugins.jetbrains.com/plugin/164-ideavim][IdeaVim]]: vim emulation
- (Optional) [[https://plugins.jetbrains.com/plugin/15976-idea-which-key][IDEA Which-Key]]: menu that shows the available commands as you type
2. Clone this repository in your home directory:
#+begin_src sh
git clone https://github.com/MarcoIeni/intellimacs ~/.intellimacs
Expand All @@ -50,20 +54,24 @@ Read [[file:docs/KEYBINDINGS.org][KEYBINDINGS.org]] to see all 200+ available ke
the functionalities offered by Intellimacs.
In this file you can also include your own vim commands.
#+begin_src vimrc
" Selected Intellimacs modules
source ~/.intellimacs/spacemacs.vim

" (Optional) Enable other Intellimacs modules
source ~/.intellimacs/extra.vim
source ~/.intellimacs/major.vim
source ~/.intellimacs/hybrid.vim

" My own vim commands
" (Optional) Enable which-key plugin
source ~/.intellimacs/which-key.vim

" (Optional) My own vim commands
nnoremap Y y$

" Comma for major mode
" (Optional) Comma for major mode
nmap , <leader>m
vmap , <leader>m

" Add/edit actions
" (Optional) Add/edit actions
nnoremap <leader>gl :action Vcs.Show.Log<CR>
vnoremap <leader>gl :action Vcs.Show.Log<CR>
#+end_src
Expand Down Expand Up @@ -110,5 +118,6 @@ Before contributing, be sure to read [[file:docs/CONTRIBUTING.org][CONTRIBUTING.

* Related projects
- [[https://github.com/MarcoIeni/spaceclipse][Spaceclipse]] - Spacemacs' like key bindings for Eclipse
- [[https://github.com/SpaceVim/SpaceVim][SpaceVim]] - A community-driven modular vim distribution
- [[https://github.com/VSpaceCode/VSpaceCode][VSpaceCode]] - Spacemacs' like key bindings for Visual Studio Code (thanks for
the inspiration)
8 changes: 7 additions & 1 deletion docs/CHANGELOG.org
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@ All notable changes to this project will be documented in this file.
The format is based on [[https://keepachangelog.com/en/1.0.0/][Keep a Changelog]],
and this project adheres to [[https://semver.org/spec/v2.0.0.html][Semantic Versioning]].

* [[https://github.com/marcoieni/intellimacs/compare/v0.0.1...HEAD][Unreleased]]
* [[https://github.com/marcoieni/intellimacs/compare/v1.1.0...HEAD][Unreleased]]

* [[https://github.com/marcoieni/intellimacs/tags/v1.0.0...v1.1.0][1.1.0]] - 2020-03-30

** Added
- add which-key support
- enable the following vim plugins: argtextobj, textobj-entire, ReplaceWithRegister
- =SPC j l=: Jump to line (AceJump required)
- =SPC m h t=: Type definition

** Changed
- =SPC '=: Activate terminal window

* [[https://github.com/marcoieni/intellimacs/tags/v0.0.1...v1.0.0][1.0.0]] - 2019-12-27
Manual intervention is required:
- execute =mv ~/intellispace ~/.intellimacs=
Expand Down
57 changes: 32 additions & 25 deletions docs/KEYBINDINGS.org
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,26 @@ master branch.

** leader

| Key binding | Description |
|-------------+----------------------|
| ~SPC SPC~ | Execute an action |
| ~SPC TAB~ | Last buffer |
| ~SPC !~ | Open terminal window |
| ~SPC '~ | Open terminal window |
| ~SPC *~ | Show usages |
| ~SPC ; ;~ | Comment lines |
| ~SPC ?~ | Show key bindings |
| Key binding | Description |
|-------------+-------------------------------|
| ~SPC SPC~ | Execute an action |
| ~SPC TAB~ | Last buffer |
| ~SPC !~ | Open new terminal window |
| ~SPC '~ | Activate terminal window |
| ~SPC *~ | Show usages |
| ~SPC ; ;~ | Comment lines |
| ~SPC ?~ | Show key bindings |
| ~SPC /~ | Search in project files |

** applications
| Key binding | Description |
|-------------+----------------------|
| ~SPC a k~ | Plugins marketplace |
| ~SPC a o t~ | Show TODOs |
| ~SPC a P~ | Show CPU usage |
| ~SPC a p~ | List processes |
| ~SPC a s~ | Open terminal window |

| Key binding | Description |
|-------------+--------------------------|
| ~SPC a k~ | Plugins marketplace |
| ~SPC a o t~ | Show TODOs |
| ~SPC a P~ | Show CPU usage |
| ~SPC a p~ | List processes |
| ~SPC a s~ | Open new terminal window |

** buffers

Expand Down Expand Up @@ -66,14 +68,17 @@ master branch.

** errors

| Key binding | Description |
|-------------+-------------------|
| ~SPC e l~ | List errors |
| ~SPC e N~ | Previous error |
| ~SPC e n~ | Next error |
| ~SPC e p~ | Previous error |
| ~SPC e s~ | Select inspection |
| ~SPC e x~ | Explain error |
| Key binding | Description |
|-------------+------------------------|
| ~SPC e L~ | Inspect code |
| ~SPC e l~ | List errors |
| ~SPC e N~ | Previous error |
| ~SPC e n~ | Next error |
| ~SPC e p~ | Previous error |
| ~SPC e R~ | Run inspection by name |
| ~SPC e r~ | Resolve error |
| ~SPC e s~ | Inspection settings |
| ~SPC e x~ | Explain error |

** frame

Expand Down Expand Up @@ -155,7 +160,7 @@ master branch.

| Key binding | Description |
|-------------+----------------------------------------|
| ~SPC p !~ | Open terminal in project root |
| ~SPC p !~ | Activate terminal window |
| ~SPC p a~ | Toggle between implementation and test |
| ~SPC p b~ | Recent files |
| ~SPC p h~ | Recent files |
Expand All @@ -177,6 +182,8 @@ master branch.
| ~SPC q f~ | Close project |
| ~SPC q q~ | Close project |
| ~SPC q Q~ | Exit (close all projects) |
| ~SPC q r~ | Restart |
| ~SPC q R~ | Restart |
| ~SPC q s~ | Save all and close project |

** registers/rings/resume
Expand Down
Binary file added docs/preview.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions extra.vim
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,25 @@ source ~/.intellimacs/extra/settings.vim

" Key bindings
source ~/.intellimacs/extra/applications.vim

let g:WhichKeyDesc_Bookmarks = "<leader>B +bookmarks"
source ~/.intellimacs/extra/bookmarks.vim
source ~/.intellimacs/extra/buffers.vim
source ~/.intellimacs/extra/compile-comments.vim
source ~/.intellimacs/extra/errors.vim
source ~/.intellimacs/extra/files.vim
source ~/.intellimacs/extra/frame.vim
source ~/.intellimacs/extra/git-vcs.vim

let g:WhichKeyDesc_Help = "<leader>h +help/history"
source ~/.intellimacs/extra/help-history.vim

source ~/.intellimacs/extra/jump.vim
source ~/.intellimacs/extra/leader.vim

let g:WhichKeyDesc_Run = "<leader>R +run"
source ~/.intellimacs/extra/run.vim

source ~/.intellimacs/extra/search.vim
source ~/.intellimacs/extra/toggles.vim
source ~/.intellimacs/extra/ui_toggles-themes.vim
Expand Down
1 change: 1 addition & 0 deletions extra/applications.vim
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
" Show TODOs
let g:WhichKeyDesc_Applications_Todo = "<leader>at todo"
nnoremap <leader>at :action ActivateTODOToolWindow<CR>
vnoremap <leader>at :action ActivateTODOToolWindow<CR>
6 changes: 6 additions & 0 deletions extra/bookmarks.vim
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
" List bookmarks
" Create bookmark 0 with <C-S-0>, Create bookmark 1 with <C-S-1> and so on.
" Go to bookmark 0 with <C-0>, go to bookmark 1 with <C-1> and so on.
let g:WhichKeyDesc_Bookmarks_List = "<leader>Bl list-bookmarks"
nnoremap <leader>Bl :action ShowBookmarks<CR>
vnoremap <leader>Bl :action ShowBookmarks<CR>
" Previous bookmark
let g:WhichKeyDesc_Bookmarks_PreviousN = "<leader>BN previous-bookmark"
nnoremap <leader>BN :action GotoPreviousBookmark<CR>
vnoremap <leader>BN <Esc>:action GotoPreviousBookmark<CR>
" Next bookmark
let g:WhichKeyDesc_Bookmarks_Next = "<leader>Bn next-bookmark"
nnoremap <leader>Bn :action GotoNextBookmark<CR>
vnoremap <leader>Bn <Esc>:action GotoNextBookmark<CR>
" Previous bookmark
let g:WhichKeyDesc_Bookmarks_Previous = "<leader>Bp previous-bookmark"
nnoremap <leader>Bp :action GotoPreviousBookmark<CR>
vnoremap <leader>Bp <Esc>:action GotoPreviousBookmark<CR>
" Toggle bookmark. When you activate it, assign to it a value.
let g:WhichKeyDesc_Bookmarks_ToggleMnemonic = "<leader>BT toggle-bookmark-with-mnemonic"
nnoremap <leader>BT :action ToggleBookmarkWithMnemonic<CR>
vnoremap <leader>BT <Esc>:action ToggleBookmarkWithMnemonic<CR>
" Toggle bookmark
let g:WhichKeyDesc_Bookmarks_Toggle = "<leader>Bt toggle-bookmark"
nnoremap <leader>Bt :action ToggleBookmark<CR>
vnoremap <leader>Bt :action ToggleBookmark<CR>
4 changes: 4 additions & 0 deletions extra/buffers.vim
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
" Go to first tab
let g:WhichKeyDesc_Buffers_FirstTab = "<leader>b0 first-tab"
nnoremap <leader>b0 :action GoToTab1<CR>
vnoremap <leader>b0 <Esc>:action GoToTab1<CR>
" Go to last tab
let g:WhichKeyDesc_Buffers_LastTab = "<leader>b$ last-tab"
nnoremap <leader>b$ :action GoToLastTab<CR>
vnoremap <leader>b$ <Esc>:action GoToLastTab<CR>
" Next Tab
let g:WhichKeyDesc_Buffers_NextTab = "<leader>bk next-tab"
nnoremap <leader>bk :action NextTab<CR>
vnoremap <leader>bk <Esc>:action NextTab<CR>
" Previous Tab
let g:WhichKeyDesc_Buffers_PreviousTab = "<leader>bj previous-tab"
nnoremap <leader>bj :action PreviousTab<CR>
vnoremap <leader>bj <Esc>:action PreviousTab<CR>
1 change: 1 addition & 0 deletions extra/compile-comments.vim
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
" Comment by block comment
let g:WhichKeyDesc_CompileComments_CommentByBlockComment = "<leader>cb comment-by-block-comment"
nnoremap <leader>cb :action CommentByBlockComment<CR>
vnoremap <leader>cb :action CommentByBlockComment<CR>
11 changes: 7 additions & 4 deletions extra/errors.vim
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
" Inspect code
let g:WhichKeyDesc_Errors_InspectCode = "<leader>eL inspect-code"
nnoremap <leader>eL :action InspectCode<CR>
vnoremap <leader>eL :action InspectCode<CR>
" Run inspection by name
let g:WhichKeyDesc_Errors_RunInspectionByName = "<leader>eR run-inspection-by-name"
nnoremap <leader>eR :action RunInspection<CR>
vnoremap <leader>eR <Esc>:action RunInspection<CR>
" Resolve error
let g:WhichKeyDesc_Errors_ResolveError = "<leader>er resolve-error"
nnoremap <leader>er :action ShowIntentionActions<CR>
vnoremap <leader>er :action ShowIntentionActions<CR>
" Edit inspection settings
nnoremap <leader>es :action EditInspectionSettings<CR>
vnoremap <leader>es :action EditInspectionSettings<CR>
2 changes: 2 additions & 0 deletions extra/files.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
" Create a new Element.
let g:WhichKeyDesc_Files_NewElement = "<leader>fN new-element"
nnoremap <leader>fN :action NewElement<CR>
vnoremap <leader>fN :action NewElement<CR>
" Create a new class. You can also create enum, interface and more.
let g:WhichKeyDesc_Files_NewClass = "<leader>fn new-class"
nnoremap <leader>fn :action NewClass<CR>
vnoremap <leader>fn :action NewClass<CR>
1 change: 1 addition & 0 deletions extra/frame.vim
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
" Focus previous project
let g:WhichKeyDesc_Frame_PreviousProjectWindow = "<leader>FO previous-project-window"
nnoremap <leader>FO :action PreviousProjectWindow<CR>
vnoremap <leader>FO :action PreviousProjectWindow<CR>
5 changes: 5 additions & 0 deletions extra/git-vcs.vim
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
" Git checkout
let g:WhichKeyDesc_GitVcs_Branches = "<leader>gb branches"
nnoremap <leader>gb :action Git.Branches<CR>
vnoremap <leader>gb :action Git.Branches<CR>
" Show Version control tool window
let g:WhichKeyDesc_GitVcs_ShowWindow = "<leader>gG show-window"
nnoremap <leader>gG :action ActivateVersionControlToolWindow<CR>
vnoremap <leader>gG :action ActivateVersionControlToolWindow<CR>
" Select a VCS operation
let g:WhichKeyDesc_GitVcs_SelectOperation = "<leader>gg select-operation"
nnoremap <leader>gg :action Vcs.QuickListPopupAction<CR>
vnoremap <leader>gg :action Vcs.QuickListPopupAction<CR>
" Vcs push (git push)"
let g:WhichKeyDesc_GitVcs_Push = "<leader>gp push"
nnoremap <leader>gp :action Vcs.Push<cr>
vnoremap <leader>gp :action Vcs.Push<cr>
" Show shelf
let g:WhichKeyDesc_GitVcs_Shelf = "<leader>gS shelf"
nnoremap <leader>gS :action Vcs.Show.Shelf<CR>
vnoremap <leader>gS :action Vcs.Show.Shelf<CR>
3 changes: 3 additions & 0 deletions extra/help-history.vim
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
" Show action list
let g:WhichKeyDesc_Help_ShowActionList = "<leader>ha show-action-list"
nnoremap <leader>ha :actionlist<CR>
vnoremap <leader>ha <Esc>:actionlist<CR>
" Show changes in current file
let g:WhichKeyDesc_Help_ShowHistory = "<leader>hh show-history"
nnoremap <leader>hh :action LocalHistory.ShowHistory<CR>
vnoremap <leader>hh :action LocalHistory.ShowHistory<CR>
" Visit JetBrains youtube channel
let g:WhichKeyDesc_Help_VisitYoutubeChannel = "<leader>hv visit-youtube-channel"
nnoremap <leader>hv :action Help.JetBrainsTV<CR>
vnoremap <leader>hv :action Help.JetBrainsTV<CR>
3 changes: 3 additions & 0 deletions extra/jump.vim
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
" Jump to class
let g:WhichKeyDesc_JumpJoinSplit_JumpToClass = "<leader>jc jump-to-class"
nnoremap <leader>jc :action GotoClass<CR>
vnoremap <leader>jc :action GotoClass<CR>
" Jump to element in current file
let g:WhichKeyDesc_JumpJoinSplit_JumpToFileStructure = "<leader>je jump-to-file-structure"
nnoremap <leader>je :action FileStructurePopup<CR>
vnoremap <leader>je :action FileStructurePopup<CR>
" Jump to symbol
let g:WhichKeyDesc_JumpJoinSplit_JumpToSymbol = "<leader>js jump-to-symbol"
nnoremap <leader>js :action GotoSymbol<CR>
vnoremap <leader>js :action GotoSymbol<CR>
2 changes: 2 additions & 0 deletions extra/leader.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
" Go to code block start
let g:WhichKeyDesc_Leader_GotoCodeBlockStart = "<leader>[ goto-code-block-start"
nnoremap <leader>[ :action EditorCodeBlockStart<CR>
vnoremap <leader>[ <Esc>:action EditorCodeBlockStart<CR>
" Go to code block end
let g:WhichKeyDesc_Leader_GotoCodeBlockEnd = "<leader>] goto-code-block-end"
nnoremap <leader>] :action EditorCodeBlockEnd<CR>
vnoremap <leader>] <Esc>:action EditorCodeBlockEnd<CR>
5 changes: 5 additions & 0 deletions extra/run.vim
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
" Run Anything
let g:WhichKeyDesc_Run_Anything = "<leader>Ra run-anything"
nnoremap <leader>Ra :action RunAnything<CR>
vnoremap <leader>Ra :action RunAnything<CR>
" Run class
let g:WhichKeyDesc_Run_Class = "<leader>Rc run-class"
nnoremap <leader>Rc :action RunClass<CR>
vnoremap <leader>Rc :action RunClass<CR>
" Kill (Stop application)
let g:WhichKeyDesc_Run_Kill = "<leader>Rk kill"
nnoremap <leader>Rk :action Stop<CR>
vnoremap <leader>Rk :action Stop<CR>
" Run
let g:WhichKeyDesc_Run_Run = "<leader>Rr run"
nnoremap <leader>Rr :action Run<CR>
vnoremap <leader>Rr :action Run<CR>
" Select configuration and run
let g:WhichKeyDesc_Run_SelectRunConfiguration = "<leader>Rs select-run-configuration"
nnoremap <leader>Rs :action ChooseRunConfiguration<CR>
vnoremap <leader>Rs :action ChooseRunConfiguration<CR>
3 changes: 3 additions & 0 deletions extra/search.vim
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
" Search everywhere
let g:WhichKeyDesc_SearchSymbol_SearchEverywhere = "<leader>sE search-everywhere"
nnoremap <leader>sE :action SearchEverywhere<CR>
vnoremap <leader>sE :action SearchEverywhere<CR>
" Search in current file by using Intellij Search
let g:WhichKeyDesc_SearchSymbol_FindInFile = "<leader>sf find-in-file"
nnoremap <leader>sf :action Find<CR>
vnoremap <leader>sf :action Find<CR>
" Search and replace in current file by using Intellij Search
let g:WhichKeyDesc_SearchSymbol_ReplaceInFile = "<leader>sr replace-in-file"
nnoremap <leader>sr :action Replace<CR>
vnoremap <leader>sr :action Replace<CR>
Loading

0 comments on commit 7537423

Please sign in to comment.