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

Toggle-able option to keep sublime open when quitting out of last file #782

Closed
11 opened this issue Jul 2, 2021 · 2 comments
Closed

Toggle-able option to keep sublime open when quitting out of last file #782

11 opened this issue Jul 2, 2021 · 2 comments
Labels

Comments

@11
Copy link

11 commented Jul 2, 2021

Description

Is it possible to add a setting to keep sublime open after :q-ing out of the last file buffer?

I understand that this feature has been asked for before, but I was wondering if this could be open to change?

From what I saw in the previous threads that asked for this, it seems like the goal for :q was to replicate the same exact Gvim/vim behavior. But other vim emulators, like the one in vs-code, allow this to be an option you can set. It would be amazing if there was a way toggle this, or even just map :q to a custom command like cmd + w

(sorry if there is a fix for this already - I couldn't find a solution anywhere across google/stackoverflow/and :help nv)

@gerardroche
Copy link
Contributor

gerardroche commented Jul 6, 2021

I think you may want :close (ctrl+w c), this will close the view unless it's the last one. But yeah, I think a setting to disable it is reasonable.

I've added the setting vintageous_exit_when_quiting_last_window. Set it to false to disable the exit on closing last view.

You may also like :only (ctrl+w o): close all except the current one.

gerardroche added a commit that referenced this issue Jul 7, 2021
* develop:
  Toggle-able option to keep sublime open when quitting out of last file #782
  When quitting the last window (not counting a help window), exit ST
  Fix #780 Navigating in the command palette not working in (ST4)
@11
Copy link
Author

11 commented Jul 13, 2021

ahh yes, vintageous_exit_when_quiting_last_window was what I was looking for! thanks for the kind response

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

No branches or pull requests

2 participants