Navigate to query pages with keyboard

Let’s say I have a list of pages achieved with this query:

${template.each(
  query[[
    from index.tag "bar"
  ]],
  template.new[==[
    * [[${ref}]]
  ]==]
)}

This makes it so I can click the page name to navigate there – but only with mouse. If I try to navigate to the list item with keyboard, the rendered list turns into the code block, not allowing me to navigate there with ⌘ + enter.

Any way to achieve this? Maybe an option to not automatically show the code when cursor is there?

This isn’t possible to my knowledge. It will always be rendered as a codeblock if your cursor is in range.
You could try baking, but this kind of defeats the purpose of the query.

This is a good question and a great possible improvement from a usability point of view. Not being able to access links generated with queries and vim mode just looks like a controversy.

I was hoping that this would work turning on Read only mode. But it doesn't.

I would really love to be able to navigate query generated lists with keyboard somehow. Is there a wishlist somewhere or I should mention @zef in this thread? Sorry, just did this :smile: New here so do not know the rules yet))

Ideally you create a Github issue (and check if something doesn't already exist, because I think something like it has already come up in the past). :slight_smile:

Good. So github for feature request. Just for the record, I've found an existing issue and added a thumbs up. Should we continue the discussion there or continue here?

Continue there please :slight_smile: