helix-mirror/book/src
Mr. E dbf68e0370
Customizable/configurable status line (#2434)
* feat(statusline): add the file type (language id) to the status line

* refactor(statusline): move the statusline implementation into an own struct

* refactor(statusline): split the statusline implementation into different functions

* refactor(statusline): Append elements using a consistent API

This is a preparation for the configurability which is about to be
implemented.

* refactor(statusline): implement render_diagnostics()

This avoid cluttering the render() function and will simplify
configurability.

* feat(statusline): make the status line configurable

* refactor(statusline): make clippy happy

* refactor(statusline): avoid intermediate StatusLineObject

Use a more functional approach to obtain render functions and write to
the buffers, and avoid an intermediate StatusLineElement object.

* fix(statusline): avoid rendering the left elements twice

* refactor(statusline): make clippy happy again

* refactor(statusline): rename `buffer` into `parts`

* refactor(statusline): ensure the match is exhaustive

* fix(statusline): avoid an overflow when calculating the maximal center width

* chore(statusline): Describe the statusline configurability in the book

* chore(statusline): Correct and add documentation

* refactor(statusline): refactor some code following the code review

Avoid very small helper functions for the diagnositcs and inline them
instead.
Rename the config field `status_line` to `statusline` to remain
consistent with `bufferline`.

* chore(statusline): adjust documentation following the config field refactoring

* revert(statusline): revert regression introduced by c0a1870

* chore(statusline): slight adjustment in the configuration documentation

* feat(statusline): integrate changes from #2676 after rebasing

* refactor(statusline): remove the StatusLine struct

Because none of the functions need `Self` and all of them are in an own
file, there is no explicit need for the struct.

* fix(statusline): restore the configurability of color modes

The configuration was ignored after reintegrating the changes of #2676
in 8d28f95.

* fix(statusline): remove the spinner padding

* refactor(statusline): remove unnecessary format!()
2022-07-18 09:57:01 +09:00
..
generated Add SCSS language support (#3074) 2022-07-17 17:55:20 +08:00
guides text-objects: add test capture & elixir queries 2022-06-21 11:32:03 -05:00
commands.md docs: Auto generate command list 2021-12-08 10:23:50 +09:00
configuration.md Customizable/configurable status line (#2434) 2022-07-18 09:57:01 +09:00
from-vim.md Add migrate from Vim wiki link (#2781) 2022-06-15 11:04:17 -05:00
hooks.md Add book/ (mdbook based user guide) 2021-04-05 15:48:08 +09:00
install.md nix flake: make the binary cache "just work" (#2999) 2022-07-09 11:09:37 -05:00
keymap.md feat(term): uniformize word-wise movement and deletion (#2500) 2022-07-15 21:59:00 +08:00
lang-support.md Rewrite Language Support docs (#2065) 2022-04-10 23:20:05 +05:30
languages.md rewrite language configuration docs (#2838) 2022-06-21 01:15:50 +02:00
remapping.md simplify some keymap key names (#2677) 2022-06-05 21:22:10 -05:00
SUMMARY.md Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
themes.md Introduce storage highlighting for typescript/javascript (#2961) 2022-07-06 08:54:07 -05:00
title-page.md book: add wiki links to the title page and install page (#3017) 2022-07-09 11:08:47 -05:00
usage.md text-objects: add test capture & elixir queries 2022-06-21 11:32:03 -05:00