You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Things] Option to Disable Automatic Date Parsing in Quick Add #13441
Since this is a no-view command, we can only handle the date parsing skip using command preferences. So, we will need to add a new preference for the command, and based on the value, skip the when field here and change the corresponding examples:
- when: Possible values: "today", "tomorrow", "evening", "anytime", "someday", natural language dates such as "in 3 days" or "next tuesday", or a date time string (natural language dates followed by the @ symbol and then followed by a time string. E.g. "this friday@14:00".).
- deadline: The deadline to apply to the to-do. Only can be a date string (yyyy-mm-dd).
- tags: Comma separated strings corresponding to the titles of tags.
- list: The title of a project or area to add to.
- heading: The title of a heading within a project to add to.
- completed: Whether or not the to-do should be set to complete.
- canceled: Whether or not the to-do should be set to canceled.
Please make sure to follow these rules:
- You should return a valid, parsable JSON object.
- Don't add a key if the user didn't specify it.
Here are some examples to help you out:
- Book flights today in my Trips list: {"title":"Book flights","when":"today","list":"Trips"}
- Add milk to my groceries list for tomorrow with Errand tag: {"title":"Milk","when":"tomorrow","list":"Groceries","tags":"Errand"}
- Respond to mails: {"title":"Respond to mails"}
- Buy a new car by the end of the year: {"title":"Buy a new car","deadline":"2023-12-31"}
- Collect dry cleaning this evening at 7PM: {"title":"Collect dry cleaning","when":"evening@19:00"}
- Fix landing page this Friday in bugs heading of Revamp Homepage project: {"title":"Fix landing page","when":"this friday","list":"Revamp Homepage","heading":"Bugs"}
- Add a completed task called "Ship feature" to my Work list: {"title":"Ship feature","list":"Work","completed":"true"}
- Answer to mails by this week-end: {"title":"Answer to mails","deadline":"2023-09-08"}
Hey @Jakeroid, did you disable AI from preferences? If you did and the task is still getting classified into "today" / "tomorrow" list, then we will need to remove the deadline parsing while setting deadline field in the request json:
My initial guess based on the examples was that populating the when field classified the tasks, but if you confirm, we can reopen this issue and work on the fix.
Hello @Jakeroid, given AI parses everything, it would be ambiguous if we supply extra preferences for Disable deadline parsing and Disable project parsing. Right now even if AI is not used, the request contains deadline and list (see README). I believe the easier option would be just to remove the aforementioned code (and deadline parsing) when AI is not used. You can open a PR if you want to, otherwise I will get to it EOW.
Activity
raycastbot commentedon Jul 12, 2024
Thank you for opening this issue!
🔔 @loris @andreaselia @thomaslombart you might want to have a look.
💡 Author and Contributors commands
The author and contributors of
loris/thingscan trigger bot actions by commenting:@raycastbot close this issueCloses the issue.@raycastbot rename this issue to "Awesome new title"Renames the issue.@raycastbot reopen this issueReopens the issue.@raycastbot assign meAssigns yourself to the issue.@raycastbot good first issueAdds the "Good first issue" label to the issue.@raycastbot keep this issue openMake sure the issue won't go stale and will be kept open by the bot.jfkisafk commentedon Jul 31, 2024
Since this is a
no-viewcommand, we can only handle the date parsing skip using command preferences. So, we will need to add a new preference for the command, and based on the value, skip thewhenfield here and change the corresponding examples:extensions/extensions/things/src/quick-add-todo.tsx
Lines 20 to 40 in 35fe66d
jfkisafk commentedon Jul 31, 2024
@raycastbot assign me
feat(things): preference to disable date parsing for quick to-do clas…
chore(things): remove console logging
feat(things): preference to disable ai altogether
chore(things): add readme for quick add todo
chore(things): add readme examples
[Things] Preference to disable date parsing for todo classification, …
1 remaining item
jfkisafk commentedon Aug 6, 2024
Hey @Jakeroid, did you disable AI from preferences? If you did and the task is still getting classified into "today" / "tomorrow" list, then we will need to remove the deadline parsing while setting
deadlinefield in the request json:extensions/extensions/things/src/quick-add-todo.tsx
Lines 23 to 29 in af5c29a
My initial guess based on the examples was that populating the
whenfield classified the tasks, but if you confirm, we can reopen this issue and work on the fix.Jakeroid commentedon Aug 7, 2024
@jfkisafk
Yes, I have removed the disable AI checkbox, but it still adds tasks for today if I write something like "don't forget to clean tooth today."
It would be great to have an option to "not parse tasks at all" or something similar. Perhaps it's better to add a few checkboxes:
If the user disables AI, then enable two additional checkboxes:
I believe there are many users who use their own task management system and many of them would like to avoid any unexpected automation there.
If you want, I could help with the code. Let me know if some help is needed with that.
jfkisafk commentedon Aug 7, 2024
@raycastbot reopen this issue
jfkisafk commentedon Aug 7, 2024
Hello @Jakeroid, given AI parses everything, it would be ambiguous if we supply extra preferences for
Disable deadline parsingandDisable project parsing. Right now even if AI is not used, the request containsdeadlineandlist(see README). I believe the easier option would be just to remove the aforementioned code (and deadline parsing) when AI is not used. You can open a PR if you want to, otherwise I will get to it EOW.jfkisafk commentedon Aug 7, 2024
@raycastbot assign to Jakeroid
Jakeroid commentedon Aug 14, 2024
@jfkisafk
I will make a PR this week, I hope.
jfkisafk commentedon Aug 14, 2024
ok I think @srikirank also reached out, suggesting he will work on it if he finds bandwidth. I can review it.
Disable Automatic Date (when & deadline), List parsing when AI is not…
fix: Disable Automatic Date (when & deadline), List parsing when AI i…
fix: Disable Automatic Date (when & deadline), List parsing when AI i…
Disable Automatic Date (when & deadline), List parsing when AI is not…
[diskutil] Upgrades Raycast dependencies for failureToast fix (#14106)