AddFolderToProject

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.

1
2
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.

Note

Takeover (date) Takeover (downloads)

This package is a rewrite of the existing package AddFolderToProject by David Gerva AddFolderToProject-SublimePlugin.

Further information can be found here: Rewrite


RepositoryGitHubSublime / Package Control
GitHub release (latest by date)GitHub open issues GitHub closed issuesPackage Control
GitHub licenseGitHub pull requests GitHub closed pull requestsPackage Control
GitHub language countGitHub contributorsPackage Control
GitHub code size in bytesGitHub downloadsPackage Control
Status
GitHub commits since tagged version GitHub Workflow Lint GitHub Workflow Pages

Feature

Add Folder to Project

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

AddFolderToProject

Remove Folder from 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

RemoveFolderFromProject

Add Custom Folder to Project

This function allows you to add a custom folder to the project (absolute path).

Command: AddFolderToProject: Add Custom Folder to Project

AddCustomFolderToProject

Add this Folder to Project

This function adds the folder of the current open file to the project.

Command: AddFolderToProject: Add this Folder to Project

AddThisFolderToProject

Remove this Folder from Project

This function removes the folder of the current open file from the project.

Command: AddFolderToProject: Remove this Folder from Project

RemoveThisFolderFromProject

Create Project from File

This function creates a new project (new sublime window) with the folder of the current open file.

Command: AddFolderToProject: Create Project from File

CreateProjectFromFile

Copy File Path

Copies the file path of the current open file.

Command: AddFolderToProject: Copy File Path

CopyFilePath

Copy Dir Path

Copies the dir path of the current open file.

Command: AddFolderToProject: Copy Dir Path

CopyDirPath

General

Save Folder In Settings

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.

Context Menu

The following functions are available in the Context menu:

Context-Menu

Context-Menu

The following functions are available in the Sidebar menu:

Sidebar-Menu

Sidebar-Menu

Settings

Settings -> Package Settings -> AddFolderToProject -> Settings

NameDescriptionDefault Value
add_folder_to_project_foldersProvides a searchable list of folders that can be added to the current project./Users/dennykorsukewitz/
add_folder_to_project_recursive_foldersProvides 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.``

Installation

To install this package, you have three options:

1. Search Package via Package Control

Search and install online package via Sublime Package Control.

Tools -> Command Palette -> Package Control: Install Package -> simply search for AddFolderToProject to install.

2. Install via sublime-package file

Download latest sublime-package file and move the package AddFolderToProject.sublime-package to Installed Packages folder.

OSX

1
2
3
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Installed Packages/
- or ST 3 -
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Installed Packages/

Linux

1
2
3
cd ~/.config/sublime-text-2/Installed Packages
- or ST 3 -
cd ~/.config/sublime-text-3/Installed Packages

Windows

1
2
3
cd "%APPDATA%\Sublime Text 2\Installed Packages"
- or ST 3 -
cd "%APPDATA%\Sublime Text 3\Installed Packages"

3. Source code

Clone the latest dev branch and unpack it to Sublime Package folder Packages.

OSX

1
2
3
4
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

Linux

1
2
3
4
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

Windows

1
2
3
4
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

Download

For download see Sublime-AddFolderToProject


Rewrite

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 🚀