Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(notes): add copy-to-clipboard button in NoteModal#103

Merged
matt2e merged 2 commits intomainfrom
matt2e/share-note
Feb 13, 2026
Merged

feat(notes): add copy-to-clipboard button in NoteModal#103
matt2e merged 2 commits intomainfrom
matt2e/share-note

Conversation

@matt2e
Copy link
Contributor

@matt2e matt2e commented Feb 13, 2026

Add a copy-to-clipboard button to the NoteModal header, allowing users to easily copy note content as Markdown text.

  • Import Copy and Check icons from lucide-svelte
  • Add handleShare() function that copies the note title and content to the clipboard
  • Show a brief "Copied!" confirmation with a check icon for 1.5 seconds after copying
  • Wrap header actions (share + close buttons) in a flex container
  • Add corresponding styles for the new share button with hover and copied states

Add a share button to the note view modal header that copies the note's
markdown content (with title as an H1 heading) to the clipboard. The
button uses the Share icon from lucide-svelte and shows a green Check
icon for 1.5 seconds after a successful copy, consistent with the
existing copy patterns in SessionModal and DiffModal.
Replace the Share icon with the Copy icon from lucide-svelte for the
clipboard copy button in the note modal header, better reflecting the
button's copy-to-clipboard action.
@matt2e matt2e merged commit 8d12d5c into main Feb 13, 2026
3 checks passed
@matt2e matt2e deleted the matt2e/share-note branch February 13, 2026 21:48
taylorkmho added a commit that referenced this pull request Feb 13, 2026
* origin/main:
  fix: surface worktree setup errors instead of showing infinite spinner (#106)
  feat: store data in platform-conventional directories (XDG) (#104)
  feat(notes): add copy-to-clipboard button in NoteModal (#103)
  feat: add use github repo based projects to avoid cloning when using remote branches (#102)
  fix: always branch new worktrees from remote-tracking refs (#100)
  fix: remove debug console.log statements from BranchCard (#97)
  feat: improve PR button UX with push support and conditional visibility (#89)
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.

1 participant