Add clipboard history view backed by cliphist #1

Merged
arne merged 2 commits from clipboard into main 2026-05-26 23:40:44 +02:00
Owner

Search "clip" or press ctrl+v to open a list of cliphist entries;
enter pipes the selection through wl-copy and quits. Adds ctrl+w
and ctrl+b shortcuts to wifi and bluetooth views while we're here.

The view truncates previews to terminal width, strips control
characters, and scrolls so newest entries stay reachable.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Search "clip" or press ctrl+v to open a list of cliphist entries; enter pipes the selection through wl-copy and quits. Adds ctrl+w and ctrl+b shortcuts to wifi and bluetooth views while we're here. The view truncates previews to terminal width, strips control characters, and scrolls so newest entries stay reachable. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Search "clip" or press ctrl+v to open a list of cliphist entries;
enter pipes the selection through wl-copy and quits. Adds ctrl+w
and ctrl+b shortcuts to wifi and bluetooth views while we're here.

The view truncates previews to terminal width, strips control
characters, and scrolls so newest entries stay reachable.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- copyClipboard now propagates errors via clipResult instead of swallowing
  them; failures show "copy failed: ..." in the view rather than silently
  quitting with the wrong clipboard contents.
- Reset clipOffset and clipMessage on every entry into viewClipboard so
  the two entry points (ctrl+v shortcut and kindClipboard select) behave
  identically.
- clipVisibleRows derives chrome rows inline (with a row-by-row comment)
  and accounts for the optional message row so the bottom row isn't
  clipped.
- ctrl+n on the main view now opens Notifications, matching the
  ctrl+w/ctrl+b/ctrl+v shortcut pattern. Arrow keys and ctrl+p still
  navigate.
- Add vim j/k navigation to wifi, bluetooth, and notifications views so
  all navigation-only views behave the same as clipboard. Main view
  keeps arrows only since it has a search input.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
arne merged commit fdf3dd33ea into main 2026-05-26 23:40:44 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
arne/launcher!1
No description provided.