Home Download Buy Blog Forum Support

EasyMotion in sublime

EasyMotion in sublime

Postby C0D312 on Sat Sep 10, 2011 10:57 pm

For the short time that I used vim (before I discovered sublime), I was using an awesome vim script called easymotion (http://www.vim.org/scripts/script.php?script_id=3526). When I wanted to go to a specific spot in my file, easymotion would take all the thinking out of how to get there. While I know I can use vim motions to do the same thing, it's just unnecessary effort. I'm not looking for an exact replica of this script in st2, but I would love something as ingenious as this to make getting around a file that much easier. Just an idea...
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: EasyMotion in sublime

Postby C0D312 on Sun Sep 11, 2011 12:51 pm

Wow, this looks pretty awesome. I'd love to play around with it. Exactly what I was looking for. Let me know when you've got it ready for ST2.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: EasyMotion in sublime

Postby adzenith on Mon Sep 12, 2011 5:01 pm

If you released this for ST2, I would use it every day.
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: EasyMotion in sublime

Postby C0D312 on Mon Sep 12, 2011 7:54 pm

Are you a Vintage user? Their may be problems integrating this with your Vintage
workflow.

For the time being, I have vintage enabled but if it came down to HotSpots vs Vintage, I would disable Vintage in a heartbeat.

In concern to the digraphs vs easyMotion's technique, I prefer easyMotion's method. Until there is an easier way to implement it though, it's no big deal to go with digraphs. My only concern with the digraphs is how it handles multiples of the same word.

If I had:
Code: Select all
a: true
b: true
c: true
d: true

Two of the digraphs would have to be the same, right?

Anyway, I appreciate your effort and can't wait to see how it turns out.
I'll see if I can think of a better workaround to implement easymotion's concept... Perhaps something with /*comments*/
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: EasyMotion in sublime

Postby C0D312 on Wed Sep 14, 2011 7:44 pm

No, sorry. I'm a git(hub) user :)
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: EasyMotion in sublime

Postby C0D312 on Wed Sep 14, 2011 10:01 pm

Here's my Github account though: https://github.com/BoundInCode
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: EasyMotion in sublime

Postby C0D312 on Thu Sep 15, 2011 2:45 am

I thought that I deleted my BitBucket account. Turns out it still works. My username's BoundinCode, too
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: EasyMotion in sublime

Postby C0D312 on Thu Sep 15, 2011 11:30 pm

I've been playing around with it for a little while now and I'm impressed. It works great. Since I'm using OSX atm so I had to change a lot of the keybindings (because OSX stole all of the alt keys thinking that I insert π鮆µ∫√∂¬ß∂ƒ∆ß∂˚ƒ∆ all the time :/ ) So as I fiddled with the keybindings, I found a lot of extra functionality that I could not understand. Additionally, there seemed to be a lot of keys bound to enter "volcano mode" that were indistinguishable (e.g. alt-i and alt-n seem identical). I'll keep playing around with it though (because it's so damn fun).

Thanks again for this.

btw. I decided to bind volcano mode to
Code: Select all
["," , "t"]
and it works pretty well.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: EasyMotion in sublime

Postby adzenith on Fri Sep 16, 2011 5:02 pm

C0D312, can you post your OS X bindings? I want to play with this but I haven't had time yet to rebind all the keys.
Thanks!
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: EasyMotion in sublime

Postby C0D312 on Fri Sep 16, 2011 9:11 pm

Fixed my OSX keybindings. I changed them a few times so far. I changed alt to ctrl. Tip for OSX users: Because my finger can never seem to press the ctrl key, I went into System Preferences > Keyboard > Modifier Keys and remapped my caps-lock to control. This makes life so much easier and hotspots/volcanoes much better. :D

Here are my OSX bindings: https://gist.github.com/1223147

There was only one or two conflicts when switching from alt to ctrl. I fixed them accordingly...
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Next

Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 7 guests