Skip to content
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

Feat/autosave for editor #139

Merged
merged 5 commits into from
Oct 15, 2023

Conversation

KristoferSoler
Copy link

Description

This PR adds the feature of auto saving the opened files.
Also, it fixes an issue with the BreadCrumbs class when the path is empty (commit:8aa052c)

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

Fixes #134

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

  • 📜 README.md
  • 📓 docs.opensauced.pizza
  • 🍕 dev.to/opensauced
  • 📕 storybook
  • 🙅 no documentation needed

Kristofer Soler added 5 commits October 4, 2023 18:31
Before this commit the tests were failling due to an operation inside
BreadCrumbs class. When it tries to call `self.addItem` the first
element of the list `path` was empty. This caused and error at least at
Linux machines because it's empty.

This commit fixes the issue by adding `os.path.sep` as a fallback.
Before this commit the saving had to be done manually by the user.

This commit adds the autosaving behavior using tkinter method `after`
with a default timer of 10 seconds. The feature can be enable/disabled,
and the timer changed at config/__init__ file.

The saving its done for all the active files.
@tomlin7
Copy link
Owner

tomlin7 commented Oct 15, 2023

Really clean implementation!
also nice fix done in breadcrumbs xd ❤️

I will document the process more so that it will be easy for everyone to read the code.

@tomlin7 tomlin7 merged commit b636c8f into tomlin7:main Oct 15, 2023
@tomlin7 tomlin7 added the hacktoberfest-accepted Hacktoberfest accepted pr label Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Hacktoberfest accepted pr
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autosave for editor
2 participants