Reputation: 25423
Is there any shortcut to delete the currently opened file in Sublime 3?
I have installed the SideBarEnhancements, but it is a lot of work to right click on a file, select delete, confirm the popup and then again close the file and the popup, because the file has been deleted and I have some unsaved changes.
Upvotes: 2
Views: 989
Reputation: 31
The functions name to delete the selected file from the sidebar is named "side_bar_delete", so if you have SideBarEnhancements installed you can use this function. So my version for example is:
[
{"keys": ["super+alt+backspace"], "command": "side_bar_delete"}
]
Paste it in the general user.sublime-keymap file.
Upvotes: 3
Reputation: 3385
This plugin will delete the file and close the buffer, and you could bind the command to a key.
Note however there's a potential conflict with the SideBarEnhancements delete command, see the workaround described in the readme.
Upvotes: 0