vix-textops 1.2.0

Small pure text transforms used by Edit/Tools actions.
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented0 out of 9 items with examples
  • Size
  • Source code size: 15.67 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 325.53 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • vixide/vix
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • joelparkerhenderson

Small pure text transforms used by Edit/Tools actions.

Two shapes live here: whole-text transforms (&str -> String: line-ending conversion, blank-line squeezing, ROT13) and cursor-relative rewrites ((&str, usize) -> Option<(String, usize)>: increment number, smart toggle, transpose). The host applies the former via App::transform_selection_or_buffer and the latter via App::rewrite_at_cursor; everything here is unit-tested without a terminal.