-
Notifications
You must be signed in to change notification settings - Fork 164
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
Plugin for limiting the number of consecutive skips or postpones #526
Plugin for limiting the number of consecutive skips or postpones #526
Conversation
Dear @hartwork and @slgobinath, I looked at the previous PR's and noticed that you are usually the people who resolve them. I just wanted to mention your usernames to make sure that you are aware of this pull request. There is absolutely no time pressure from my side, I'm just making sure that you are aware of this PR in case you didn't receive any notifications. |
Hi @undefiened , FYI: The new URL to download font awesome icons is https://fa2png.app/ |
Added an icon. I didn't find anything suitable, and 24x24 is a rather limiting size, so I did my best. If there are any better ideas, I will be happy to incorporate them. No worries at all about not having time, it was not my intention to hurry you, I just was not sure how GitHub notification system works. Please take as much time as needed to reply and review. Thank you very much for all your hard work! And thank you for giving a link to the safeeyes plugins repo, I somehow missed it in the description. Should I move my plugin to the safeeyes-plugins repo? If yes, then I probably should make two separate PRs, one here to modify the core stuff and one in the third-party plugins repo. Or is it fine to have the plugin here? Also, I removed the copyright with your username from my plugin.py (I have copypasted the header from your other plugins, so it included your copyright). But I can return it back if needed, I don't really understand the logic of licenses and copyrights, I am happily giving up all my copyrights (if I ever had them) or whatever. |
Hi @undefiened, I am a new maintainer, and I will be happy to test and merge this pull request ASAP. Can you please resolve the conflict in the commit? I am in favor of merging this into main SafeEyes because it would improve the core functionality of SafeEyes.
Not that I understand how copyrights work either, but I would suggest that you add your own name as the author of this file, and also keep slgobinath's name in case you reused any code written by him. |
@archisman-panigrahi Thank you very much for taking over the repo! It is very good to hear that this incredible project will continue to be developed. I did what you have requested, please let me know is something is not up to standards! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could not find any bug/regressions. Does what it is supposed to do. I propose merging.
Unless someone finds any regression, I will merge this on Sunday (and release a new version of Safe Eyes). |
@undefiened I agree that this pull request will fix #320. Thank you very much for your contribution as well as for your patience. |
This is super helpful. Thanks again! The latest version includes this PR. |
@undefiened I am in favor of enabling this plugin in the default installation (with 2 allowed skips). Do you know how to do that? |
I made a PR that seems to do that - #603 Although, as I wrote there, I am not sure whether it is a good idea because this plugin introduces a real blocking behavior by default. |
Thank you very much! Now I can start using upstream SafeEyes again :) |
I added plugin which allows to limit the number of consecutive times one can postpone or skip break. This is a middle ground between the strict mode which completely disables the skipping/postponing feature, and being able to click skip/postpone indefinitely. There is only one setting which tells how many times in a row one can skip breaks.
When user has skipped X breaks consecutively (without taking any breaks) both skip and postpone buttons become disabled.
Taking break completely (without skipping or postponing) resets the counter.
This should somewhat address #320. At the very least it addresses @tuhlaajapoika suggestion #320 (comment) (I also happened to have ADHD, so what @tuhlaajapoika described was exactly my problem: I was automatically clicking skip without even thinking).
There was no existing mechanism which would have allowed me to remove both buttons without making any changes in UI or core, so I added two flags to "context" and added some logic to UI. The intention behind these two flags is to simply disable both buttons for the next break, after which both flags become reset back to False. Not sure if it is the best solution, so if you have some better mechanisms in mind feel free to let me know and I will do it.
Also, I am not sure about wording of settings and plugin hints, so I would appreciate any suggestions.