In the status bar where it currently says "Line ##, Column ##", can this be changed to "Line ## of ###, Column ##" where ### is the total line count for the document? It's just a handy bit of info to know at a glance
Cheers!
ToddFiske wrote:I would like to see this too, and maybe also the total byte count of the file.
ToddFiske wrote:Other editors I've used would even show the decimal and hex value of the current character, which would be cool to have.
Quite interesting! If it doesn't make the status bar look too crowded, then I say go for it.
statusFormat "Line %line of %lines, Col %col of %cols, %bytes bytes - %char %dec %hex"ToddFiske wrote:Quite interesting! If it doesn't make the status bar look too crowded, then I say go for it.
Of course, my feature suggestion about that is to have a user editable status format with replaceable tokens:
- Code: Select all
statusFormat "Line %line of %lines, Col %col of %cols, %bytes bytes - %char %dec %hex"
For example.Then Sublime Text can come with a default standard format, and people can customize it as they like.
import sublime, sublimeplugin
class CustomStatusBar(sublimeplugin.Plugin):
def onSelectionModified(self, view):
if not view.hasNonEmptySelectionRegion():
line, column = view.rowcol(view.sel()[0].begin())
totalLines = len(view.lines(sublime.Region(0L, view.size())))
msg = 'Line %d of %d, Column %d' % (line, totalLines, column)
sublime.statusMessage(msg)
else:
sublime.statusMessage('') # restore default status msgview.setStatus("totalLines", "Total lines: %d" % totalLines) msg = 'Line %d of %d, Column %d' % (line + 1, totalLines + 1, column + 1)Return to Ideas and Feature Requests
Users browsing this forum: No registered users and 1 guest