ProjectThis
Creates a .sublime-project file from the open root folders in the sidebar.
Details
Installs
- Total 0
- Win 0
- Mac 0
- Linux 0
| Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
ProjectThis
A Sublime Text 4 plugin that creates a .sublime-project file from the folders currently open in your sidebar — in one command.
What it does
Open the Command Palette and run ProjectThis. The plugin will:
- Examine the root folders open in the sidebar.
- If no folders are open, show an error dialog.
- If multiple folders are open, ask which folder should contain the project file (with an option to enter a custom path).
- If only one folder is open, use that folder automatically.
- Validate the chosen folder path.
- Derive the project name from the folder name (or prompt for one when a custom path is used).
- Write a
<project-name>.sublime-projectfile that includes all open root folders. - If there is a single open root folder and it contains a
.gitignore, append*.sublime-projectand*.sublime-workspaceto that file (if not already present). - Confirm success with a dialog.
- Open the newly created project in Sublime Text (making it available in the project switcher via
Cmd+Ctrl+Pgoing forward).
Installation
Via symlink (recommended for development)
Sublime Text loads plugins from its Packages directory. Symlink this repo there so edits are picked up immediately:
# macOS
ln -s /path/to/project-this \
"$HOME/Library/Application Support/Sublime Text/Packages/ProjectThis"
# Linux
ln -s /path/to/project-this \
"$HOME/.config/sublime-text/Packages/ProjectThis"
# Windows (run as Administrator)
mklink /D "%APPDATA%\Sublime Text\Packages\ProjectThis" "C:\path\to\project-this"
Manual copy
Copy the repository folder into the Sublime Text Packages directory with the name ProjectThis.
Usage
- Open one or more folders in the Sublime Text sidebar (File → Open Folder…).
- Open the Command Palette (
Cmd+Shift+Pon macOS,Ctrl+Shift+Pon Linux/Windows). - Type ProjectThis and press
Enter. - Follow any prompts (folder selection or project name, when applicable).
- The
.sublime-projectfile is created in the chosen folder.
Generated project file format
Folder paths are stored relative to the .sublime-project file. For a single open folder this is always .; for multiple folders they appear as relative paths (e.g. ../sibling-folder).
{
"folders": [
{
"path": "."
},
{
"path": "../sibling-folder"
}
]
}
Development
The project is managed with uv.
# Clone and enter the directory
git clone <repo-url> project-this
cd project-this
# Create a virtual environment (optional; no runtime deps required)
uv sync
Sublime Text 4 bundles Python 3.8, so the plugin has no third-party dependencies and relies solely on the standard library plus the sublime / sublime_plugin modules provided by the editor at runtime.
Files
| File | Purpose |
|---|---|
ProjectThis.py |
Plugin entry point; defines ProjectThisCommand |
Default.sublime-commands |
Registers the command in the Command Palette |
pyproject.toml |
Project metadata and uv configuration |
Requirements
- Sublime Text 4 (build 4107 or later recommended)
License
MIT