Skip to content

Adds a "DeleteCurrentFile: Delete File" command which deletes the current file and closes the current buffer.

Notifications You must be signed in to change notification settings

yaworsw/Sublime-DeleteCurrentFile

Repository files navigation

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"
  }

About

Adds a "DeleteCurrentFile: Delete File" command which deletes the current file and closes the current buffer.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages