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

Automatic creation date that works across multiple lines #2861

Closed
4 tasks done
hmijail opened this issue May 29, 2024 · 4 comments
Closed
4 tasks done

Automatic creation date that works across multiple lines #2861

hmijail opened this issue May 29, 2024 · 4 comments
Labels
duplicate This issue, pull request or discussion already exists scope: task dates and times Requests for enhancements to types and formats of dates and times associated with tasks type: enhancement New feature or request

Comments

@hmijail
Copy link

hmijail commented May 29, 2024

⚠️ Please check that this feature request hasn't been suggested before.

  • I searched previous Ideas in Discussions didn't find any similar feature requests.
  • I searched previous Issues didn't find any similar feature requests.
  • I am only requesting a single feature. Multiple changes should be split into individual requests, with links between them.
  • I believe my requested feature will be generally applicable to other users, not just me: it is not uniquely tied to my personal workflow.

🔖 Feature description

This is a summary of issue #2786 , which itself gathered previous issues/discussions, then took some discussion to clarify the feature, and ended on a promising note.

Scenario

  1. I have a task that's filled out. It might or might not have a creation date.
  2. The caret is at the end of the line. I press Enter, which will create a new task.
  3. The new task is created. The creation date is added after the caret. Hence, the caret is in a good position to just type and fill in the new task's text.
  4. The task text is finished. I press Enter, which will create a new task. Note that the caret is still before the emoji+date.
  5. The text that was after the caret is moved to the new line. This removes the creation date from the previous task. This will happen with any new task created automatically.

✔️ Solution

The desired behavior is:
5. The old task should keep the date it had. The new task should be created with its own creation date.

To do this, maybe the plugin could detect on an Enter press that the caret is:

  1. in a task line and
  2. there's only emoji+dates after the caret,

and then move to the next line without dragging them on.

❓ Alternatives

Issue #2786 discussed that Obsidian doesn't give to the Tasks plugin any context to distinguish whether the task that is being edited was created moments ago or is an old one. This makes it difficult or impossible to e.g. give an automatic creation date only to a task that was created a moment ago and got some text typed in; by then, it's just another old task.

As a workaround, the idea of "leaving behind" the emoji+date when they're the only thing after the caret might be a good way to sidestep the lack of context; and this should keep working for every new created task in a list, without requiring new hotkeys nor mouse/cursor navigation.

📝 Additional Context

No response

@hmijail hmijail added the type: enhancement New feature or request label May 29, 2024
@claremacrae
Copy link
Collaborator

Unfortunately this ticket is a misunderstanding of my comment #2786 (comment).

@claremacrae claremacrae added the scope: task dates and times Requests for enhancements to types and formats of dates and times associated with tasks label May 29, 2024
@claremacrae
Copy link
Collaborator

Thank you for taking the time to write this up - my understanding of what you were suggesting was independent of Creation Date.

I've now written it up in:

  1. The old task should keep the date it had. The new task should be created with its own creation date.

No, as explained in #2786, this will not be done, so I must unfortunately close this near-repeat of that ticket.

@claremacrae claremacrae closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2024
@claremacrae claremacrae added the duplicate This issue, pull request or discussion already exists label May 29, 2024
@hmijail
Copy link
Author

hmijail commented May 30, 2024

Sorry, clearly I misunderstood.

@claremacrae
Copy link
Collaborator

Sorry, clearly I misunderstood.

Absolutely no apology needed - and thank you for your time to help suggest additions to Tasks! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue, pull request or discussion already exists scope: task dates and times Requests for enhancements to types and formats of dates and times associated with tasks type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants