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

Added ability to keep the quickfix/location list window open #1361

Merged
merged 1 commit into from
Jul 22, 2017
Merged

Added ability to keep the quickfix/location list window open #1361

merged 1 commit into from
Jul 22, 2017

Conversation

seanpile
Copy link
Contributor

I have a workflow where I prefer to keep the quickfix/location window open during development. vim-go likes to automatically close this window on successful operations (i.e., GoFmt, GoBuild, etc...).

This change adds a configuration property to prevent this from happening. By default, the window automatically closes (current behaviour). Users can specify 0 to allow the window to remain open. Tested with a few of the basic operations, but let me know if you suspect any issues might arise.

else
cclose
let autoclose_window = get(g:, 'go_list_autoclose', 1)
if autoclose_window
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should work as well:

if get(g:, 'go_list_autoclose', 1)
 ...
endif

no need to create the intermediate autoclose_window variable :)

Specifies whether the quickfix/location list should be closed automatically
in the absence of errors. The default value is 1.
If you prefer to keep a long running error window open, you can disable
this by setting the value to 0.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think people using Vim already know that setting to 0 means disabling. So the whole text should be actually just like the others in the form of:

Specifies whether the quickfix/location list should be closed automatically in
the absence of errors. If you prefer to keep a long running error window open,
you can disable this by using this setting. By default it's enabled.

@fatih fatih merged commit e566738 into fatih:master Jul 22, 2017
@fatih
Copy link
Owner

fatih commented Jul 22, 2017

Thanks @seanpile 👍

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 this pull request may close these issues.

2 participants