dense-analysis / dense-analysis/ale

Don't start linting if a file is opened only in 'previewwindow'

Open
#1,526 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Vim Script
Stars
14k
Forks
1.5k
Avg merge
17h 49m
Merged PRs (30d)
1

Description

It would be nice to add an option to skip linting if a file is opened only for preview. I.e. if one starts `unite.vim` to find something and quickly previews a bunch of files that are closed almost instantly, there's no point to start linting them. So, the algorithm would be something along these lines:
* `if (disable linting in preview) && (file is opened only in one window) && (that window has "previewwindow" option set) then ALEDisableBuffer`
* `if (file is being opened in a window without "previewwindow" option) && (ALE is enabled) then ALEEnableBuffer`

Thanks for the great plugin BTW :)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.