Repository navigation
feat(memory): delete a list with stack memory list delete - #199
Merged
Merged
Conversation
added 3 commits
October 12, 2026 18:15
A list nobody needs any more could only be emptied item by item, which left an empty page behind in the wiki and in every list overview. `stack memory list delete <list> --as <person>` removes the list in one commit authored by that person. A list that still has open items is refused with those items named, unless `--yes` is given, so whoever asked can be asked whether they go too. The list's archive stays: it is the record of what was bought, and a list started again under the same name finds its known items there. The Forgejo read-modify-write now deletes the file when the transform answers `None`, against the hash it was read at, so a deletion goes through the same write path as every other list change.
The move from `todos.md` to lists read a file's hash with `.get`, which the type checker reads as possibly `None` where the file change wants a string. Forgejo always answers with a hash for a file it returned. No behaviour change.
"We don't need the hardware store list any more" made Stacky remove every item one by one, and then explain that the page itself could not be removed. `list_edit` gains `op=delete`. The store refuses a list with open items, naming them, and Stacky asks the person; only their yes sends `confirmed`, which becomes `--yes`. The user guide says how.
3 tasks
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.
Summary
stack memory list delete <list> --as <person>removes a list nobody needs. A list with open items is refused with the items named unless--yesis given; the archive stays.Nonedeletes the file, authored by the person.Refs: #194