kakoune/rc/tools
Tim Allen 51fcea7ce0 rc lint: Add a lint-selections command to lint part of a buffer.
Fixes #2302, #3336.

Addresses parts of #3155.

Changes include:

- New `lint-selections` command that only lints the current selections,
  and allows a custom lint command.
- New `lint-buffer` command that always lints the whole buffer with
  the linter specified in the lintcmd option.
- `lint` alias for `lint-buffer`, for backwards compatibility.
- Errors and warnings are now shown in the Error and Information faces,
  not hard-coded red and yellow.
- Error and warning flags now use "!" and "?" symbols respectively,
  instead of a unicode block, so they can still be distinguished
  in a monochrome colour-scheme or by colour-blind users.
- An error flag on a given line always takes precedence over a warning.
- All messages for the same line are collected into a multi-line message.
- We no longer escape tildes in messages, since that change was added
  in commit ae339dc (2016) when we started using `%~~` to quote messages.
  We stopped using `%~~` in commit 1a2eecd (2018).
- Anything the linter writes to stderr is logged to the *debug* buffer,
  not lost.
- If the linter writes to stderr, an error is shown to the user instead
  of the usual error/warning count.
- The `lint_errors` hidden option is replaced by `lint_messages`,
  because it contains warnings as well as errors.
- `lint-next-error` renamed to `lint-next-message`,
  and `lint-previous-error` renamed to `lint-previous-message`
  for the same reason.
    - New `lint-next-error` and `lint-previous-error` aliases,
      for backwards compatibility.
- `lint-next-message` and `lint-previous-message` show the message
  they jump to.
- Where `lint_errors` was a range-specs option, `lint_messages` is a
  line-specs option to keep things simpler. This means lint-next-message
  and lint-previous-message no longer jump to a specific column.
2020-02-07 19:22:47 +11:00
..
go Modified a bunch of language support files to use modules 2019-04-08 17:02:44 -07:00
python Fix fifos for Linux 2019-06-10 18:25:51 +02:00
rust simplify rust completion to match generic Kakoune completions 2019-05-17 20:00:40 +03:00
autorestore.kak Added modules to extra files 2019-04-08 17:05:55 -07:00
autowrap.kak rc: Make docstrings more readable 2020-02-03 20:53:28 +01:00
clang.kak Merge remote-tracking branch 'lenormf/docstring-pretty' 2020-02-05 20:40:10 +11:00
comment.kak Merge remote-tracking branch 'JJK96/comment' 2019-11-18 20:01:37 +11:00
ctags.kak Merge remote-tracking branch 'lenormf/patch-3' 2020-02-05 20:41:40 +11:00
doc.kak rc: Make docstrings more readable 2020-02-03 20:53:28 +01:00
format.kak rc: Use the standard fail command to report errors 2019-11-14 08:32:55 +01:00
git.kak Merge remote-tracking branch 'chambln/master' 2020-02-05 20:54:49 +11:00
grep.kak Slight code cleanup in grep.kak 2019-12-31 12:50:19 +11:00
lint.kak rc lint: Add a lint-selections command to lint part of a buffer. 2020-02-07 19:22:47 +11:00
make.kak rc: Make docstrings more readable 2020-02-03 20:53:28 +01:00
man.kak rc: Make docstrings more readable 2020-02-03 20:53:28 +01:00
spell.kak rc spell: Handle errors returned on the first line 2020-02-01 16:04:58 +01:00