Line Motions/Jumping
CheesePizza100 opened this issue · 6 comments
Use case: I am already on the line where I need to be, I need to navigate to a specific place within that line. This is a more targeted search. Say you have this text example below and that your cursor is at the beginning of the line:
This is some sample text for searching or finding in a sentence.
Let's say I wanted to get to the word "searching"
In Vim, you could do:
6w but counting words is not efficient.
f{s};;; also annoying because of the constant use of ;
/{wordToSearch} works but.....eh?
The result would be (letters in parentheses indicate jump point before or after word):
(a)This (b)is (c)some (d)sample (e)text (f)for (g)searching (h)or (i)finding (j)in (k)a (l)sentence.
This(a) is(b) some(c) sample(d) text(e) for(f) searching(g) or(h) finding(i) in(j) a(k) sentence(l).
Thanks for request! I'll let you know when it's ready.
Sorry for the delay. Here is draft version:
http://vsixgallery.com/extension/PeasyMotion.a87d2837-6b54-4518-b014-3b29b4dcd902/
yeah, word search clearly needs a rewrite :)
Test line should look like this now:
You may consider trying test version here:
http://vsixgallery.com/extension/PeasyMotion.a87d2837-6b54-4518-b014-3b29b4dcd902/
If everything will work out fine, i`ll release on VS marketplace. ( just in case - use VS marketplace, it has autoupdate :} )