pashashocky / obsidian-note-gallery

A masonry note gallery for obsidian.
GNU General Public License v3.0
196 stars 7 forks source link

Hardcoded limit of 10? #47

Closed stakaz closed 3 months ago

stakaz commented 3 months ago

Hello, if a use a directory with more than 10 notes, only ten of them are shown regardless of the limit settings (numbers less than 10 work properly) . Is it correct behavior and if yes, could it be removed so the limit can be set by the user?

pashashocky commented 3 months ago

Take a look here:

https://github.com/pashashocky/obsidian-note-gallery?tab=readme-ov-file#example-syntax

the default limit is 10

stakaz commented 3 months ago

Oh man, I am sorry. I think, I fould the issue. It shows 10 elements if it is a preview in the editor view. In read view everything works.

pashashocky commented 3 months ago

Interesting, I'll take note, and do some testing when I have more time, I'm in live preview and it works in preview as well with:

~~~~note-gallery
query: 'path: atlas OR path: + OR path: calendar/notes'
debugQuery: false
spath: 
recursive: false
sort: desc
sortby: mtime
limit: 0
fontsize: 6pt
showTitle: true
~~~~
stakaz commented 3 months ago

OK, so I was wrong one more time. It worked and did not work spontaneously. With or without the limit option and I read and edit view. But after 'Drop all cache and...' option it started working anytime. So it could be a cache issue...