Persist note listing so short numeric IDs work across invocations#4
Merged
Persist note listing so short numeric IDs work across invocations#4
Conversation
Co-authored-by: kristofer <17994+kristofer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add simplified typing for note IDs
Persist note listing so short numeric IDs work across invocations
Mar 17, 2026
kristofer
approved these changes
Mar 17, 2026
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.
Note IDs (
20260317-193750-042) are unwieldy to type. The listing already displayed numbers 1-N, but they were only usable within the same process —memo listthenmemo read 1in a new shell would fail with "no current note listing".Changes
internal/storage/storage.go: AddedSaveLastListing([]string)andLoadLastListing()— persists ordered note IDs to~/.memo-notes/.last-listingcmd/list_command.go: Saves the listing to disk after eachmemo listruncmd/command.go:ResolveNoteID()falls back to the on-disk listing when the in-memory listing is empty, making numbers valid across invocations until the nextmemo listinternal/ui/ui.go: Tip text updated to reflect persistence behaviorUsage
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.