Nested DOING duplicates

Greetings,

I’m trying to upgrade from LogSeq 0.6.1 but I"m seeing different behaviour how DOING blocks are displayed in the NOW section.

In 0.6.1, DOING is shown as follows:

But in LogSeq 0.8.x (I tried 0.8.18 and the nightly on 18th of March 23) the nested DOING blocks are repeated multiple times as follows:

Is there a setting in config.edn I can change to restore the NOW block as it was in version 0.6? Or a setting where only the first Doing 1 and its children are displayed and not the subsequent 1 → DOING2, 1 → DOING 3 etc?

Love LogSeq and super thanks for any help offered.

Also, when I click on the first 1, the DOING 1 collapses and when I click on it it shows it twice:

After collapsing all of the DOING under NOW I get:

Now when I click to expand any of the DOING blocks, these are duplicated as follows:

Is this a known issue? Are there any settings or workarounds?

The NOW block is a query in the config file.
What you are seeing is that the query gets the blocks with DOING regardless of (most) anything else.
The extra 1 you see is actually the breadcrumb trail for that task.
Without breadcrumbs shown it will look like this:
image

We can however change the NOW query to only get the parent and not the children.

{:title "🔨 NOW"
    :query [:find (pull ?h [*])
            :in $ ?start ?today
            :where
            [?h :block/marker ?marker]
            [(contains? #{"NOW" "DOING"} ?marker)]
            [?h :block/parent ?parent] ; add this line
            (not [?parent :block/marker ?marker]) ; as well as this line
            [?h :block/page ?p]
            [?p :block/journal? true]
            [?p :block/journal-day ?d]
            [(>= ?d ?start)]
            [(<= ?d ?today)]]
    :inputs [:14d :today]
    :result-transform (fn [result]
                        (sort-by (fn [h]
                                   (get h :block/priority "Z")) result))
    :collapsed? false}

Which gives this result:
image

See my comments in the query on what lines to add in your config file for this.

2 Likes

Works like a dream. Than you SO MUCH for this :pray:

1 Like