From ebf219f141e1aa4846f788298adf420bfadda691 Mon Sep 17 00:00:00 2001 From: Rafal Chlodnicki Date: Thu, 9 Feb 2023 22:13:07 +0100 Subject: [PATCH 1/2] Hide "Open Folder..." command from Default package --- prevent_default.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/prevent_default.py b/prevent_default.py index 928e71a..fbe062e 100644 --- a/prevent_default.py +++ b/prevent_default.py @@ -1,5 +1,5 @@ import sublime_plugin -from Default.side_bar import RenamePathCommand +from Default.side_bar import RenamePathCommand as DefaultRenamePathCommand class NewFileAtCommand(sublime_plugin.WindowCommand): @@ -34,7 +34,7 @@ def is_enabled(self): return False -class RenamePathCommand(RenamePathCommand): +class RenamePathCommand(DefaultRenamePathCommand): def is_visible(self): return False @@ -47,6 +47,14 @@ def is_enabled(self): return False +class OpenFolderCommand(sublime_plugin.WindowCommand): + def is_visible(self): + return False + + def is_enabled(self): + return False + + class OpenContainingFolderCommand(sublime_plugin.WindowCommand): def is_visible(self): return False From 7314125b00b96428088b312dde63599c7b45d143 Mon Sep 17 00:00:00 2001 From: Rafal Chlodnicki Date: Sun, 25 Jan 2026 18:47:56 +0100 Subject: [PATCH 2/2] disable delete which duplicates native one --- Side Bar.sublime-menu | 90 ++++++++++++++++++++----------------------- 1 file changed, 41 insertions(+), 49 deletions(-) diff --git a/Side Bar.sublime-menu b/Side Bar.sublime-menu index 235f287..ed9f93e 100644 --- a/Side Bar.sublime-menu +++ b/Side Bar.sublime-menu @@ -55,14 +55,6 @@ "paths": [] } }, - { - "caption": "Delete", - "command": "fm_delete", - "mnemonic": "e", - "args": { - "paths": [] - } - }, { "caption": "-" }, @@ -111,46 +103,46 @@ "paths": [] } }, - { - "caption": "-" - }, - { - "mnemonic": "C", - "caption": "Copy", - "children": [ - { - "caption": "Name", - "command": "fm_copy", - "args": { - "which": "name", - "paths": [] - } - }, - { - "caption": "Absolute Path", - "command": "fm_copy", - "args": { - "which": "absolute path", - "paths": [] - } - }, - { - "caption": "Path from root", - "command": "fm_copy", - "args": { - "which": "path from root", - "paths": [] - } - }, - { - "caption": "Relative Path", - "command": "fm_copy", - "args": { - "which": "relative path", - "paths": [] - } - } - ] - } + // { + // "caption": "-" + // }, + // { + // "mnemonic": "C", + // "caption": "Copy", + // "children": [ + // { + // "caption": "Name", + // "command": "fm_copy", + // "args": { + // "which": "name", + // "paths": [] + // } + // }, + // { + // "caption": "Absolute Path", + // "command": "fm_copy", + // "args": { + // "which": "absolute path", + // "paths": [] + // } + // }, + // { + // "caption": "Path from root", + // "command": "fm_copy", + // "args": { + // "which": "path from root", + // "paths": [] + // } + // }, + // { + // "caption": "Relative Path", + // "command": "fm_copy", + // "args": { + // "which": "relative path", + // "paths": [] + // } + // } + // ] + // } ]