mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-08-13 23:17:06 +02:00
.github
.idea
.teamcity
annotation-processors
assets
doc
images
posts
Home.md
IdeaVim Plugins.md
NERDTree-support.md
Select-mode.md
ideajoin-examples.md
marketplace-plugin-example.md
set-commands.md
sethandler.md
support-guide.md
gradle
scripts
src
tests
vim-engine
vimscript-info
.editorconfig
.gitattributes
.gitignore
AUTHORS.md
CHANGES.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE.txt
README.md
ThirdPartyLicenses.md
build.gradle.kts
gradle.properties
gradlew
gradlew.bat
qodana.sarif.json
qodana.yaml
settings.gradle.kts
14 lines
1.1 KiB
Markdown
14 lines
1.1 KiB
Markdown
Using actions from external plugins is the same, as tracking and reusing any IDE action. As an example, let's create a mapping that will toggle case of the word under caret using the CamelCase plugin when you press `<leader>t`.
|
|
|
|
**Steps to make this mapping**
|
|
|
|
1. Install the plugin via Marketplace
|
|
2. Enable action tracking. You can enable it by one of the following ways:
|
|
* Execute `:set trackactionids` ex command or just `:set tai`
|
|
* Open the "Find actions" window by pressing `Ctrl-Shift-A` and search for "Track Action IDs" to find the toggle that enables and disables action tracking
|
|
3. Execute the plugin action the way intended by plugin author "See Edit menu or use ⇧ + ⌥ + U / Shift + Alt + U" or just find the `Toggle Camel Case` action in the "Find actions" window (`Ctrl-Shift-A`). If you action tracking is on, you will see this notification in your right bottom corner:
|
|
|
|
<img alt="Notification" src="images/action-id-notification.png"/>
|
|
4. Copy the action id from the notification to create the following mapping in your .ideavimrc
|
|
```map <leader>t <Action>(de.netnexus.CamelCasePlugin.ToggleCamelCase)```
|