Sublime Forum

Beyond `sublime.project_file_name()` can I get something like `sublime.workspace_file_name()`?

#1

I am fixing this issue:

On the on the package

  1. https://packagecontrol.io/packages/RememberCommandPaletteInput
  2. https://github.com/SublimeTextIssues/Core/issues/1814#issuecomment-367093727

The only limitation of this fix will be if Sublime Text closes before I got the chance to save the input for all workspaces, the inputs are lost on the next restart/start up.

For now I will use the sublime.project_file_name(), but his is not optimal because one project can have several distinct workspaces.

Or, do you know how to save thinks on the .sublime-workspace (not .sublime-project)?

0 Likes

#2

I just figured out I can use window.settings() to save things, and Sublime Text will remember these things even after restarting Sublime Text:

Related threads:

0 Likes