Sublime Forum

Can you hide certain menu items

#1

ST3, OSX

Is it possible to hide certain menu items added by other packages?

Example: I use the sublime git package, and I want to hide forever the “Git: Add All” option. I never needed, never use it and it always shows up on top of the one I always need which is “Git: Add Current File”

0 Likes

#2

Where does the Git: Add All option show up ? When you right click on the open file ? If that’s the case,

  1. Go to View Package File -> Git: Context.sublime-menu from the command palette and copy the contents of the file.
  2. Create a folder in the packages (to access, go to Preferences -> Browse Packages...) directory, which should have the name of the package (the exact name of the sublime git package) and then create a file called Context.sublime-menu and paste the previous contents you copied.
  3. Remove the json entry that corresponds to Git: Add All
    .
    Hopefully, this should remove that option & have the other options you require intact.
0 Likes

#3

As shameless self promotion (since I’m the author), one of the easiest ways to create an override on a resource would be to use the OverrideAudit package. Using that, you can use OverrideAudit: Create Override, select the thing you want to modify, and save the file to automatically put the correct file in the correct place. OverrideAudit also warns you if the underlying package changes so you’ll be warned if there may be problems.

1 Like

#4

that’s perfect, thanks both!

0 Likes