-
-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow hiding query result header #359
Comments
Tags are actually not displayed in the zettel query results (see here for example). What version of neuron are you using? |
Sorry, I might have explained it wrong. In your example there is an additional divider being inserted: If one would specify some tags in the automatic link, this divider would display those tags, defined in the automatic link. Your example also fits my description of the use case: There are somewhat two headlines: "Recently Created Zettels" and below "All Zettels". |
A better approach would be to allow the user to specify a custom .css file that gets used in addition to builtin css. And add a |
This approach would hide the divider div always. |
I'm hesitant to add too specific a behaviour to the more general link query feature. Here's an alternative approach, one that is more general: outdated idea
i.e.; allow link queries to accept an argument for a custom CSS class (here we specify div.query-result.bare div.divider {
display: none !important;
} |
Actually, wait. We can use the attributes extension from #176 to inject this class (no need to add For example, the following will add the classes "ui" "red" and "message" to a wrapping div:
Then, all we need to implement is #362. |
Why would that be to specific and why are you hesistant to add that kind of option? You already implemented something like While your approach would work, it seems kind of overkill:
|
Don't complect UI configuration and data querying. The link query syntax has one purpose -- to query zettels from the zettelkasten for establishing connections to. Piling it with UI features is just unnecessary complexity; I consider the existing Your point (3) and (4) can be addressed by providing the CSS classes as builtin (eg: Anyway, I'm not convinced with any of the proposed ideas so far. Commonmark attributes extension is Markdown-only, and it can't be used in org-mode. Another option is to remove the header completely. However, one main reason to not do that a) it is actually useful to see which group of zettels are being listed below, especially when you use multiple queries (see here), b) showing the header in those situations where it makes sense to hide them (such as the 'Recent zettels' of my site) is not that big of a deal. |
@Remich You can achieve this by putting the following in your head.html: <style>
/* Hide the query divider */
.pandoc .tag-query-results .divider {
display: none !important;
}
</style> Demo: https://stream.srid.ca/ I'll close this issue, but with a reminder to document this "recipe" in #565 |
If you wanted to hide the divider from just a selected list queries, then I suggest filing a new issue. One way to address that is to have the queries take a |
Hi,
when creating automatic links using queries, Neuron always displays the tags as some kind of headline.
It would be nice to have a option in the link (something like
?cf
) to disable the displaying of the tags.In my Zettels I often have a headline followed by some automatic links. It does not look very nice, if the tags act as a "second headline".
The text was updated successfully, but these errors were encountered: