Skip to content

v0.4.2 — textarea + readline editing

Choose a tag to compare

@thatsme thatsme released this 27 Jul 09:38

v0.4.2 — textarea + readline editing

Added:

  • textarea/1 — multi-line text area on a flat grapheme cursor, with
    opt-in word wrap (wrap: true) measured in display cells.
  • Readline-style editing in Harlock.TextBuffer: word motions, kills
    that return removed text, and a capped kill ring with yank. Shared by
    text_input and textarea.

Changed:

  • A focused text_input now consumes ctrl/alt editing keys that
    previously fell through to update/2. Opt out with handle_keys: false.
  • The termios NIF build is skipped on hosts that can't support it
    (:win32, or HARLOCK_SKIP_NIF=1), so the pure-Elixir majority of the
    library compiles and tests without a C toolchain.
  • Vertical motion preserves the display column rather than the grapheme
    index — a behaviour change for values containing wide graphemes.

Still open: goal-column memory for vertical motion.

Full notes in CHANGELOG.md.