https://github.com/kaste/opentheproject
https://github.com/kaste/opentheproject
sublime sublime-plugin
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kaste/opentheproject
- Owner: kaste
- Created: 2018-05-16T13:59:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-26T15:18:11.000Z (over 1 year ago)
- Last Synced: 2025-01-19T14:17:28.937Z (4 months ago)
- Topics: sublime, sublime-plugin
- Language: Python
- Size: 46.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hi
The plugin automatically opens a folder as a project.
:confused:? So, you usually type
```
subl
OR
subl .
```But this opens the folder not bound to any project data or project settings. :cry:
We can fix that. :wink: If there is a `*.sublime-project` in that folder, we just open the project instead! And if there is no project file, we will ask you to create a basic one.
A new view setting `auto_generate_projects` can be used to parameterize the latter feature.
Set it to `True` to create a project file automatically without asking, `"ask"` (the default)
to confirm the creation, and `False` to never do it.If you set `False` you can invoke `Create Project File: from first open folder`
from the Command Palette.# Open Project
There is also a simple project switcher `Open Project` (the command is called `open_last_used_project`). E.g.
```
{ "keys": ["ctrl+o"], "command": "open_last_used_project"},
```This is similar to the built in "Quick Switch Project" but suppresses workspace
files (because ~~nobody uses~~I don't use them[1]). It uses a standard quick panel
which just works perfectly. Use `ctrl+enter` to switch projects, reusing the window,
and `enter` to focus or open a new window. As the most recently used project is
selected by default, this allows for e.g. `ctrl+o, ctrl+enter` to switch between the
two recent projects very quickly. As a bonus `alt+enter` closes a project that is
already open which makes tyding up your desktop a bit faster.(The list also cleans up quickly as it hides unreachable folders. "Quick Switch Project"
feels like an evergrowing list. 👋)This feature transparently saves its state to "User/LastUsedProjects". You shouldn't edit this
file probably.[1] I don't use *multiple* workspaces per project.