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

Allow priority setting, both from picker and parsed via !!! #207

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yunruse
Copy link
Contributor

@yunruse yunruse commented Jun 13, 2024

Added a 'priority' pill to the editor, making use of the dependency WrappingHStack to ensure that this doesn't squoosh up with the date and time pickers. A PriorityParser is added – rather similar to the other Parser objects – so "!!" can be used to impart a priority on the reminder, thereby fixing #195.

ss.2024-06-14.at.00.33.38.mov

This was rather fun to work on 😅 I hope this barrage of pull requests isn't annoying!

Makes use of new dependency WrappingHStack to ensure that date, time and priority don't get squooshed.

Rather than use a picker (which didn't really look too stylish!) the user clicks to cycle None -> Low -> Medium -> High; the icon updates too.
Entirely functional! That said, if you type too many !s, or type a ! and then delete it, it lingers with a priority, which is a little annoying.
@AndreaHasani
Copy link

@yunruse Hey,
Nice work, do you think its possible to get something like this but for the tags, like with the symbol #?

I would do it myself but not a swift programmer, so mostly asking if that would interest you.

Thanks

@yunruse
Copy link
Contributor Author

yunruse commented Sep 23, 2024

@AndreaHasani I've never coded in Swift before! It was quite fun; I just sort of cribbed the parser by looking at the interface used in other parsers and hashing out the Swift sufficient to meet the needs here. Swift is pretty elegant so it's not the worst to learn!

Sadly EventKit's EKReminder doesn't have any API for tagging reminders :/

@AlexisDrogoul
Copy link

Very nice addition indeed ! I fully support it for the next release (tested and it works like a charm)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants