Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:q! asks for save confirmation #207

Open
qazip opened this issue Mar 18, 2018 · 1 comment
Open

:q! asks for save confirmation #207

qazip opened this issue Mar 18, 2018 · 1 comment

Comments

@qazip
Copy link

qazip commented Mar 18, 2018

Hello,

Doing ":q!" asks for saving confirmation. Is it possible for it to force close the file instead without asking for confirmation?

@hultberg
Copy link
Collaborator

hultberg commented May 29, 2018

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants