KJump icon indicating copy to clipboard operation
KJump copied to clipboard

Can't type text containing prefix key

Open johntron opened this issue 6 years ago • 3 comments

I need to search for words using the \b word boundary using Jetbrains' built-in search panel. I can't enter the "\" character, because this is intercepted and interpreted as my KJump prefix key.

I also just realized I can't even type a "" when in IdeaVim insert mode.

johntron avatar Aug 07 '19 18:08 johntron

Hi, I tried the following steps without your problem.

  1. Specify '' as the hotkey for KJump.
  2. Type '\b' in the IDEA built-in search panel, it will not trigger KJump.

Also, I can type "" in the IdeaVim insert mode. Can you provide more information about the version, steps, etc?

a690700752 avatar Aug 08 '19 08:08 a690700752

Sorry @a690700752 - thanks for trying. I left out an important part: my shortcut or KJump is two keystrokes: \ followed by another \ (SpaceVim's default).

Steps to reproduce:

  1. Set KJump keyboard shortcut to two keystrokes: \ followed by another \ (SpaceVim's default).
  2. Put focus in editor pane
  3. Hit keyboard shortcut to find (cmd-f for me)
  4. Try to type \b

To reproduce issue in insert mode, follow steps 1, 2, and 4 (skip 3).

johntron avatar Aug 13 '19 20:08 johntron

Hey, have you set a shortcut in IDEA's built-in "Keymap"? I think this problem will occur if you set two keystrokes. I recommend that you only need to set a shortcut in the IdeaVim configuration. A common approach is to add nmap <leader>jj :action KJumpAction<cr> to ~/.ideavimrc. This is the default key binding in Spacemacs.

a690700752 avatar Aug 15 '19 13:08 a690700752