Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 853 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 853 Bytes

Sublime-DeleteCurrentFile

This plugin adds a command (DeleteCurrentFile: Delete File) to the command palette which will delete the current file and close the buffer.

Settings

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
}

Key Binding

You can add a key binding to your .sublime-keymap file:

  {
  	"keys": ["super+control+backspace"],
  	"command": "delete_current_file"
  }