Add copy column data feature with multi-selector dialog - #22
Merged
Conversation
Press 'c' in any tab view to open a floating multi-select dialog showing each column of the current row as a toggle option. Space toggles items, Enter confirms and copies the joined values to the system clipboard. A special combined "NAME --namespace NAMESPACE" option is shown when both columns are present. SwitchContext is reassigned from 'c' to 'C' to free the key.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new "copy column data" feature that allows users to select and copy individual or combined column values from table rows to the clipboard.
Key Changes
New MultiSelectorModel component (
internal/tui/components/dialog/multiselector.go): A reusable floating dialog that allows toggling multiple items with spacebar and confirming selection with enter. Supports keyboard navigation (j/k or arrow keys) and displays checkboxes for selected items.Copy data dialog integration (
internal/tui/app.go):ViewCopystate to handle the copy dialog overlayopenCopySelector()to build column options from the current table row<name> --namespace <namespace>for conveniencecopyToClipboard()command that tries multiple clipboard tools (xclip, xsel, pbcopy) for cross-platform supportKeybinding updates (
internal/tui/keys.go,internal/config/config.go,internal/config/defaults.go):CopyDatakeybinding (default:c)SwitchContextkeybinding fromctoCto avoid conflictImplementation Details
%-12s %s)https://claude.ai/code/session_01XXnSRgHebTqJjoinv3Yz7k