Close without confirm
Yes, you can just write a plugin to set the view as scratch and close it. Then create a keybinding for that command. Select Tools > Developer > New Plugin... and paste:
import sublime_plugin
class CloseWithoutSavingCommand(sublime_plugin.WindowCommand):
def run(self):
view = self.window.active_view()
view.set_scratch(True)
view.close()
Sift + ctrl + p to find menu
The create a keybinding to overwrite ctrl+w
{
"keys": ["ctrl+w"],
"command": "close_without_saving",
},
댓글 없음:
댓글 쓰기