aboutsummaryrefslogtreecommitdiff
path: root/book/src/generated
diff options
context:
space:
mode:
authorVince Mutolo2022-05-02 14:24:22 +0000
committerGitHub2022-05-02 14:24:22 +0000
commitf9baced216df60122f2aae08d382931d77901ca9 (patch)
tree44326181702d03e18f5d9c810331c2993524296c /book/src/generated
parent567ddef388986dd2cea5c7f3eb1aa1a978c3e6d3 (diff)
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>
Diffstat (limited to 'book/src/generated')
-rw-r--r--book/src/generated/typable-cmd.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/book/src/generated/typable-cmd.md b/book/src/generated/typable-cmd.md
index df0841b6..426598e3 100644
--- a/book/src/generated/typable-cmd.md
+++ b/book/src/generated/typable-cmd.md
@@ -59,6 +59,7 @@
| `:get-option`, `:get` | Get the current value of a config option. |
| `:sort` | Sort ranges in selection. |
| `:rsort` | Sort ranges in selection in reverse order. |
+| `:reflow` | Hard-wrap the current selection of lines to a given width. |
| `:tree-sitter-subtree`, `:ts-subtree` | Display tree sitter subtree under cursor, primarily for debugging queries. |
| `:config-reload` | Refreshes helix's config. |
| `:config-open` | Open the helix config.toml file. |