Comments (7)
Ah alright, then I'll get into it in the next days! I think this should be pretty easy to accomplish. The easiest way would be to simply save the original file contents in a variable to be recalled if one wishes.
That means, the revert feature would work like this:
- Open a file.
- The file will be temporarily saved in memory, and displayed as well.
- You edit it, save it, etc. pp.
- You realize you want to revert all you've added, so you click "revert".
- The app overwrites the editor's contents with the old data, and lets you then save to overwrite.
Or, should it always replace this reversion status on "hard saves" as you've called them?
from zettlr.
Auto-save can be implemented. I'm not sure about how long it may take, as there are other, more pressing problems, but it's noted.
And what do you mean by revert? Revert as "Undo" in the editor, or rather different versions of the same file, ready to be loaded, e.g. as in version control systems? I'm unsure whether or not it fits into the app, because I personally use it with cloud services that offer that functionality out of the box. Some use cases to describe what you were thinking of?
from zettlr.
A lot of times, I think I have a great idea, and then realize after a while that it wasn't such a great idea and I want to start from where I left off. Or you're writing and writing, and don't seem to be getting anywhere and want to start over from where you were before in a different direction. Usually occurs over 5 or 10 minutes (happens a lot when writing emails or last minute drafts). So, I'm not looking for a version control system, and I agree that should not be in the scope of the app, but something that reverts what you edited since the last time you did a hard save. I would be open to having a temporary file with the last hard saved content in the same folder.
from zettlr.
Let's stick with temporarily saved in memory for now, and explore the need for other options later.
from zettlr.
Alright, it's noted. After I've managed the inline image previews and hardened the regular scans for changed folders and files, I'll get to it. I hope that this will be in the course of next week
And concerning my question, which version should be held in memory: The one from when you opened the file or the status that the file had on each "hard" save?
from zettlr.
"hard" save.
from zettlr.
Alright. I think I'll simply do both and let the user decide in the settings (a.k.a. "What should the revert button revert to?")
from zettlr.
Related Issues (20)
- Overview of invalid links HOT 1
- button to create a new file when a link does not exist yet
- Data disappear from table when saving HOT 3
- Ordered sublists/nested lists switching to a. b. c. and i. ii. iii. HOT 7
- Nested ordered lists continue from the previous numbering
- Current Import Workflow is Intransparent
- Canceled HOT 1
- [Enhancement] (Option to) hide markup annotations for headers / titles HOT 2
- Light mode has too little contrast between text and background in the panes. HOT 3
- Changing the file filtering logic for match-query to AND instead of OR
- [develop] Replace the current YAML frontmatter parser with `parseMixed`
- Youtube embed HOT 6
- Impossible to export files on Flatpak builds HOT 1
- Strikethrough formatting does not work in a tables
- Name auto-complete (add display name option) does not work when linking with ID HOT 3
- Links to internal pages not recognized as internal when in markdown style
- Some files do not show * when edited and do not save or autosave, no warning when renaming that buffer data will be lost HOT 21
- Display modified/not-saved status (asterisk in usual editor) in Distraction-Free Mode
- Pandoc export fail when use wikilinks_title_after_pipe or wikilinks_title_before_pipe HOT 3
- Toggle sidebar shortcut not working 3.1.0-beta.2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zettlr.