refactor of tui/ third (minor) iteration

quietlight
May 18, 2026, 8:58 PM
3UZSWA2H444DVGG3RXVO6OGDA2XRI3J6EMREJ3IKQUKEU5JGY6HAC

Dependencies

  • [2] 3ETJ6KPI refactor of tui/ second iteration
  • [3] YVFPP5VJ refactor of tui/ first iteration

Change contents

  • replacement in tui/update.go at line 383
    [2.6815][2.6815:6860]()
    _, err = m.state.SaveClip(cwd, m.clipInput)
    [2.6815]
    [2.6860]
    paths, err := m.state.SaveClip(cwd, m.clipInput)
  • replacement in tui/update.go at line 386
    [2.6899][2.6899:6948]()
    } else {
    m.err = "Clip saved: " + m.clipInput
    [2.6899]
    [2.6948]
    } else if len(paths) > 0 {
    // Show the base filename (without path) of the saved clip
    m.err = "Clip saved: " + paths[0] // full path to PNG