AddFolderToProject is a Sublime Text package that streamlines the process of adding and removing folders to and from your projects. It provides a set of commands and context menu options to manage your project's folder structure directly from the editor.
Of course, you can use the already built-in function (Project -> Add Folder to Project...).
But then you have to click through all the folders again and again.
This package is a rewrite
of the existing package AddFolderToProject
by David Gerva
AddFolderToProject-SublimePlugin.
Further information can be found here: Rewrite
Repository | GitHub | Sublime / Package Control |
---|---|---|
Status |
---|
- Add Folder to Project
- Remove Folder from Project
- Add Custom Folder to Project
- Add this Folder to Project
- Remove this Folder from Project
- Create Project from File
- Copy File Path
- Copy Dir Path
This function provides a searchable list of folders that can be added to the current project.
The list consists of absolute paths (see Settings) add_folder_to_project_folders
and recursive paths add_folder_to_project_recursive_folders
.
Command: AddFolderToProject: Add Folder to Project
This function provides a list of active folders in the project, that can be removed from the current project.
Command: AddFolderToProject: Remove Folder from Project
This function allows you to add a custom folder to the project (absolute path).
Command: AddFolderToProject: Add Custom Folder to Project
This function adds the folder of the current open file to the project.
Command: AddFolderToProject: Add this Folder to Project
This function removes the folder of the current open file from the project.
Command: AddFolderToProject: Remove this Folder from Project
This function creates a new project (new sublime window) with the folder of the current open file.
Command: AddFolderToProject: Create Project from File
Copies the file path of the current open file.
Command: AddFolderToProject: Copy File Path
Copies the dir path of the current open file.
Command: AddFolderToProject: Copy Dir Path
Each time a folder is added, the code checks whether it already exists in the configuration (add_folder_to_project_folders
).
If not, it asks whether this path should be saved.
These functions are accessible through the context menu and the sidebar menu, making it easy to manage your project's folders without leaving your editor.
The following functions are available in the Context menu:
- Add Folder to Project
- Remove Folder from Project
- Add this Folder to Project
- Remove this Folder from Project
- Create Project from File
- Copy File Path
- Copy Dir Path
The following functions are available in the Sidebar menu:
- Add Folder to Project
- Remove Folder from Project
- Add this Folder to Project
- Remove this Folder from Project
- Create Project from File
- Copy File Path
- Copy Dir Path
Settings -> Package Settings -> AddFolderToProject -> Settings
Name | Description | Default Value |
---|---|---|
add_folder_to_project_folders | Provides a searchable list of folders that can be added to the current project. | /Users/dennykorsukewitz/ |
add_folder_to_project_recursive_folders | Provides a searchable (only first level) list of folders (recursive) that can be added to the current project. For example: "/Users/" - adds "/Users/dennykorsukewitz/" to list. | `` |
To install this package, you have three options:
Search and install online package via Sublime Package Control.
Tools
-> Command Palette
-> Package Control: Install Package
-> simply search for AddFolderToProject
to install.
Download latest sublime-package file and move the package AddFolderToProject.sublime-package
to Installed Packages
folder.
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Installed Packages/
- or ST 3 -
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Installed Packages/
cd ~/.config/sublime-text-2/Installed Packages
- or ST 3 -
cd ~/.config/sublime-text-3/Installed Packages
cd "%APPDATA%\Sublime Text 2\Installed Packages"
- or ST 3 -
cd "%APPDATA%\Sublime Text 3\Installed Packages"
Clone the latest dev branch and unpack it to Sublime Package folder Packages
.
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/
- or ST 3 -
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
git clone git@github.com:dennykorsukewitz/Sublime-AddFolderToWorkspace.git AddFolderToProject
cd ~/.config/sublime-text-2/Packages
- or ST 3 -
cd ~/.config/sublime-text-3/Packages
git clone git@github.com:dennykorsukewitz/Sublime-AddFolderToWorkspace.git AddFolderToProject
cd "%APPDATA%\Sublime Text 2\Packages"
- or ST 3 -
cd "%APPDATA%\Sublime Text 3\Packages"
git clone git@github.com:dennykorsukewitz/Sublime-AddFolderToWorkspace.git AddFolderToProject
For download see Sublime-AddFolderToProject
The rewrite was made for the following reasons:
- AddFolderToProject-SublimePlugin has not been maintained since 09/02/2015.
- Issues and PullRequest were not further processed. Now all known issues are fixed.
- New functions and the old functions from David Gerva have been compiled and revised.
With David's permission, we have now changed the source of the package to this repository so that we can continue to offer the functionality to users of this package.
Many thanks to David Gerva for his wonderful work! ❤️ Open Source ❤️
Enjoy!
Your Denny Korsukéwitz 🚀