-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename: use default command instead of custom one
The slight problem is that if we don't disable the default command, then it shows up before the `New` command, which isn't right. So, instead, we enable the default (rename_path), but hide it (is_visible() -> False). Then, we create our own little command (fm_rename_path) that calls rename_path. Like this, we control where fm_rename_path shows up in the context menu. File Manager: Rename has been removed from the command palette (use Rename File). fm_rename now prints a deprecation warning. We don't use Python's warning module because warnings aren't enabled by default, and I don't want to change the defaults for everyone. ref #49
- Loading branch information
Showing
5 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters