-
Notifications
You must be signed in to change notification settings - Fork 29
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
Autosave for editor #134
Comments
Hi @billyeatcookies , I would like to take this issue. 💪🏽 |
Hey @KristoferSoler, thanks alot ❤️ Few things to be noted are that, before calling
all these should be satisfied. Like for example: one issue preventing us from reusing this code is that autosave should not trigger a save_as dialog for non-existing files. Also, let me know your thoughts on only saving the active tab or saving all the open tabs |
Thanks for the info. |
I would focus first on the active tab and then watch the performance. |
@KristoferSoler thanks for the response! ❤️ Regarding the configuration part, #128 mentions about this, since the settings editor isn't fully functional you will have to do this using the config file for now. I will keep the issue updated regarding this. |
Hi @billyeatcookies, I think we have an issue with for i, item in enumerate(path):
text = item if item == path[-1] else f"{item} ›"
> self.additem(os.path.join(*path[:i]), text)
E TypeError: join() missing 1 required positional argument: 'a' Looking if it was something from my end it seems the array it's build here: https://github.com/billyeatcookies/Biscuit/blob/209945384ae3a16f238f3abd9cada7cc0185e6e1/biscuit/core/components/editors/breadcrumbs/__init__.py#L24 Returns an array with the first element empty, this cause I did a search thorough the docs but I couldn't find anything. |
@KristoferSoler that's right, there should be checks for non-empty path value. The unit testing part is very much in progress so far, and the tests written so far don't cover the entire editor and it's components. As for now, you can skip the tests, or fix if you'd like to, I will fix them asap. |
Roger that. I will overpass this for now and maybe we can work together on this. 💪🏽 |
@KristoferSoler Thats soo good of you, I'd love to consider that after finishing up on the language server issue! |
Hi! Sorry for the latency. I have been on a trip. I'll create the PR today. :) |
It's okay! I'm also busy with uni these days, understandable. I'll check and share my thoughts on pr |
Feature
Biscuit doesn't have autosave feature yet. This is also a very important feature. We can make use of the tkinter
after
method for handling this. Also this autosave will require a field in settings to configure intervals and toggle, maybe also from command palette.The text was updated successfully, but these errors were encountered: