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

[Future] Rules #69

Open
derekantrican opened this issue Oct 24, 2019 · 3 comments
Open

[Future] Rules #69

derekantrican opened this issue Oct 24, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@derekantrican
Copy link
Owner

derekantrican commented Oct 24, 2019

This is a future feature that probably won't be implemented for a while. We have bigger things to focus on before then

Filter Rules: only process events that match certain criteria

Examples (some of these may be multiple rules):

  • "Do not process any event where the title contains 'test'"
  • "Do not process any events on Fridays"
  • "Do not process any events occurring past 11/1/19"

Modification rules: modify event properties before processing the event

Examples (some of these may be multiple rules):

  • "Remove 'FW:' from any event titles" (as requested in Update Code.gs #68)
  • "Replace Title with {DESCRIPTION} and Description with {TITLE}" (would be a better approach than our current "flag" setting)
  • "Modify all event start times to happen at 23:00 and end times to happen at 23:59" (as requested in Make all events have certain time #66)

Rules should be able to access the following properties: Title, Location, Description, Start, End, Duration

They should also have the following variables available:

  • {TITLE} (the original event title/summary)
  • {DESCRIPTION} (the original event description)
  • {LOCATION} (the original event location}
  • possibly more added on request
@derekantrican derekantrican added the enhancement New feature or request label Oct 24, 2019
@derekantrican
Copy link
Owner Author

Some people may also desire in the future the ability to automatically modify the colors of the events. This could also be done via rules. For instance:

  • "All event colors should be red" (meaning all synced/ICS events - not all Google calendar events)
  • "All events where the title contains 'Doctor's appointment' should be blue"

@jstride
Copy link
Collaborator

jstride commented Oct 24, 2019

The modification use cases could potentially be split into two features, rules and regexs.

The first modifications (Remove FW:, and others such as replace X with Y, or remove that annoying 'Invitation/Updated' Google adds to events sent to other calendars) could be solved by having a config option as a regex to run for title and description, as a thought.

@derekantrican
Copy link
Owner Author

Yeah, these will probably support regex (or at least have an option to make the modification rule "regex" or "non regex")

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

No branches or pull requests

2 participants