Sublime Forum

API Request: Project File Path Access

#1

Here’s hoping. I would like to put in a request for access for a window API command to get the project path if available; maybe return None if there is not one. I would find it quite useful.

Basically I want to allow for project specific features in a plugin, and it is very difficult to determine if a window is a saved project. I want to be able to find the project file so I can store settings in the the projects settings portion, but currently the only way to find the project file is to parse the ST2 session files, and those are aren’t reliable in finding the path, because they are not always current until a file gets saved.

0 Likes