Skip to content

Conversation

@sotte
Copy link
Contributor

@sotte sotte commented Dec 22, 2025

Adds a new keyboard shortcut y to copy the current bean ID to the clipboard when browsing beans in the TUI.

Changes

  • List view: Press y to copy the bean ID under the cursor (ignores multi-select)
  • Detail view: Press y to copy the current bean's ID
  • Feedback: Shows "Copied beans-xyz to clipboard" in the footer status line
  • Help text: Updated help overlay and footer help to include the new shortcut

Implementation

  • Uses atotto/clipboard library for cross-platform clipboard support
  • Follows existing Bubbletea message-passing patterns
  • Status messages clear on next keypress

Details see .beans/beans-govy--add-y-shortcut-to-copy-bean-id-in-tui.md

Adds a new keyboard shortcut y to copy the current bean ID to the clipboard when browsing beans in the TUI.

Changes

- List view: Press y to copy the bean ID under the cursor (ignores multi-select)
- Detail view: Press y to copy the current bean's ID
- Feedback: Shows "Copied beans-xyz to clipboard" in the footer status line
- Help text: Updated help overlay and footer help to include the new shortcut

Implementation

- Uses atotto/clipboard library for cross-platform clipboard support
- Follows existing Bubbletea message-passing patterns
- Status messages clear on next keypress

Details see .beans/beans-govy--add-y-shortcut-to-copy-bean-id-in-tui.md
@sotte sotte force-pushed the add-yank-shortcut branch from d7251de to edb714d Compare December 22, 2025 20:32
@hmans hmans self-assigned this Dec 23, 2025
@hmans hmans merged commit a3d95eb into hmans:main Dec 23, 2025
1 check passed
@hmans
Copy link
Owner

hmans commented Dec 23, 2025

Merged, thank you for your contribution!

hmans added a commit that referenced this pull request Dec 26, 2025
* main:
  fix(cli): allow `beans version` to run without .beans directory (#28)
  fix: In the prompt primer, request the agent to check for existing beans before creating a new one
  feat(tui): add 'y' shortcut to copy bean-id (#26)
  docs: clarify completion rules for beans with unchecked items (#27)
  feat: support short IDs (without prefix) in GraphQL queries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants