Giter Site home page Giter Site logo

easymotion's Introduction

EasyMotion

A vim / sublime EasyMotion clone for Visual Studio.

Searching Example

The caret is at the end of the using block and you want to move it to the 'C' in 'Console.WriteLine.

Example Step 1

Instead of moving your hands to the arrow keys or even worse, grabbing the mouse, simple initiate an easy motion search by pressing Shift+Control+;.

Example Step 2

The editor adds a status line to let you know it's ready to search. Type 'C' as this is the character we want to navigate to.

Example Step 3

The editor will replace all occurences of 'C' with a new letter (A-Z). At this point if you type any of the letters the caret will be moved to that location. In this case you type 'I' to move to the correct occurence of 'C'

Example Step 4

The caret is now at the start of 'Console.WriteLine' as we wanted at the start

easymotion's People

Contributors

bordev avatar jaredpar avatar justcla avatar justinvp avatar nag5000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easymotion's Issues

Fix conflict with VsVim

Right now VsVim and EasyMotion are fighting for the same key strokes. Need to resolve this conflict

Needed release support for VS2010

Could you release one version to support VS2010?

PS: How could I build EasyMotion project in my VS2010, it showed unregonized vs version.

Thank you very much.

metalmac

Remove Global shortcut Ctrl+Shift+L

The menu item was assigned two shortcuts.
A Text Editor shortcut for Ctrl+Shift+;
A Global shortcut: Ctrl+Shift+L

The global shortcut will not work inside the text editor (with default shortcuts) since the default shortcut for Edit.LineDelete is on Ctrl+Shift+L at the TextEditor scope.

Better to expose the Ctrl+Shift+; shortcut instead.

VsVim conflict issues

When I search for some characters that modify the code under caret, it messes up. For example if I have caret under 'C' in Console.log("something"); when I search for 's' it deletes 'C' and the line becomes onsole.log("something");

Not only this, it also insert the found char in place of the found place. So for the previous search if the 's' in the "something" is highlighted with e.g. "A" then the result for finding and going to s from the "C" will be:

form Console.log("something");
to
onsole.log( "Asomething");

I use VsVim in Visual Studio professional 2015 on a Windows 10 PC.

How to setup?

Hey guys, sorry for my nooby question here.

How do I go about installing this into visual studio? I'm using the latest version. Tried searching for it in 'install extension' area of the package manager but it doesn't show up.

Thanks in advance!

Jumping to uppercase letters

It would be nice when we want to jump to an uppercase char only those will be highlighted.

E.g.:
Pressing "M" would only highlight occurences with "M"s and not "m"s
Two options when there isn't any "M" in the visible text:

  • Silently fail / display a message that there isn't a possible jump spot
  • Instead highlight all lower case "m" chars

I'd prefer the first solution to avoid any ambiguity.

Btw Jared, is VS (2013) able to show a different caret type than the small rectangular block?

As you can see in the pictures on https://github.com/tednaleid/sublime-EasyMotion
it uses a larger block caret for the highlighting.

Release for 2012

Change the manifest and build such that it can handle 2012 as well

Too many matches - how to select?

Hey! Now that @bordev has this working with VsVim, this is the other must-have plugin! :)

...but I can't seem to figure out how to select items when >52 matches occur? Enter/Space doesn't do it.

Is there a way to do this, or is that a feature request? Thanks!

Suggestions for improvement

The better approach is to handle lower and uppercase A-Z as different jump marks. If you have a large screen or a small font there can be many matches (more than 26). With a-zA-Z you have 52 different positions you can directly jump to. The Easy Motion plugins that I know of (for ST / vim) do it the same way.

Btw, what is supposed to happen when there are more possible jump locations than (atm) 26 / 52 (for a-zA-Z)?

A good way to handle it is: If that's the case, the spacebar shifts to the next results (so the current positions are hidden and the next matches will be visible).

Inserting chars while jumping

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");

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.