-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Massive core refactoring + Tracking state indicator #26
base: main
Are you sure you want to change the base?
Conversation
…is tracked in the status bar, but neither connected to core tracking nor reflected in the properties.
… timeout for CAMS/BOMS; Add customizable edit indicators; MISSING usage of actual settings values
…the assignment of debounced functions into loadSettings
…on. Current state: CAMS modified, other 3 not updated
…ackup before adding this
Wow, I haven't been active on GitHub, and I just saw this. Give me a minute |
Feedback on this pull request
|
Hiho @plasmabit
Great plugin! I've used it for a while and meant to add a formatter to the editing_time as #25 suggests. However, things escalated and I've... I've kinda re-written the core logic using debouncing.
It works the same, but improves on robustness and efficiency, especially avoiding excessive function calls.
Since I'm not completely done I'll open this as a draft, though I'm already using it for 1-2 weeks now. Let me know what you think in the meanwhile!
Adds:
Status Indicator
Emojis at the bottom indicating whether time is counted.
After typing is halted a configurable timeout counts down and resets the indicator.
The frontmatter is not just updated after typing has stopped, but every x seconds (where x is the typing timeout). So if my typing timeout is set to 30 seconds and I type for 80 seconds the frontmatter is updated at 30s, 60s and then once more as the timer runs out.
Modified timestamp
The modified time is now updated only if a configurable threshold is used. So if set to 30 seconds, the overall typing time needs to exceed 30 seconds. Important: When typing timeout >= modified threshold, the modified time will always be updated. I.e. when the typing icon is blue for longer than the modified threshold it updates.
Restructures settings:
Fixes:
Current plan: