What it does:
-
Asks user for single line prompt in this format:
titleday/monthhour:minute-hour:minutelocation -
Regex breaks down individuals parts into variables
-
Calendar event is created using these variables
-
A notification is pushed using the variables to make sure user input fit format
Use case:
- Small prompt window is useful for quickly adding events when reading emails or browsing the web without needing to switch over to a calendar app
Shortcomings:
- input format is strict
- no checks or error messages for when format does not fit
- currently missing way of adding a description
Ultimate goal:
- User input would come from clipboard, copied information from event page or email
- Regex would break down more complex information
- Then a prompt would appear where the default values would be the regexed variables for users to check or edit as needed
- After accepting, a calendar event is created
- A notification is pushed confirming the event
I would love some input on this! Especially for step 2 of the ultimate goal. Would it be possible to create complex enough regex rules to parse most copied bits of event text? What do yall think?
005- F5 add_calendar_event.kmmacros (7.3 KB)