Skip to content

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

Description

@Jakeroid

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

  • Some users prefer to manually organize tasks
  • Allows use of date-like text in descriptions without triggering automatic parsing
  • Keeps all new tasks in the Inbox for later sorting

Proposed Implementation

  • Add a toggle in Quick Add interface or app settings
  • When enabled, Quick Add ignores date/time information in task descriptions
  • All tasks added with this option go to the Inbox

Considerations

  • Option to remember toggle state between sessions
  • Possible keyboard shortcut for quick toggling

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

Who will benefit from this feature?

  • Increased user control over task organization
  • Improved flexibility for different task management styles

Anything else?

No response

Activity

  1. added
    extension
    feature request
    on Jul 12, 2024
  2. raycastbot commented on Jul 12, 2024

    @raycastbot
    Collaborator

    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.
  3. added
    extension: things
    on Jul 12, 2024
  4. jfkisafk commented on Jul 31, 2024

    @jfkisafk
    Contributor

    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"}

  5. jfkisafk commented on Jul 31, 2024

    @jfkisafk
    Contributor

    @raycastbot assign me

  6. 1 remaining item

  7. jfkisafk commented on Aug 6, 2024

    @jfkisafk
    Contributor

    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:

    const dateMatch = parse(text);
    if (dateMatch && dateMatch.length > 0) {
    const chronoDate = dateMatch[0].start;
    isDateTime = chronoDate.isCertain('hour') || chronoDate.isCertain('minute') || chronoDate.isCertain('second');
    const date = chronoDate.date();
    deadline = isDateTime ? date.toISOString() : format(date, 'yyyy-MM-dd');
    }

    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.

  8. Jakeroid commented on Aug 7, 2024

    @Jakeroid
    Author

    @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:

    • Disable deadline parsing
    • Disable Area/Project parsing

    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.

  9. jfkisafk commented on Aug 7, 2024

    @jfkisafk
    Contributor

    @raycastbot reopen this issue

  10. jfkisafk commented on Aug 7, 2024

    @jfkisafk
    Contributor

    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.

  11. jfkisafk commented on Aug 7, 2024

    @jfkisafk
    Contributor

    @raycastbot assign to Jakeroid

  12. Jakeroid commented on Aug 14, 2024

    @Jakeroid
    Author

    @jfkisafk

    I will make a PR this week, I hope.

  13. jfkisafk commented on Aug 14, 2024

    @jfkisafk
    Contributor

    ok I think @srikirank also reached out, suggesting he will work on it if he finds bandwidth. I can review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

extensionextension: thingsfeature request

Type

No type

Fields

Priority

None yet

Severity

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions