Home Download Buy Blog Forum Support

Move cursor to next/pevious function

Move cursor to next/pevious function

Postby sylvain.berger on Wed Sep 07, 2011 7:12 pm

Hi, I am looking for a way to move my cursor to the previous/next function/Class.

Any macro guru would like to help me out with this? I am coding mainly in python.
The logic would be find the previous/next function definition (def) or class definition (class)

Thanks
sylvain.berger
 
Posts: 5
Joined: Wed Sep 07, 2011 7:09 pm

Re: Move cursor to next/pevious function

Postby iamntz on Wed Sep 07, 2011 7:28 pm

ctrl/cmd+r. Up/down arrows. Enjoy. :D
iamntz
 
Posts: 909
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Move cursor to next/pevious function

Postby sylvain.berger on Wed Sep 07, 2011 8:45 pm

wow good one!
Never thought of not entering text in the command+r window :)

Thanks a lot
sylvain.berger
 
Posts: 5
Joined: Wed Sep 07, 2011 7:09 pm

Re: Move cursor to next/pevious function

Postby liebrand on Fri Sep 09, 2011 2:17 pm

I was looking for something similar, but slightly different. Not sure if I should raise a new topic for this, or hijack this one, but I would like to move my cursor to the top/bottom of the current scope. Textmate has this feature and it's really useful and just about the only thing that i miss in sublime.

Basically if i have my cursor at the start or end of a scope (function or if block or something), using atl-up/down would take me to the top/bottom of the scope and continue to the next scope at the same level.

Is that possible in sublime?
liebrand
 
Posts: 1
Joined: Fri Sep 09, 2011 2:14 pm

Re: Move cursor to next/pevious function

Postby bengold on Tue Oct 18, 2011 6:49 pm

Sorry to dig up an old post, but is there any way to record this as a macro (since macros don't capture the ctrl+r, it looks like) or use this quickly in vintage mode? In Vim, one can use ]] and [[ to move to previous/next.
bengold
 
Posts: 15
Joined: Wed Aug 03, 2011 9:49 pm

Re: Move cursor to next/pevious function

Postby batamire on Thu Nov 21, 2013 7:58 pm

liebrand wrote:I was looking for something similar, but slightly different. Not sure if I should raise a new topic for this, or hijack this one, but I would like to move my cursor to the top/bottom of the current scope. Textmate has this feature and it's really useful and just about the only thing that i miss in sublime.

Basically if i have my cursor at the start or end of a scope (function or if block or something), using atl-up/down would take me to the top/bottom of the scope and continue to the next scope at the same level.

Is that possible in sublime?


Exactly the only thing that I also miss in Sublime.
Two years later and it's still missing.

Is there any plugin that might do this?
batamire
 
Posts: 1
Joined: Thu Nov 21, 2013 7:54 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 8 guests