Home Download Buy Blog Forum Support

CursorRuler - Marks cursor position with dynamic rulers

CursorRuler - Marks cursor position with dynamic rulers

Postby icylace on Sun Feb 10, 2013 4:41 am

Hi everyone! I created a plugin that addresses the lack of column highlighting in Sublime Text.

https://github.com/icylace/CursorRuler

Currently trying to get it into Package Control.

Feedback is encouraged,
:D


UPDATE (2013-02-21):
CursorRuler is now available through Package Control!
Last edited by icylace on Thu Feb 21, 2013 3:36 pm, edited 1 time in total.
icylace
 
Posts: 47
Joined: Mon Jan 14, 2013 7:24 am

Re: CursorRuler - Marks cursor position with dynamic rulers

Postby adzenith on Sun Feb 10, 2013 8:59 pm

Doesn't seem to work in Sublime Text 2...

Code: Select all
Traceback (most recent call last):
  File "./sublime_plugin.py", line 210, in on_deactivated
  File "./sublime_plugin.py", line 154, in run_timed_function
  File "./sublime_plugin.py", line 209, in <lambda>
  File "./CursorRuler.py", line 199, in on_deactivated
  File "./CursorRuler.py", line 152, in is_enabled
AttributeError: type object 'CursorRuler' has no attribute 'enabled'
adzenith
 
Posts: 1213
Joined: Mon Oct 19, 2009 9:12 pm

Re: CursorRuler - Marks cursor position with dynamic rulers

Postby icylace on Sun Feb 10, 2013 9:42 pm

Thanks! I made an update so hopefully you won't be seeing those errors anymore.
icylace
 
Posts: 47
Joined: Mon Jan 14, 2013 7:24 am

Re: CursorRuler - Marks cursor position with dynamic rulers

Postby adzenith on Sun Feb 10, 2013 10:03 pm

Sweet! Thanks for the super fast fix. This looks cool.
It seems I have to restart Sublime Text whenever I change my cursor settings, though. Any chance it could use settings().add_on_change to update automatically? :) Sorry I'm so demanding!
adzenith
 
Posts: 1213
Joined: Mon Oct 19, 2009 9:12 pm

Re: CursorRuler - Marks cursor position with dynamic rulers

Postby adzenith on Sun Feb 10, 2013 10:04 pm

Oh, wait, it is using add_on_change... why is it not updating? How strange.
adzenith
 
Posts: 1213
Joined: Mon Oct 19, 2009 9:12 pm

Re: CursorRuler - Marks cursor position with dynamic rulers

Postby adzenith on Sun Feb 10, 2013 10:04 pm

Oh, I see! It looks like the rulers only update when a view is re-activated. I just need to switch to another view and switch back and everything's good.
adzenith
 
Posts: 1213
Joined: Mon Oct 19, 2009 9:12 pm

Re: CursorRuler - Marks cursor position with dynamic rulers

Postby adzenith on Sun Feb 10, 2013 10:20 pm

Also, this is really cool. Thanks!
adzenith
 
Posts: 1213
Joined: Mon Oct 19, 2009 9:12 pm

Re: CursorRuler - Marks cursor position with dynamic rulers

Postby icylace on Sun Feb 10, 2013 10:21 pm

Yes, good point! After you save changes to your user settings or your CursorRuler settings the changes take effect once the cursor state changes. I've updated my README to note this behavior.

Also, thanks ! :)

UPDATE:

Also, thanks for the settings file improvements. I merged them in.
icylace
 
Posts: 47
Joined: Mon Jan 14, 2013 7:24 am

Re: CursorRuler - Marks cursor position with dynamic rulers

Postby facelessuser on Mon Feb 11, 2013 5:55 pm

Oh...wow...I like this. Why has no one thought of this before. Thanks for this.
facelessuser
 
Posts: 1542
Joined: Tue Apr 05, 2011 7:38 pm

Re: CursorRuler - Marks cursor position with dynamic rulers

Postby icylace on Tue Feb 12, 2013 3:47 am

Much appreciated! I'm glad you like it.
icylace
 
Posts: 47
Joined: Mon Jan 14, 2013 7:24 am

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 7 guests