drafts
Manage Drafts app notes via CLI on macOS. Create, view, list, edit, append, prepend, and run actions on drafts. Use when a user asks to create a note, list drafts, search drafts, or manage their Drafts inbox. IMPORTANT - Drafts app must be running on macOS for this to work.
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Manage Drafts app notes via CLI on macOS. Create, view, list, edit, append, prepend, and run actions on drafts. Use when a user asks to create a note, list drafts, search drafts, or manage their Drafts inbox. IMPORTANT - Drafts app must be running on macOS for this to work.
How to use
Upewnij się, że masz zainstalowaną aplikację Drafts na macOS i że jest uruchomiona — jeśli nie, otwórz ją poleceniem open -a Drafts. Zainstaluj CLI przez Go: go install github.com/nerveband/drafts/cmd/drafts@latest, lub sklonuj repozytorium i zbuduj ręcznie: git clone https://github.com/nerveband/drafts, następnie cd drafts && go build ./cmd/drafts.
Aby utworzyć nową notatkę, użyj polecenia drafts create "Twoja notatka". Możesz dodać tagi za pomocą flagi -t (np. drafts create "Lista zakupów" -t groceries -t todo) lub oflagować notatkę jako ważną flagą -f (drafts create "Pilne" -f).
Aby wyświetlić notatki, użyj drafts list — domyślnie pokazuje zawartość schowka. Możesz filtrować po statusie: drafts list -f archive dla notatek zarchiwizowanych, drafts list -f trash dla kosza, drafts list -f all dla wszystkich. Aby znaleźć notatki po tagu, użyj drafts list -t nazwa_tagu.
Aby pobrać konkretną notatkę, użyj drafts get uuid (gdzie uuid to identyfikator notatki) lub drafts get bez parametrów, aby uzyskać aktualnie otwartą notatkę w aplikacji.
Aby zmodyfikować istniejącą notatkę, dodaj tekst na początku poleceniem drafts prepend "Tekst" -u uuid, na końcu poleceniem drafts append "Tekst" -u uuid, lub zastąp całą zawartość poleceniem drafts replace "Nowa zawartość" -u uuid.