Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserting chars while jumping #1

Closed
highend opened this issue Jul 7, 2014 · 5 comments
Closed

Inserting chars while jumping #1

highend opened this issue Jul 7, 2014 · 5 comments

Comments

@highend
Copy link

highend commented Jul 7, 2014

Two problems:

  • Ctrl+, is my keybinding. I'm using VsVim + Resharper.
    When I press my keyboard shortcut and enter the char that I want to jump to (I'm currently in insert mode)
  • Intellisense pops up at the current caret position (which makes everything impossible to navigate under it's popup)
  • The char that is was searching for is inserted at the current position and at the destination the char that I typed to reach it.

E.g.:

{<cursor pos>
StreamReader myReader = new StreamReader("Values.txt");

I type "s" to jump to "_S_treamReader("Values.txt");

Result:
(it's more code on the screen so let's say the "S" had the "Z" as the char to jump to:

{s
StreamReader myReader = new zStreamReader("Values.txt");

The behavior in normal mode (VsVim) is a bit different:
It will delete the char under the caret position on the first char I enter. The second part (for the destination) is the same as in insert mode.

E.g.:


StreamReader myReader = new zStreamReader("Values.txt");
@highend
Copy link
Author

highend commented Jul 9, 2014

Hi Jared,

I can confirm that it now works fine when I'm in insert mode.

The behavior when in normal mode is still bugged.

Pressing my defined shortcut while in normal mode it'll ask for "Type the character you want to search for" but after entering one char it's only displayed in the input line but no actual jump is executed afterwards.

@jaredpar
Copy link
Owner

jaredpar commented Jul 9, 2014

@highend are you running this with VsVim enabled? There are some conflicts at the moment that I need to work out

@highend
Copy link
Author

highend commented Jul 9, 2014

Yes, VsVim is enabled.

@jaredpar
Copy link
Owner

jaredpar commented Jul 9, 2014

@highend that is likely what is blocking the jumps at the moment. It does that on my machine. Issue #3 is tracking this.

Likely this will involve a new release of VsVim. It's already setup to work nicely with other plugins that also handle key strokes. I just need to tell it about EasyMotion somehow.

@highend
Copy link
Author

highend commented Jul 9, 2014

No problem Jared, I'm waiting. In the meantime I file another feature request g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants