Is it possible to show the exact position in Sublime Text 2? Is it possible to show the exact position in Sublime Text 2? python python

Is it possible to show the exact position in Sublime Text 2?


You could make a simple python script to do this.

1.Save this code to your User folder as characterCounter.py (Preferences > Browse Packages > User):

import sublime, sublime_pluginclass PositionListener(sublime_plugin.EventListener):  def on_selection_modified(self,view):    text = "Position: "    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)

2.Then restart Sublime Text to have it loaded.