Replies: 5 comments 5 replies
-
Would love this feature, too. I think about exporting my Outlook calendar via VBA to a single Markdown formatted task list in my vault. Each task would be one event with inline data fields for start and end. I would then query this list with Dataview in my daily note showing only the events of today. Unfortunately, looking at the inline fields is kind of distracting. |
Beta Was this translation helpful? Give feedback.
-
A simple solution could be a naming convention. For instance that all inline field annotations in tasks with field names ending on "_" get stripped. Like so: eLindros/obsidian-dataview@master...eLindros:hidden-task-annotations. |
Beta Was this translation helpful? Give feedback.
-
This may also be solvable via a cleaner task UI which hides inline fields by default and shows them underneath/to the side as floating elements. However, just adding a simple command to hide them may suffice for now. |
Beta Was this translation helpful? Give feedback.
-
This could also be achieved with span.dataview.inline-field { display: none } |
Beta Was this translation helpful? Give feedback.
-
extending on @sheeley's solution, you can use the For Example, below code hides the inline fields with key span.dataview.inline-field:has(span[data-dv-key="due"]) {
display: none;
} OR if you want to hide all fields except one with span.dataview.inline-field:not(:has(span[data-dv-key="due"])) {
display: none;
} |
Beta Was this translation helpful? Give feedback.
-
If the embedded grouping can be supported (see #696), it can also be very useful if one can hide certain inline fields when showing query results for tasks, to make the text description not too long.
For instance, one can use the syntax like
hide due, completion
in Dataview and.hide(t => due, completion)
in DataviewJS for the following task.Then this task would look like the following in the query result:
Beta Was this translation helpful? Give feedback.
All reactions