ex-mode
ex-mode copied to clipboard
:q! asks for save confirmation
Hello,
Doing ":q!" asks for saving confirmation. Is it possible for it to force close the file instead without asking for confirmation?
I think this is possible. Pane::deleteItem has a force flag. So we could do:
# :q!
pane = atom.workspace.getActivePane()
pane.destroyItem(pane.getActiveItem(), true)