-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Modified file indicator #1437
Labels
enhancement
New feature or request
needs refinement
This issue is not complete and has to be refined by the maintainers
Comments
github-actions
bot
added
the
needs refinement
This issue is not complete and has to be refined by the maintainers
label
Sep 26, 2023
6 tasks
6 tasks
This was referenced Oct 13, 2023
We need to finish this by adding an unsaved indicator to the red close window control if any tabs are open with changes per #1173. @avinizhanov would you like to look at this? |
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
needs refinement
This issue is not complete and has to be refined by the maintainers
Description
As a user
I want to be able to see an indicator when I modify a file
Because I want to know if I still need to save my changes to disk.
Acceptance criteria
Scope
In scope
Out of scope
Implementation design
A good place to start is probably in the
CodeEdit/CodeEdit/Features/CodeFile/
folder. SpecificallyCodeFile.swift
where the content of the file itself is loaded into. To check if a file has unsaved changes we can be solved in multiple ways. But the best way to do it, is probably to hash the content of a file from disk and to create a hash of the current content in memory and compare them. If they are equal, there are no changes and if they are not equal, there are changes and the indicator has to be shown on the tab.We need two new Views: One for the indicator and one for the popup. These files can be put in the feature folder
Editor/Tabs
.Tasks
The text was updated successfully, but these errors were encountered: