Home Download Buy Blog Forum Support

focus follows cursor?

focus follows cursor?

Postby sfranky on Tue Jun 11, 2013 10:01 am

Is it possible to have this functionality? I couldn't find anything in the settings, or in the forum.

It is very useful when reversing the cursor selection by mouse (built-in), by keyboard (Select-Until plugin by xavi-), or when eyeballing (eyeball plugin by wuub). In each of these cases, the cursor jumps outside the screen, and there is no way to go where it is, unless I lose my selection.

thanks!
sfranky
 
Posts: 96
Joined: Mon Oct 19, 2009 10:06 pm

Re: focus follows cursor?

Postby sfranky on Tue Jun 11, 2013 12:40 pm

focus.pretty_please(follow_cursor) :?:
:(
sfranky
 
Posts: 96
Joined: Mon Oct 19, 2009 10:06 pm

Re: focus follows cursor?

Postby adzenith on Tue Jun 11, 2013 3:00 pm

Are you saying you want the focus to follow the mouse cursor, or the insertion point? Doesn't it follow the insertion point already?
adzenith
 
Posts: 1204
Joined: Mon Oct 19, 2009 9:12 pm

Re: focus follows cursor?

Postby sfranky on Tue Jun 11, 2013 3:11 pm

It's only following the insertion point in some cases. It doesn't in the cases I have mentioned in my post. In the built-in case, you select a region, by mouse, or by keyboard (but it must extend outside the screen), and then you click with the mouse anywhere in the selection. That reverses the cursor position. The focus doesn't follow, the cursor is now outside of the screen.
sfranky
 
Posts: 96
Joined: Mon Oct 19, 2009 10:06 pm

Re: focus follows cursor?

Postby adzenith on Tue Jun 11, 2013 3:40 pm

Oh, you're saying that part of the selection is on screen put the actual insertion point at the end of it is off screen? Am I understanding that right?
As for clicking in a selection, for me that always removes the selection and then the insertion point is by definition on screen, because it's placed where I just clicked.
adzenith
 
Posts: 1204
Joined: Mon Oct 19, 2009 9:12 pm

Re: focus follows cursor?

Postby sfranky on Tue Jun 11, 2013 3:50 pm

sorry, I meant, i *hold shift* and then leftclick !
and for the first one, yes, this is what I mean. When a selection extends outside the screen, and you reverse the position of the cursor, it should scroll to show the other end. In other words, the cursor should always be inside the screen.

The other built-in case where this happens is "expand selection to indentation". If the selection is longer, you're left with no cursor, and in the same position.
sfranky
 
Posts: 96
Joined: Mon Oct 19, 2009 10:06 pm

Re: focus follows cursor?

Postby bizoo on Tue Jun 11, 2013 7:09 pm

If you have only one cursor use the menu:
Code: Select all
Goto -> Scroll -> Scroll To Selection

If you want something that works for multi-cursor:
http://www.sublimetext.com/forum/viewtopic.php?f=5&t=10731
bizoo
 
Posts: 859
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: focus follows cursor?

Postby sfranky on Tue Jun 11, 2013 9:04 pm

thanks for this, but i want this to happen automatically, not by pressing a keybinding (is there a way I can combine this keybinding with the other actions, so that it fires at the end of the action?)
sfranky
 
Posts: 96
Joined: Mon Oct 19, 2009 10:06 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 18 guests