I want to create shortcut to delete the current file. And forgo the dialog box message “are you sure you want to delete this file…?”. Anybody know the command for that shortcut?
How to create shortcut to delete current file
Try:
TabsExtra
It gives you a ton of options when you right click on tabs, including Delete File
:
However, I’m not sure that it’s possible to bypass the confirmation dialog…
You could create your own plugin and copy the implementation from TabsExtra but just remove the prompt - https://github.com/facelessuser/TabsExtra/blob/master/tabs_extra.py#L834
isn’t that the default context menu already have the delete feature? I used that all the time. However I’m looking for faster way, like press alt+shift+delete to delete the current file. any idea?
create a keybinding for it http://docs.sublimetext.info/en/latest/reference/key_bindings.html
That’s bold man, I’d be afraid to have such a command as a key binding, especially without the confirmation lol
Between the two links @kingkeith shared you should be able to put together a simple plugin & map a key binding to it.
I think it sends to the recycle bin, so it’s not too dangerous, but yeah 'tis bold
serious guy, can it be a little more detail. I don’t know anything about the py stuff.