obsidian-columns icon indicating copy to clipboard operation
obsidian-columns copied to clipboard

FR - support Query syntax

Open Jopp-gh opened this issue 2 years ago • 10 comments

[Describe your issue]

Currently queries seem not supported in columns

Queries are long, titles short, grouping 2 queries side by side not just saves space but time to scroll around as well. Currently i keep 4 different notes for 4 different queries, would be great to merge them down to 2 notes only

Steps to reproduce:

````col
```query
Tag: newBooks
```
```query
Tag: readBooks
```
````

System Info

OS: Mac OS Obsidian Version: 0.14.6 Plugin Version: 1.1.2

Jopp-gh avatar May 17 '22 10:05 Jopp-gh

I'm quite new to dataview but after trying a bit i got quite cleaner looking tables than using the query syntax, inside Obsidian columns

I understand that Obsidian columns needs extra code to be able to display other syntaxes - even if the displayed syntax is very simple. I let decide you, if you want to support the query syntax as well

Jopp-gh avatar May 17 '22 10:05 Jopp-gh

Mind linking the query Plugin so I can check it out?

Is it this? https://github.com/jplattel/obsidian-query-language

tnichols217 avatar May 17 '22 13:05 tnichols217

Query syntax is part of the core plugins. To check this out, go in sandbox mode, (save mode on, no custom CSS nor themes) and type:

```query
tag:<tagName>
```

https://help.obsidian.md/Plugins/Search

Jopp-gh avatar May 18 '22 11:05 Jopp-gh

Hmm this appears to be a problem with the internal Obsidian API, as it does not render this query when sent through the markdown renderer. Im looking for solutions but it might be a limitation with the Obsidian API

tnichols217 avatar May 18 '22 13:05 tnichols217

@tnichols217, I wished I could be more helpful, maybe try to reach out to the makers of Obsidian on discord or Obsidian forum to discuss this matter ✌️

Jopp-gh avatar May 18 '22 18:05 Jopp-gh

Yup, will do

tnichols217 avatar May 18 '22 23:05 tnichols217

Update: No response on the obsidian forums after 20 days. I am still unsure how to solve this issue Link here: https://forum.obsidian.md/t/query-codeblocks-in-markdownrenderer-rendermarkdown/37706

tnichols217 avatar Jun 08 '22 08:06 tnichols217

Hi, Usually the forums are a good place to ask, but I'd ask on Discord as well, to be exact in #plugin-dev. If people don't care, you can ping the developers directly if needed

Several people came up with solutions for multiple columns, but they all seem to complicate things, so i think, Fencing is the most natural way

Jopp-gh avatar Jun 09 '22 07:06 Jopp-gh

I have asked on discord, the reply said that it is currently not supported but the Obsidian API, and I'm waiting for anything new to come out

tnichols217 avatar Jun 09 '22 08:06 tnichols217

Query syntax should be supported in the new callout syntax due to not using MarkdownRenderer.renderMarkdown at all, but I am still looking out for any changes in the API

tnichols217 avatar Dec 14 '22 13:12 tnichols217