You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched the existing discussions for similar ideas
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:
╭─────────────────────── Results ───────────────────────╮
│ My First Note │
│ My Second Note │
│> My Third Note │
╰───────────────────────────────────────────────────────╯
╭────────────────────── Zk Notes ───────────────────────╮
│ > 13 / 13│
╰───────────────────────────────────────────────────────╯
Suggested new behaviour:
╭─────────────────────── Results ───────────────────────╮
│ My First Note [rust, code] │
│ My Second Note │
│> My Third Note [config] │
╰───────────────────────────────────────────────────────╯
╭────────────────────── Zk Notes ───────────────────────╮
│ > 13 / 13│
╰───────────────────────────────────────────────────────╯
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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