Quick Create Calendar Event

What it does:

  1. Asks user for single line prompt in this format: title day/month hour:minute-hour:minute location

  2. Regex breaks down individuals parts into variables

  3. Calendar event is created using these variables

  4. A notification is pushed using the variables to make sure user input fit format

Use case:

  1. 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:

  1. input format is strict
  2. no checks or error messages for when format does not fit
  3. currently missing way of adding a description

Ultimate goal:

  1. User input would come from clipboard, copied information from event page or email
  2. Regex would break down more complex information
  3. Then a prompt would appear where the default values would be the regexed variables for users to check or edit as needed
  4. After accepting, a calendar event is created
  5. 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)

1 Like