Commit Graph

3 Commits

  • Add the kill ring and undo features to the Input component (#1373)
    * feat(tui): extract KillRing and UndoStack, add to Input
    
    Extract kill ring and undo logic from Editor into reusable classes:
    
    - KillRing: ring buffer with accumulation for consecutive kills
    - UndoStack<S>: generic stack with clone-on-push semantics
    
    Refactor Editor to use both classes. Add kill ring (kill/yank/
    yank-pop), undo with coalescing, and deleteWordForward to Input.
    
    * feat(tui): extract handleBackspace() and handleForwardDelete()
  • fix(tui): remove backslash input buffering (#1037)
    Instead of buffering `\` and waiting for the next key, let it be
    inserted immediately. On Enter, check if preceded by `\` and treat as
    newline.
    
    Removed backslash handling from the Input component entirely.