Replies: 1 comment 8 replies
-
I don't think passing something like I think to implement this it would be a case of extending the Line 130 in dbf4eea But, there would also need to be some handling as to precedence. Like, should note titles be considered first in search, and then tags? I would think so. It should also have a toggle, so users can decide to include tags or not in their I personally wouldn't use this feature. If I really can't find something (like a reference note for an obscure research paper / long lost blog post I've forgotten the name of), I prefer to filter by tag first, then select filter for the title. |
Beta Was this translation helpful? Give feedback.
-
Verify
Share your idea or feature request
I would love the ability to list any note tags next to the title in when doing
:ZkNotes
, i.e. tags from the note's header. This would ease fuzzy finding over the notes based on the name and the tags at once.Old behaviour:
Suggested new behaviour:
So now if I for example type "noterust" it would filter out the note "My First Note".
I've managed to list notes with their tags with the following command, as a proof of concept:
zk list --format "{{title}}{{#if tags}} [{{#each tags}}{{this}}{{#if @last}}{{else}}, {{/if}}{{/each}}]{{/if}}"
After skimming through the code it seems like zk-nvim generates a call the language server when doing
:ZkNotes
. Is there any way to pass the equivalent to the--format
flag to the language server?Also, it would be neat if the tags have a different color.
Beta Was this translation helpful? Give feedback.
All reactions