drbap / dashboard-navigator-for-obsidian

Dashboard navigator plugin for Obsidian.
MIT License
98 stars 1 forks source link

Question: Using dashboard navigator query from inside of the note #11

Open merlinuwe opened 2 weeks ago

merlinuwe commented 2 weeks ago

I cannot remember if I had asked before or if you mentioned it:

This is an example of my automagically list of notes that are related to the current note.

I use this (and often dataview TABLE queries, too)

image

which looks in read mode so

image

and as a long example output so

image

Is it possible to have something similar (or better) based on your search syntax? The goal is to have a faster search result inside the note by using the great query possibilities of dashboard navigator.

drbap commented 2 weeks ago

Yes it is possible. I am working on this embed feature. I am calling it dnview (dashboard navigator view), maybe I will change it to a shorter name (dnv? or dnget). Like this inside the note:

```dnview
search commands here
```

It is working really well for single embeds on my development branch for next update but the problem is when I add many results (tables) inside the same note. Still need more testing.

I would like to add different types of views as well, like table, list, calendar, gallery... but I have to solve that multiple embeds in the same note first.

If you have suggestions, please let me know. I don't know how long it will take, but with 1 embedded table it is already working really fast.

merlinuwe commented 2 weeks ago

I am VERY pleased that you are working on it.

dnview is ok, it reminds me at dataview. ;-)

As I read it, you want to combine the best of both worlds (query and dataview). With the speed of your database, this will certainly be a very useful user experience. Let me think a few days about suggestions.

drbap commented 2 weeks ago

Sure. Your suggestions, as I said before, are very much appreciated and helpful. I hope to see your suggestions before implementing the new embed function, as it will make it easier if I need to change something to implement your suggestions.

Dataview is a great plugin but uses a more complex syntax, not so easy for new users (without coding skills). The goal is not to replace the Dataview plugin, but to be a faster and easier option to implement for certain types of data (queries).

The goal is to be really fast, reliable and direct to the point with fewer commands (and easier commands). The dnv or dnview embeds will be (hopefully) really fast and easy to use.

drbap commented 2 weeks ago

Please check plugin version 4.0.1. Small update to fix some things that hopefully will improve user experience (before I dedicate more time for the embed feature).

All the best

merlinuwe commented 2 weeks ago

Here are my first impressions about release 4.0.1 (Windows).

When I click with the right key in the column ext on png, I get

If this is intended, it's useful and should be documented.

image


The windows could be a little bit greater to show all entries. Omit the scrollbars, perhaps with an automatic line break.

The resize icon is not completely visible.

Copy & pasting is not activated yet.

image


Similar here. (Scrollbar and resize icon.)

image

drbap commented 2 weeks ago

Thanks for letting me know. These points will be fixed/improved as soon as possible. I will try to upload a patch soon. I think copy/paste of frontmatter will demand more time because they are links, different than Yaml format to add inside the notes.

Stay tuned

drbap commented 2 weeks ago

When we click on the Ext column link it should show only files with .extension. I will fix this as soon as possible. Thanks again for letting me know.

I will try later at night, don't have more time now.

All the best

drbap commented 2 weeks ago

Please check plugin version 4.1.0. Here is the changelog:

Please let me know if it is working better for you, especially that search feature. Still have to work to improve the appearance/sizing of frontmatter modals, they are resizable now (but I want to improve them more in the next update).

All the best

drbap commented 1 week ago

Please check plugin version 5.0.0. Yes, it is a major update (upgrade). Some important new features and design adjustments.

Dashboard view:

Navigator view:

I hope you enjoy.

All the best

drbap commented 1 week ago

You can preview notes (including the ones with dataview embeds), images, audio, etc. However, I'm still working on fixing the PDF preview on hover. Currently, if you hover over a PDF file, you have the option to open it in a new window. I'm actively investigating the issue, but unfortunately, I haven't found a solution in the documentation yet. In the meantime, you can still preview PDFs by opening them in a new tab or window.

merlinuwe commented 1 week ago

Here is my feedback (Windows 10, Obsidian 1.7.6):

Preview notes: VERY userful.

Consider to make the main window bigger (or show it like a opened note in a tab). I show you the areas which seem to have no use when using dashboard navigator:

image

Consider to let the row of the previewed note be activated when hovering into the opened preview window. So one can easily see, which note of the list is opened without reading.

image

All in all a great enhancement.

drbap commented 1 week ago
  • What can I do to close the window after I had the preview? ESC closes also the whole navigator window.

Answer: Just left-click anywhere in the navigator dashboard window (table or any part of the UI). I can add a close btn to the preview window too, but it looked like a modal and it is not. I had to make a custom hover preview. The hover popover, I think it works for Views, this plugin uses modal approach. Anyway, the preview was implemented. It will be improved. I am glad the functionality was added, now it is time to polish it more.

  • Arranging the opened preview window produces some stucking or hanging when I move the window fast.

Answer: This will depend of the size of the note also its contents (images, tables, dataview queries, etc). It will depend on the Markdown rendering (similar to Reading mode).

  • Only one window can be opened at the same time. Intended?

Answer: Yes, only one preview window. It was intended (otherwise some users could open 1000 windows or more). Maybe I will change this in the future. But for now, only one preview window.

  • The buttons "Open", "Open in new tab", "Open in new window" appear only when one needs them. Good. But there is a little lag when the note is hovered the first time.

Answer: I will check it out and see if I can improve this. But remember it is rendering the whole note when hover, depending on the note it will take some time. So if you hover while it is still rendering it can act with a little lag. But I will try to improve this experience too. Yes, the buttons only appear when needed. The first time I designed the preview window I made them visible by default. Do you think it's better to keep them visible all the time?

  • Suggestion: Allow resizing the preview window.

Answer: Yes, that's a very good suggestion too. I am already working on this. But depending on the size of the note it could have some lag while resizing, that's why I didnt add this feature in version 5.0.0. Maybe in 5.1.

  • Suggestion: Allow editing the preview window (also for simply copying something).

Answer: The developer documentation could really be more explained. I will try to implement this in the future. But you can select text and copy text of the preview window (select the desired text and right-click -> it will show a "Copy" option). Btw, Ctrl + C works too.

  • There is sometimes a little lag when previewing a note before it opens. Consider pre-caching.

Answer: I will see what I can do.

  • Yes dataview shows its output. When I click on a file in a dataview table, the file opens in preview but also in Obsidians main window (under the navigator window). I think, this is not intended.

The preview window is a rendered version of the note, if you click on any link or tag in the preview it will trigger actions in Obsidian main window. If you click on the tag, it will search for tags in Obsidian search.

This is the current state, maybe it will change in the next updates.

Well, thanks again for the nice feedback.

All the best

merlinuwe commented 1 week ago

You: Do you think it's better to keep them visible all the time?

This has the advantage, that there is no new rendering when the note is hovered (showing the buttons needs to scroll the content a little bit down). And one can see, what he can do with the opened preview. Yes, this seems to give better user experience.


Perhaps the content of the note could start a little bit more at the top

image



drbap commented 1 week ago

Plugin version 5.1.1. https://github.com/drbap/dashboard-navigator-for-obsidian/issues/12#issuecomment-2480863570

I hope it is better now.

All the best