helix/helix-term/src
Vince Mutolo f9baced216
add reflow command (#2128)
* add reflow command

Users need to be able to hard-wrap text for many applications, including
comments in code, git commit messages, plaintext documentation, etc. It
often falls to the user to manually insert line breaks where appropriate
in order to hard-wrap text.

This commit introduces the "reflow" command (both in the TUI and core
library) to automatically hard-wrap selected text to a given number of
characters (defined by Unicode "extended grapheme clusters"). It handles
lines with a repeated prefix, such as comments ("//") and indentation.

* reflow: consider newlines to be word separators

* replace custom reflow impl with textwrap crate

* Sync reflow command docs with book

* reflow: add default max_line_len language setting

Co-authored-by: Vince Mutolo <vince@mutolo.org>
2022-05-02 23:24:22 +09:00
..
commands add reflow command (#2128) 2022-05-02 23:24:22 +09:00
keymap Change A-left right to C-left right in insert (#2193) 2022-04-29 15:50:01 +09:00
ui Auto-complete directory members (#1801) (#1907) 2022-05-02 23:18:41 +09:00
application.rs allow whitespace to be rendered 2022-04-20 11:37:23 +09:00
args.rs Add refresh-config and open-config command (#1803) 2022-03-25 18:05:20 +09:00
commands.rs Support m in surround delete and replace 2022-04-29 15:51:14 +09:00
compositor.rs Make regex_prompt directly call cx.push_layer 2022-03-28 11:02:13 +09:00
config.rs Move top level lsp config to editor.lsp (#1868) 2022-03-28 10:11:52 +09:00
health.rs Add true or false checkbox in health output table (#1947) 2022-04-12 17:21:16 +09:00
job.rs
keymap.rs Add refresh-config and open-config command (#1803) 2022-03-25 18:05:20 +09:00
lib.rs Add refresh-config and open-config command (#1803) 2022-03-25 18:05:20 +09:00
main.rs Add support for local language configuration (#1249) 2022-04-18 12:10:51 +09:00