Sublime Forum

Current project name through API

#1

Is there a way to get the name of the current project via the API? I’m writing a plugin where I want to store information separately based on project…

0 Likes

#2

Actually there kinda is. Jon posted this the other day (saying it’s currently undocumented but he plans to bring a proper project API out so it probably won’t change) but I can’t remember it right now. Something like view().getProject().getFilename() or whatever seems the most logical there (haven’t done any plugin programming myself so I may be way out with my guess of view().getBlahBlah()).

I can’t find it searching the forum right now but I’m sure I saw it the other day!

0 Likes

#3

There is a setting value “workspace_name” in “Session.sublime_session”, but I’m not sure how to access it.

Otherwise I wasn’t able to find any undocumented methods that allow access the project…

0 Likes