tnichols217 / obsidian-columns

GNU General Public License v3.0
200 stars 9 forks source link

FR - support Query syntax #15

Open Jopp-gh opened 2 years ago

Jopp-gh commented 2 years ago

[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
Tag: readBooks

System Info

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

Jopp-gh commented 2 years ago

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

tnichols217 commented 2 years ago

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

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

Jopp-gh commented 2 years ago

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
tnichols217 commented 2 years ago

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

Jopp-gh commented 2 years ago

@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 ✌️

tnichols217 commented 2 years ago

Yup, will do

tnichols217 commented 2 years ago

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

Jopp-gh commented 2 years ago

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

tnichols217 commented 2 years ago

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 commented 1 year ago

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