obsidian-todoist-plugin icon indicating copy to clipboard operation
obsidian-todoist-plugin copied to clipboard

Add a "single line" view option for tasks.

Open mrickey opened this issue 1 year ago • 1 comments

Currently tasks are displayed with each task taking up several lines, one for each field.

I would like to see an option that would show the fields on a single line. For example: . I think "notes" should not show in this view.

Current View: Pay Costco Credit Card Home 🏡 / Routines 🔁 Yesterday

Suggested: Yesterday - Pay Costco Credit Card - Home / Routines - Office

Perhaps the order of the fields might change or be removed based on groupBy or show options. For example, if groupBy is "labels", you could probably remove labels from the text.

For me, I would want to groupBy labels and have the sort be based on due date, priority, then description.

mrickey avatar Jun 02 '24 20:06 mrickey

In the meantime you can accomplish this with a custom css snippet:

/* Ensure task metadata is inline with task content */
.todoist-task-list .task-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.todoist-task-list .todoist-task-content {
    flex-grow: 1;
    margin-right: 10px;
}

.todoist-task-list .task-metadata {
    display: flex;
    align-items: center;
    margin-left: 10px; /* Adjusts spacing between task content and metadata */
}

.todoist-task-list .task-metadata-item {
    margin-right: 10px; /* Adjust margin between metadata items */
    display: flex;
    align-items: center;
}

.todoist-task-list .task-metadata-item span {
    margin-left: 5px; /* Adjust spacing between icon and text */
}

rborder avatar Aug 19 '24 18:08 rborder