notepad-plus-plus / notepad-plus-plus/notepad-plus-plus
[FEAT] On file reload : do **NOT** flush undo/redo
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 29.4k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Description of the Issue
File opened in editor gets modified by external program.
The file is updated in the editor (automatically or manually).
The previous version is lost forever, the undo/redo arrows are disabled.
Steps to Reproduce the Issue
- See Description just above
Expected Behavior
If file is reloaded due to an external change :
- Store current version in undo history
- Disable redo
- Reload file
- If new version is not wanted, click undo to restore previous version
- If new version modified, keep it in undo, continue as normal
- That's to say we still have "previous" version in undo history
Actual Behavior
- See Description just above
Debug Information
No debug to provide.
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 by reproducing the issue: open a file, modify it externally, and trigger the editor's reload. Trace the reload and undo/redo handling in the relevant editor code. Done means the externally reloaded version is undoable, redo is disabled, and undo restores the prior in-editor version without losing subsequent history.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100