mirror of
https://github.com/dense-analysis/ale.git
synced 2026-09-19 02:03:12 +08:00
Close #3368 - Supercharge :ALEInfo
Make a series of sweeping changes to make :ALEInfo more useful. 1. Deprecate :ALEInfoToClipboard and support :ALEInfo -clipboard 2. Permit :ALEInfo -clip as a shorthand for :ALEInfo -clipboard 3. Support :ALEInfo -preview to render in the preview window 4. Support :ALEInfo -echo for the classic :ALEInfo mode 5. Change the default mode to 'preview', and make it configurable 6. Add syntax highlighting for ALEInfo in preview mode 7. Add a convenience to look up documentatation that explains itself 8. Don't show an empty 'Linter Variables' section
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
After:
|
||||
unlet! g:output
|
||||
|
||||
Execute(ALEInfoToClipboard should that clipboard support is required):
|
||||
Execute(ALEInfo -clipboard should that clipboard support is required):
|
||||
" When run in the Docker image, there's no clipboard support, so this test
|
||||
" will actually run.
|
||||
if !has('clipboard')
|
||||
let g:output = ''
|
||||
|
||||
redir => g:output
|
||||
:ALEInfoToClipboard
|
||||
:ALEInfo -clipboard
|
||||
redir END
|
||||
|
||||
AssertEqual 'clipboard not available. Try :ALEInfoToFile instead.', join(split(g:output))
|
||||
|
||||
Reference in New Issue
Block a user