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

:x closes Atom #167

Closed
JasonTheAdams opened this issue Sep 16, 2016 · 5 comments · Fixed by #177
Closed

:x closes Atom #167

JasonTheAdams opened this issue Sep 16, 2016 · 5 comments · Fixed by #177

Comments

@JasonTheAdams
Copy link

Hey! Thanks for this. Makes atom feel more familiar. :)

One quirk though: When I use :x it closes atom entirely, not just the current file. The :q command works just fine, however.

@zephraph
Copy link

zephraph commented Nov 9, 2016

Yep. This was pretty annoying to me too. I kept accidentally doing that over and over.

Here's how I fixed it.

# init.coffee
atom.packages.onDidActivatePackage (pack) ->
  if pack.name == 'ex-mode'
    Ex = pack.mainModule.provideEx()
    Ex.registerAlias 'x', 'wq'

@JasonTheAdams
Copy link
Author

Nice! Thank you! Feels like it should be built into ex-mode, so I'll leave this open, but that's a great workaround.

zephraph added a commit to zephraph/ex-mode that referenced this issue Nov 10, 2016
In vim `:x` is analogous to `:wq`. This fixes `:x` so that it doesn't act like `:wqall`. 

Addresses lloeki#167
@jtr109
Copy link

jtr109 commented Mar 11, 2017

I got the problem too. Thanks for your solution. @zephraph

@jazzpi
Copy link
Collaborator

jazzpi commented Mar 15, 2017

This should be fixed in v0.14.0, please update ex-mode and restart Atom.

@jtr109
Copy link

jtr109 commented Mar 16, 2017

Great! It fixed in v0.14.0 by updating. Thanks a lot! @jazzpi

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

Successfully merging a pull request may close this issue.

4 participants