Comments (24)
I guess the simple solution would be to treat a dendron /user.scripts.daily-note.day.md as /user/scripts/daily-onte/day.md?
This looks like the most straightforward approach if you are thinking about the internal representation for uniform handling.
from obsidian-note-gallery.
Sorry, I'm not super familiar with Dendron, so happy for you to weigh in on UX here...
Not at all! I am grateful that you are prepared to look into it.
from obsidian-note-gallery.
- No indexing takes place.
- No errors in the developer console.
Drop all cache and re-initialized db
worked once. Afterwards, the plugin is stuck again.- Yes, I relaunched
Obsidian
.
The native search for /user.script.*/
works as expected and is fast.
What I am noticing is the following:
Obsidian
gets unresponsive for a while if the search involves hundreds of files: the native search finds 178 references for my specific case.
- Disabling the plugin, relaunching
Obsidian
, and re-enabling the plugin (with or without dropping all cache...) works with the first attempt. The rendering of the single notes takes quite a while, with my 178 files' search case. - Most of the time, I need to force-quit
Obsidian
. Hence, I am disabling the plugin for the time being.
I see lots of value in your plugin. Let me know how I can help to narrow down the issue. It might be that other plugins I have installed are impacting the performance / usability. I will test further, but I can only look into it next week.
from obsidian-note-gallery.
I am back from Mozambique, @pashashocky,
And I will test the Dendron use case in the next few days and let you know.
from obsidian-note-gallery.
Sure, I'll look into it! I've never heard of Dendron, but it looks interesting. Mind talking a little bit more about what you find the benefits are of using it?
Have you tried or do you use this plugin, does it work well?
So, just to summarize you have something like this?
/dendron
/dendron/user.script.daily-notes.2023-10-10.md
/dendron/user.script.daily-notes.quick-switcher.mjs.md
/dendron/python.library.pandas.md
you'd like path to be set to:
path: /dendron/user.script.daily-notes
to show
/dendron/user.script.daily-notes.2023-10-10.md
/dendron/user.script.daily-notes.quick-switcher.mjs.md
from obsidian-note-gallery.
Sorry for the late reply.
Yes, I have the Dendron Tree
and Structured Plugin
plugins installed and they complement each other.
If possible, could we define the root folder
as a folder as well? I have my scripts in the root folder and, e.g., business-related notes in a separate folder.
/user.script.daily-notes ...
/calendar/2023-11-12.md
/areas/business/some.business.notes.md
Correct you are regarding the display -- all files:
/user.script.daily-notes. ...
/calendar/ ...
/areas/business/ ...
or even/areas/busines/some.busines. ...
Does it make sense?
from obsidian-note-gallery.
The benefits of using the Dendron
style are:
- I can minimise the usage of folders.
- Every portion of the
Dendron
path is a folder and can be a folder note without additional "hacks" or plugins./areas/business.md
for a birds-eye view,/areas/business/clients.md
for a list orMOC
of all clients,/areas/business/clients.clientX.md
all specifics regarding client X,/areas/business/clients.clientX.projectY.md
overview of the specific project Y for client X etc. - Automatic correct grouping and sorting of all notes.
And last but not least, I like the idea and simplicity of this type of information organisation.
My goal is to move all my notes, which are still organised under folders, to the Dendron
path style.
from obsidian-note-gallery.
Nice! Interestingly enough I just started refactoring and re-organizing my notes as I got into Obsidian, partly why I started building out this plugin. Dendron sounds interesting so I'll explore it as I build out this feature.
I have one thing on my priority - specifically, a caching layer for rendered markdown which would speed up rendering and large vaults. After that's complete I can look into this.
The plugins current functionality is if you set path: /
it will search notes recursively and also display /folder/file.md
.
- Are you intending to set
path: /
ANDdendronPath: user
?- Should this also display
/calendar/user.note.md
?
- Should this also display
- I guess the simple solution would be to treat a dendron
/user.scripts.daily-note.day.md
as/user/scripts/daily-onte/day.md
?
Sorry, I'm not super familiar with Dendron, so happy for you to weigh in on UX here...
from obsidian-note-gallery.
I have one thing on my priority - specifically, a caching layer for rendered markdown which would speed up rendering and large vaults. After that's complete I can look into this.
Great and thank you!
from obsidian-note-gallery.
Are you intending to set path: / AND dendronPath: user?
I think this should be an option for users, like me who are "refactoring" their structure.
from obsidian-note-gallery.
Heya, I've been busy recently working on #6, would appreciate if you take a look at the conversation as this is also related...
- Does the dendron plugin integrate nicely with native search?
- How do you currently search/filter through your vault?
from obsidian-note-gallery.
- It does as well as with the https://github.com/Quorafind/Obsidian-Float-Search plugin, which is really only an extension of the native search functionality.
- Both with the
Quick switcher
and theFloat search
plugins. It's such a breeze to use.
I don't use any of the other community plugins like Omnisearch
etc. Reason: The native search is so powerful and meets my needs perfectly.
I will look at #6 later this evening and come back to you.
from obsidian-note-gallery.
The way I'm implementing my query
for native search is both similar and a little different to obsidian float search from Boninall... the complexity is in the wrapper but the search functionality will be identical... It's likely that this issue might be solved by #6 once I finish it....
I hope Boninall will give this a proper code review as well at some point.
from obsidian-note-gallery.
@StefanoRausch I just released 0.0.34
which has access to native obsidian search, just like float-search... Give this a go and maybe this will resolve your issue too, if not I'm still happy to go down the dendron rabbit hole. Let me know how you get on, it's documented in the README.
from obsidian-note-gallery.
I have tried the following alternatives:
query: "/(Regex: user.script.*)/"
sort: desc
and
query: "/user.script.*/"
sort: desc
with single or double quotes and I get Note Gallery: Loading...
The plugin is stuck at that step.
from obsidian-note-gallery.
@StefanoRausch hmm that's interesting - the loading should disappear once the cache database is populated.
- do you see anything in the top right corner saying it's indexing your vault?
- do you have any errors in the console?
ctrl+alt+i
orcmd+alt+i
orView -> Toggle Developer Tools
. - you can also try From command pallete
Drop all cache and re-initialize db
. - did you restart/reload app after the update?
Separately, you can try your query first in the regular obsidian search, once you are happy with the results you can move it over. I'd recommend using '
instead of "
especially for regex.
from obsidian-note-gallery.
Curiosity peaks, I'll debug on my side as well - 178 references is not a lot - here's an example of 35K matches running on my system: https://dropover.cloud/5a48ed
Latest version is 0.0.38
so please make sure you're using that one, that fixed a bug that wouldn't show anything.
This is pretty new and complex functionality, so bugs are expected - appreciate you trying to debug :)
Worth trying to get it to render some simple queries where you know the output will be 1-2 notes first and try the plugin in isolation in a new vault but with your existing notes copied over...
If you'd like to chat live - find me on discord.
from obsidian-note-gallery.
@StefanoRausch pushed a few more optimizations, bug fixes and cache updating to 0.0.41.
Fixed an issue that was not de-bouncing the updates...
Please run command Drop all cache and re-initialize database
, hope we're getting closer :)
from obsidian-note-gallery.
Checking in, we went from 0.0.34
to 0.0.46
pretty quickly.
Fixed a lot of issues, specifically with recursion and continuous renders - please, let me know if you're still having issues.
from obsidian-note-gallery.
@StefanoRausch coming back to check in on you and wondering if you could give this another go, we should be much more stable now after a good amount of bug fixes :)
from obsidian-note-gallery.
Hi @pashashocky, it is getting better, but we are still not where we want to be:
- I didn't have time to test your plugin with a fresh / new vault. I will do that and keep you in the loop.
- With a specific search (see below), the rendering takes several seconds and then the
Obsidian
main window goes "black", i.e., I can't see anything and must kill the application. Restarting the application shows the note "... indexing database", and nothing happens. Closing the note and reopening starts the cycle again.
```note-gallery
query: '/user.script.*/'
path: /
recursive: false
sort: desc
```
Cheers
from obsidian-note-gallery.
@StefanoRausch funky, by the sounds of it this testing happened on mobile?
from obsidian-note-gallery.
Happens on a Windows 11 laptop, @pashashocky.
from obsidian-note-gallery.
@StefanoRausch hey, hope you're doing well, I'm curious to see if we can resolve these issues you're having. If you get sometime could you maybe test dendron use-case with a clean vault?
I'm happy to give this a go too, but haven't had the chance to look into dendron yet, it would help me if you could provide a simple reproducible scenario with a tree view of how you create your notes?
from obsidian-note-gallery.
Related Issues (20)
- Can we use the current global search query to produce the list of cards?
- Regarding the images in the cards and customizing the height of the cards.
- [FR] Open in new tab HOT 3
- When adding notes on mobile, the plugin on desktop does not update automatically HOT 1
- [FR] Maximum dimensions in terms of height and width, along with a factor for scaling HOT 2
- [BUG]: Images show up even if a query does not include them HOT 4
- [FR] List notes containing a certain link
- HTML and PDF
- Filtered notes cannot be displayed in the final results
- [Bug]: Resizing of tables does not work properly HOT 1
- Note background blackens after inserting a note gallery HOT 2
- [Question] How to use on Android mobile?
- [bug] If there are more than one note-gallery in a file, they will interact with each other
- [FR] Add option: turn off auto-refresh HOT 1
- [FR] add sort option 'random'
- Still dont understand how to use this plugin HOT 1
- [FR] Option to not show content of cards, only titles.
- [Bugs?] The phenomenon of a character appearing behind the note
- CSS share: image only
- Hardcoded limit of 10? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-note-gallery.