This plugin adds a command (DeleteCurrentFile: Delete File
) to the command palette which will delete the current file and close the buffer.
With the plugin's settings you may customize if you want to see a confirmation message, or if you want to send the deleted file to the trash or the unrecoverable void.
By default there is no confirmation message and the file is moved to the trash.
{
// close the current buffer after deleting the current file
"auto_close_buffer": true,
// before doing anything display a prompt
"prompt_before_delete": false,
// move to trash instead of deleting
"move_to_trash": true
}
You can add a key binding to your .sublime-keymap
file:
{
"keys": ["super+control+backspace"],
"command": "delete_current_file"
}