Preserve ordering when re-inserting removed items into lists on undo
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 458
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
env/remove-from-pathlist removes items from the pathlist, but doesn't preserve the index from which they were removed, so when the user leaves the directory in which they were removed, the items are likely not reinserted to the correct location in the pathlist.
We could solve this by keeping richer undo data.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the env/remove-from-pathlist operation and trace how its undo data is recorded and applied when leaving a directory. Define the richer undo information needed to retain each removed item's original index, then verify that undo restores the pathlist ordering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100