Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude unpacked packages from Package Control menu #1429

Closed
john-cj opened this issue May 28, 2019 · 3 comments
Closed

Exclude unpacked packages from Package Control menu #1429

john-cj opened this issue May 28, 2019 · 3 comments

Comments

@john-cj
Copy link

john-cj commented May 28, 2019

Is there a way to exclude packages in Packages directory from being visible in Package Control menu? I'm afraid of accidentally delete them.

@FichteFoll
Copy link
Collaborator

FichteFoll commented May 29, 2019

Which menu are you talking about and which packages do you intend to exclude?

@john-cj
Copy link
Author

john-cj commented May 29, 2019

I'm talking about the menu which could be invoked by pressing Ctrl+Shift+P and then selecting Package Control: Remove Package item. This menu is shown on the screenshot below.

I have My Package 1, My Package 2, and other unpacked packages in Sublime Text's Packages folder. These packages weren't installed from GitHub. They are just files on my PC. If I accidentally delete one of them by accidentally pressing "Enter" key in the above-mentioned menu, it will be lost.

st1

st1

@john-cj
Copy link
Author

john-cj commented Jun 3, 2019

A possible solution to solve this issue is to add a new setting to the Package Control settings file. Something like this:

{
    // Ignore specific directories in the <Data>/Packages folder.
    // These directories will not be listed under Package Control menu,
    // updated, or overwritten.
    "ignore_specific_directories_in_the_packages_folder": [
        // This list is empty by default. We have added 2 packages manually:
        "My Package 1",
        "My Package 2"
    ]
}

@deathaxe deathaxe added this to the Package Control 4.0 milestone Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants