Sublime Forum

Remove "Upload Open Files" from menu

#1

Hi, How do I turn off an option from the context menus? I have SFTP installed and do NOT want the “Upload Open Files” option on the menu - pressed it once too many times by accident this morning and almost caused a major issue.

Is there an easy way to remove it?

0 Likes

#2

You can modify the resource file that’s providing the menu item to remove it (or move it elsewhere in the menu). However the SFTP package specifies that it should always be installed as an unpacked package file, which means that whenever the package upgrades, your changes will be lost.

With that caveat, select View Package File from the command palette and enter the text SFTP context menu to filter the list of package files, then open SFTP/Context.sublime-menu.

You can delete line 8 to remove the command, or move it to another place in the list of menu items to make it less likely for you to hit it. Once you save the file the changes are immediately applied.

Just remember that when the package updates, you need to do it again.

0 Likes