Skip to content

feat: Add Pinned Topics and Keep Open functionality - #1463

Open
ashik-ur wants to merge 1 commit into
p0deje:masterfrom
ashik-ur:feature/pinned-topics
Open

feat: Add Pinned Topics and Keep Open functionality#1463
ashik-ur wants to merge 1 commit into
p0deje:masterfrom
ashik-ur:feature/pinned-topics

Conversation

@ashik-ur

Copy link
Copy Markdown

This PR introduces powerful organization features for Pinned items:

  1. Dedicated Pinned Comments Tab: Separates standard clipboard history from explicitly pinned items using a Segmented Picker.
  2. Pinned Topics: Groups pinned items into persistently stored topics (using AppStorage).
  3. Context Menus & Drag-and-Drop: Users can quickly move items into specific topics using drag-and-drop or right-click context menus.
  4. Expandable Accordion Topics: Topic groups are fully expandable and collapsible with smooth SwiftUI animation.
  5. Keep Window Open Mode: A new Pin button in the HeaderView prevents the app window from closing when it loses focus (override for resignKey).

Resolves issues with cluttered clipboards by providing structured topic-based categorization. All changes implement SwiftUI native components smoothly.

- Segregates standard history items (Clipboard) and pinned items (Pinned Comments) into separate tabs using a Segmented Picker.
- Introduces persistent 'Topics' for grouping pinned comments (stored in AppStorage).
- Includes an NSAlert-based topic creation UI for native dialog interaction.
- Adds drag-and-drop and context-menu support for assigning items to topics.
- Enhances topics with expandable/collapsible accordion functionality.
- Adds a 'Keep Open' pin button to the main HeaderView to override automatic closing on resignKey.
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