Home Download Buy Blog Forum Support

View.id(), Window.id(), sublime.windows()

Re: View.id(), Window.id(), sublime.windows()

Postby SteveCooperOrg on Tue Feb 24, 2009 8:10 am

I've also wanted something similar when writing my emacs kill ring plugin. I need to be able to maintain an integer for each distinct document. This is fine when your file is saved -- you can use view.fileName() as the identifer -- but not for unsaved files, where I can't figure out how to tell one from the other.

So if you are so inclined, Jon, how about adding a view.bufferId() method, too, which returns the same value across different views of the same buffer.
Maybe what you're looking for is at the http://www.sublimetextwiki.com
Posts: 193
Joined: Thu Mar 20, 2008 9:53 am

Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests