1
0
mirror of https://github.com/chylex/IntelliJ-AceJump.git synced 2025-05-25 11:34:02 +02:00

Update README.md to specify normal mode mapping for vim-sneak like behavior.

Also update ideavim action syntax to the latest syntax.
This commit is contained in:
colossatr0n 2022-07-12 14:23:17 -06:00 committed by GitHub
parent f1f9ec5974
commit 7fe9d13f48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,11 +62,11 @@ AceJump can be [installed directly from the IDE](https://www.jetbrains.com/help/
echo -e ' echo -e '
" Press `f` to activate AceJump " Press `f` to activate AceJump
map f :action AceAction<CR> map f <Action>(AceAction)
" Press `F` to activate Target Mode " Press `F` to activate Target Mode
map F :action AceTargetAction<CR> map F <Action>(AceTargetAction)
" Press `g` to activate Line Mode " Press `g` to activate Line Mode
map g :action AceLineAction<CR> map g <Action>(AceLineAction)
' >> ~/.ideavimrc ' >> ~/.ideavimrc
``` ```
@ -74,11 +74,11 @@ map g :action AceLineAction<CR>
To customize AceJump's behavior further with additional actions, see the `<action>` tags in [plugin.xml](src/main/resources/META-INF/plugin.xml). The following example shows how to activate AceJump before or after the caret. To customize AceJump's behavior further with additional actions, see the `<action>` tags in [plugin.xml](src/main/resources/META-INF/plugin.xml). The following example shows how to activate AceJump before or after the caret.
``` ```
" Press `S` to activate AceJump mode before the caret " Press `S` in normal mode to activate AceJump mode before the caret
map S :action AceBackwardAction<CR> nmap S <Action>(AceBackwardAction)
" Press `s` to activate AceJump mode after the caret " Press `s` in normal mode to activate AceJump mode after the caret
map s :action AceForwardAction<CR> nmap s <Action>(AceForwardAction)
``` ```
To change the default keyboard shortcuts, open **File \| Settings \| Keymap \| 🔍 "AceJump" \| AceJump \|** <kbd>Enter⏎</kbd>. To change the default keyboard shortcuts, open **File \| Settings \| Keymap \| 🔍 "AceJump" \| AceJump \|** <kbd>Enter⏎</kbd>.