raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.12k stars 2.84k forks source link

[Things] Option to Disable Automatic Date Parsing in Quick Add #13441

Open Jakeroid opened 3 weeks ago

Jakeroid commented 3 weeks ago

Extension

https://www.raycast.com/loris/things

Description

Feature Request: Option to Disable Automatic Date Parsing in Quick Add

Current Behavior

The Quick Add feature in Things automatically parses dates and times in task descriptions, moving tasks from the Inbox to specific dates.

Requested Feature

Add an option to disable automatic date/time parsing in Quick Add.

Rationale

Proposed Implementation

Considerations

This feature would enhance Things' flexibility, accommodating users who prefer more manual control over task organization.

Who will benefit from this feature?

Anything else?

No response

raycastbot commented 3 weeks ago

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/things` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
jfkisafk commented 1 week ago

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:

https://github.com/raycast/extensions/blob/35fe66de9ea6f317a3211540a5313b01b08fa9a0/extensions/things/src/quick-add-todo.tsx#L20-L40

jfkisafk commented 1 week ago

@raycastbot assign me

Jakeroid commented 1 day ago

Great!

However, words like "today" and "tomorrow" still change the deadline or move the task into the Today folder.

Why could this happen?

@jfkisafk

jfkisafk commented 16 hours ago

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:

https://github.com/raycast/extensions/blob/af5c29ac6a075a8ef3610c8fc78c42878cedb94b/extensions/things/src/quick-add-todo.tsx#L23-L29

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.

Jakeroid commented 2 hours ago

@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 commented 1 hour ago

@raycastbot reopen this issue

jfkisafk commented 1 hour ago

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.

jfkisafk commented 1 hour ago

@raycastbot assign to Jakeroid