Created
January 19, 2016 15:20
-
-
Save peterbourgon/fccf08d920e5f811d093 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime, sublime_plugin | |
class PositionListener(sublime_plugin.EventListener): | |
def on_selection_modified(self,view): | |
text = "Pos:" | |
sels = view.sel() | |
for s in sels: | |
text += " " + str(s.begin()) | |
if not s.empty(): | |
text += "-" + str(s.end()) | |
view.set_status('exact_pos', text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment