Home Download Buy Blog Forum Support

(ST3) FindCursor

(ST3) FindCursor

Postby facelessuser on Fri Feb 21, 2014 7:15 pm

Simple little plugin that will briefly make all cursors highly visible. It also cycles through all cursors centering them in your view. After a couple of seconds, the cursors should return to whatever you had them set to before.

I personally like to have a low profile cursor. But on the occasion I have scrolled far away from the cursor, or for whatever reason have lost sight of my cursor, I use this to quickly make the cursor very visible and centered. It is also useful for cycling through all of your cursors.

You can also use "pan mode" that will pan through the view showing cursors opposed to iterating through all of the cursors.

Repo is here: https://github.com/facelessuser/FindCursor

Set up a keymap something like this (You don't have to have two that cycle in opposite directions, if you want, you can just use one):
    //////////////////////////////////
// Find Cursor: Iterative Find
//////////////////////////////////
{
"keys": ["ctrl+."],
"command": "find_cursor",
"args": {"reverse": false, "pan": false}
},
{
"keys": ["ctrl+shift+."],
"command": "find_cursor",
"args": {"reverse": true, "pan": false}
}

//////////////////////////////////
// Find Cursor: Panning Find
//////////////////////////////////
{
"keys": ["ctrl+."],
"command": "find_cursor",
"args": {"reverse": false, "pan": true}
},
{
"keys": ["ctrl+shift+."],
"command": "find_cursor",
"args": {"reverse": true, "pan": true}
}


Just thought I'd share.
Last edited by facelessuser on Mon Feb 24, 2014 2:58 am, edited 2 times in total.
facelessuser
 
Posts: 1542
Joined: Tue Apr 05, 2011 7:38 pm

Re: (ST3) FindCursor

Postby highend on Sat Feb 22, 2014 10:00 am

Thanks for sharing it, very useful!
highend
 
Posts: 93
Joined: Fri Jan 20, 2012 2:47 pm

Re: (ST3) FindCursor

Postby bizoo on Sat Feb 22, 2014 3:41 pm

Nice plugin thanks, I'll try it.

You may be interested in this one:
https://github.com/bizoo/Sublime-Selections/blob/master/navigate_selections.py
it navigate trough invisible cursors, so it means that it navigate to the next/previous cursor outside the actual visible region.
I think it's more handy this way.
bizoo
 
Posts: 870
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: (ST3) FindCursor

Postby facelessuser on Sat Feb 22, 2014 4:00 pm

bizoo wrote:Nice plugin thanks, I'll try it.

You may be interested in this one:
https://github.com/bizoo/Sublime-Selections/blob/master/navigate_selections.py
it navigate trough invisible cursors, so it means that it navigate to the next/previous cursor outside the actual visible region.
I think it's more handy this way.


Ahh, I see what you did. Very nice. I guess what I was solving first and foremost was when I sometimes can't see the low profile cursor that may or may not be visible. The idea was to make it super visible so there was no doubt where it was. I then thought it would be nice to certain it as well, so then you would now where to look (in cases where the cursor could be centered). Then I decided to take it further. So now it takes you to the first, and then if you press it again, it takes you to the next cursor (visible or outside visible region).

But thinking about now after seeing your plugin, maybe what might be useful is to highlight the first visible cursor, and then cycle through them in the direction of your choice.
facelessuser
 
Posts: 1542
Joined: Tue Apr 05, 2011 7:38 pm

Re: (ST3) FindCursor

Postby facelessuser on Sat Feb 22, 2014 4:06 pm

Or maybe...just make visible cursors highly visible on first press, then additional presses begin cycling through cursors starting with first non-visible cursor. I will play around and see what works best.
facelessuser
 
Posts: 1542
Joined: Tue Apr 05, 2011 7:38 pm

Re: (ST3) FindCursor

Postby facelessuser on Sat Feb 22, 2014 6:50 pm

Okay, the next iteration, once I get some time, will have two methods of showing cursors. Both methods on first access will make current visible cursors highly visible (center will center first visible cursor). Additional presses will either sequentially iterate through the cursor and center them, or pan the view to show cursors off screen.

So basically I will have a center mode or a pan mode. But both modes will start with what is visible and move in your chosen direction.
facelessuser
 
Posts: 1542
Joined: Tue Apr 05, 2011 7:38 pm

Re: (ST3) FindCursor

Postby facelessuser on Sat Feb 22, 2014 11:19 pm

Added panning mode. I will refer to the default mode now as iterative mode. Anyways, the commands have now changed, so if you update, you should see the opening post to see the new command format. You can select to use the default iterative mode or the panning mode.

Searches should now always start out relative to the viewable region as well.
facelessuser
 
Posts: 1542
Joined: Tue Apr 05, 2011 7:38 pm

Re: (ST3) FindCursor

Postby facelessuser on Sun Feb 23, 2014 5:54 pm

One more small update:

- Iterative find now focuses the cursor closest to viewable center
- Once cursors have returned to normal, next iterative find will be relative to whatever cursor is now closest to center opposed to the last cursor index found
- FIX: some small logic fixes
facelessuser
 
Posts: 1542
Joined: Tue Apr 05, 2011 7:38 pm

Re: (ST3) FindCursor

Postby facelessuser on Mon Feb 24, 2014 2:59 am

Now available in its own repo https://github.com/facelessuser/FindCursor.
facelessuser
 
Posts: 1542
Joined: Tue Apr 05, 2011 7:38 pm

Re: (ST3) FindCursor

Postby bizoo on Mon Feb 24, 2014 8:25 am

Just tried it and works perfectly.
Thanks for sharing.
bizoo
 
Posts: 870
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: Yahoo [Bot] and 11 guests