diff options
author | w0rp <devw0rp@gmail.com> | 2023-09-06 00:21:58 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2023-09-06 00:21:58 +0100 |
commit | 14350dbb0d265ef87d1c7d420d89fb4165a2b131 (patch) | |
tree | ee157f9d69298646b44f3033f6e9ad8745303c74 /doc | |
parent | 551fbcfb0905629dcc2afc0db53dcca21994cca3 (diff) | |
download | ale-14350dbb0d265ef87d1c7d420d89fb4165a2b131.zip |
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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ale.txt | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/doc/ale.txt b/doc/ale.txt index 189839cf..4f4cb9c7 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -1345,6 +1345,15 @@ g:ale_hover_to_floating_preview *g:ale_hover_to_floating_preview* hover messages. +g:ale_info_default_mode *g:ale_info_default_mode* + *b:ale_info_default_mode* + Type: |String| + Default: `'preview'` + + Changes the default mode used for |ALEInfo|. See documentation for |ALEInfo| + for more information. + + g:ale_keep_list_window_open *g:ale_keep_list_window_open* *b:ale_keep_list_window_open* Type: |Number| @@ -3836,7 +3845,7 @@ ALEDetail *ALEDetail* *:ALEInfo* ALEInfo *ALEInfo* -ALEInfoToClipboard *ALEInfoToClipboard* + *ALEInfoToFile* Print runtime information about ALE, including the values of global and buffer-local settings for ALE, the linters that are enabled, the commands @@ -3848,8 +3857,17 @@ ALEInfoToClipboard *ALEInfoToClipboard* |g:ale_history_log_output| to `1` to enable logging of output for commands. ALE will only log the output captured for parsing problems, etc. - The command `:ALEInfoToClipboard` can be used to output ALEInfo directly to - your clipboard. This might not work on every machine. + You can pass options to the command to control how ALE displays the + information, such as `:ALEInfo -echo`, etc. > + + -preview Show the info in a preview window. + -clip OR -clipboard Copy the information to your clipboard. + -echo echo all of the information with :echo +< + The default mode can be configured with |g:ale_info_default_mode|. + + When shown in a preview window, syntax highlights can be defined for the + `ale-info` filetype. `:ALEInfoToFile` will write the ALE runtime information to a given filename. The filename works just like |:w|. |