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

Treat ale_open_list integer value as a threshold #4050

Merged
merged 1 commit into from
Feb 4, 2022

Conversation

nospam2998
Copy link
Contributor

Setting ale_open_list = 1 is great when having multiple lints to address. Yet it is annoying as %#"¤ to use that setting when writing new code, as the window tends to open way too frequently.

This change makes this already numeric option possible to set to higher values, and doing so leads to only opening a list window if the number of warnings or errors equals to or exceeds the value. A typical useful value could be ale_open_list = 2 which allows for typing a word to completion without getting a split buffer. One can imagine other thresholds being attractive for other use cases.

No change to functionality is intended when ale_open_list is set to the previously allowed values 0, 1 and on_save.

Only open list window if the number of warnings or errors equals to or
exceeds the value of ale_open_list. No change when set to `1`.
@nospam2998
Copy link
Contributor Author

Branch rebased onto current master.

Copy link
Member

@w0rp w0rp left a comment

Choose a reason for hiding this comment

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

This is a pretty simple change and doesn't complicate the code. I'm happy to merge this.

@w0rp w0rp enabled auto-merge (squash) February 4, 2022 17:54
@w0rp
Copy link
Member

w0rp commented Feb 4, 2022

I set it to auto-merge when the checks are completed.

@w0rp w0rp merged commit a58b7b5 into dense-analysis:master Feb 4, 2022
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.

None yet

2 participants