[Partial Done] Hide query-table property heading

Add the ability to hide the result count and properties of a query-table
image

And if I may add some suggestions as I have been thinking about why the queries look so off.

  • In the image above you see also the strange aligning with the bullet. It is just below as to how normal text would be presented.
  • Also the fold arrow is just below the bullet while with text it is left of the bullet.
  • And if you do not hide the results, properties and table view can you at least show them on the same row so they do not take up so much space.

Sorry to hijack the FR but seems fitting to add these here.

3 Likes

Oh my, yes please.

Amount of vertical space could be minimized, I would love that.

Perfect situation for me would be to achieve the similar rendering as in config.edn rendered queries.

1 Like

For anyone else landing here in the meantime, I put together this super fragile css to drop in logseq/custom.css :slight_smile: Hides both the items in the screenshot except for the default queries in the journal. Drop both of the div:not(#today-queries) > if you want to kill it there too!

div:not(#today-queries) > div.custom-query > div > div.content, div:not(#today-queries) > div.custom-query > div > div.initial > div > div.flex { display: none }

Not widely tested, and verrrrrrrry likely to break with any future updates. Am currently on 0.6.5. GLHF!

3 Likes

this will also hide queries which collapsed is true

A while ago a new flag was added to queries:

#+BEGIN_QUERY
 {:title [:b "title"]
 :query [:find (pull ?b [*])
 :where
 [task ?b #{"LATER"}]
 ]
 :table-view? true
 }
 #+END_QUERY

:table-view can have one of the following values:

  • nil β€” default, show property button
  • true β€” table view, hide the button
  • false β€” regular view, hide the bbutton
4 Likes

Looks like :table-view? hides the properties and hiding the result count is still a todo

Bumping this; I’d love to be able to hide the results count

With live queries I want to be able to hide the query builder as well. That feels like it fits in here more than as it’s own ask.

7 Likes