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

Auto Date Insertion Not Working (with Current Obsidian Version?) #74

Open
theotheo opened this issue Oct 18, 2023 · 6 comments
Open

Auto Date Insertion Not Working (with Current Obsidian Version?) #74

theotheo opened this issue Oct 18, 2023 · 6 comments
Labels
status waiting Further information is requested

Comments

@theotheo
Copy link

Hello!

In my workflow, I'd like to automatically insert creation and completion dates for tasks. I really like the concept of your plugin, as I understand it.

However, I'm having trouble making the automatic date insertion work. Could you please advise if this feature no longer functions with the current version of Obsidian?

@wenlzhang
Copy link
Owner

wenlzhang commented Oct 18, 2023

It works for me with Obsidian 1.4.16. What version of Obsidian do you have?

Which command does not work for you? Do you see any errors in the Obsidian console? You can access the console as follows:
image

Can you share a screenshot of your settings for the plugin? Or the data.json file within the plugin folder?

@theotheo
Copy link
Author

theotheo commented Oct 18, 2023

Sure!

  1. My Obsidian version is 1.4.16
    image

  2. I'm seeing a lot logs from google-calendar plugin. No idea why^
    image

  3. I've tried different option, but without luck. My current data.json is:

{
  "removeExpression": "",
  "appendDateFormat": "[[completion:: ]YYYY-MM-DD HH:mm[]]",
  "appendTextFormatMark": "",
  "appendTextFormatMarkRow2": "",
  "appendTextFormatCreation": "[[created:: ]YYYY-MM-DD HH:mm[]]",
  "appendTextFormatAppend": "",
  "appendTextFormatAppendText2": "[[comment:: ]]",
  "appendTextFormatAppendText3": "",
  "appendRemoveAllTasks": false,
  "incompleteTaskValues": " ",
  "incompleteTaskValuesRow2": "",
  "cycleTaskValues": "",
  "onlyLowercaseX": true,
  "supportCanceledTasks": true,
  "supportCyclingTasksReversely": false,
  "supportAppendingTextAutomatically": true,
  "appendTextAutoLineDefault": "text-2",
  "appendTextAutoTaskDefault": "text-rows-1-2",
  "previewOnClick": false,
  "rightClickComplete": false,
  "rightClickMark": false,
  "rightClickCycle": false,
  "rightClickCycleReversely": false,
  "rightClickCreate": false,
  "rightClickAppend": false,
  "rightClickAppendText2": false,
  "rightClickAppendText3": false,
  "rightClickAppendTextAuto": false,
  "rightClickResetTask": false,
  "rightClickResetAll": false,
  "rightClickToggleAll": false
}

@wenlzhang
Copy link
Owner

wenlzhang commented Oct 18, 2023

I tried to use the json file you provided, and it works for me.

I have Task Marker 0.4.3. What version do you have?

When you tried to use the commands, did you have the cursor on the line where the task is?

Did you use the commands in Live Preview/Source mode or Reading mode of Obsidian?

Can you record a video that illustrates how you use the plugin to operate on tasks? It would be great if the console can be shown at the same time.

@theotheo
Copy link
Author

  1. I use 0.4.3 too
    image

  2. I use Live Preview.

  3. But what do you mean by "tried to use commands"? Because if I use commands from the menu or command palette, everything works. But nothing happens automatically, as I understand it should happen when "Append text to a task automatically" is enabled. Maybe I misunderstand the function of these options :(.

For example, the Tasks plugin is able to add a completion date when clicking on the checkbox -- I imagine that the automatic addition options are responsible for similar behavior. Am I misunderstood?

@wenlzhang
Copy link
Owner

For example, the Tasks plugin is able to add a completion date when clicking on the checkbox -- I imagine that the automatic addition options are responsible for similar behavior. Am I misunderstood?

Then there might be some understanding here. One needs to use commands to "automatically" append text.

However, the scenario you describe here is interesting to me. How would you expect the appending text to occur automatically? With Tasks, the text would append automatically when checking off tasks from query results. How would you expect it to occur when creating, marking and completing tasks?

@theotheo
Copy link
Author

I will answer more completely later, but now I want to clarify about Tasks. Tasks appends completion dates at any place not only query results. But for example Dataview does it exclusively at it codeblock result.

@wenlzhang wenlzhang added the status waiting Further information is requested label Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status waiting Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants