Skip to content

Add ability to pin notes to keep them sorted at the top #327

Description

@amarradi

Description:

It would be great to have a "pin" feature for notes, similar to what many other note-taking apps offer. Pinned notes should always be displayed at the top of the note list, regardless of the currently selected sort order (e.g., by date modified, date created, or title).

Proposed behavior:

  • Add a "Pin" / "Unpin" action to the note (e.g., via NoteActionsBottomSheet and/or a swipe/long-press gesture)
  • Pinned notes are grouped and displayed at the top of the list, above unpinned notes
    Within the pinned group, the existing sort order still applies
    Optionally show a small visual indicator (e.g., a pin icon) on pinned notes in the list
    Pin status should be preserved across app restarts and included in backups (LeafpadBackupManager)

Motivation:

Users often have a small number of notes (e.g., shopping lists, important reminders, frequently referenced info) that they want quick access to without having to scroll or search, no matter how the list is sorted or how many other notes are added.

Additional considerations:

Would likely require a new boolean field (e.g., isPinned) on the Note entity, plus a Room migration

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions