Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Dashboard Index file empty #59

Closed
zenminimalist opened this issue Jul 30, 2023 · 13 comments
Closed

[Bug] Dashboard Index file empty #59

zenminimalist opened this issue Jul 30, 2023 · 13 comments
Assignees
Labels
bug Something isn't working

Comments

@zenminimalist
Copy link

@turulix The Dashboard index file (root) does not seem to be populated. It just shows this:

CleanShot 2023-07-30 at 20 01 41

Obsidian version: 1.3.5
MacOS: 13.5

The other folder index files are generated without a problem and works.

@turulix
Copy link
Owner

turulix commented Jul 30, 2023

Mind swapping to preview mode for me?

@zenminimalist
Copy link
Author

Mind swapping to preview mode for me?

Sure thing. Here you go:

CleanShot.2023-07-30.at.21.41.31.mp4

@zenminimalist
Copy link
Author

Maybe to add, a dataview query does work:

dataview
List
FROM #MOCs

Maybe that info rules out certain things.
I've also tried defaulting back to the default theme to rule out any conflicts. Still no success.

@turulix
Copy link
Owner

turulix commented Jul 31, 2023

Can you show me your file structure?

@zenminimalist
Copy link
Author

zenminimalist commented Jul 31, 2023

Maybe there was a misunderstanding on my side. I just happened to have put a file in the root directory yesterday and today....behold it displays exactly that.

CleanShot 2023-07-31 at 20 16 33

Here's my file structure:
CleanShot 2023-07-31 at 20 16 43

I thought the index in the root would consolidate the MOC in the other folders, so it would display a MOC of MOC or a Index of the Indexes, which was what I was expecting. So sorry, about the confusion. My bad 😞

However, that would be a nice feature though 😇 You'd have the master index that gives you an overview of all your folders MOC and you can then drill down even further to the relevant file/folder.

Sure, one could always use a dateview query, but your plugins way of displaying it with numbers and such is much nicer and wouldn't require an extra CSS snippet for the numbering.

@turulix
Copy link
Owner

turulix commented Jul 31, 2023

Nope, it will only display files in the / directory, if you want it to display all MOC files in the vault theres is a setting called Build IndexFiles Recursively which might do what you want :)

@zenminimalist
Copy link
Author

zenminimalist commented Jul 31, 2023

if you want it to display all MOC files in the vault theres is a setting called Build IndexFiles Recursively which might do what you want :)

I see, thanks.

However, that doesn't seem to work. Or I'm missing the really obvious here (which is very likely 😇) Here's a short demo with a demo vault, of me excluding the attachment folders, but it's still displaying. I've tried a few combination, but no luck.
CleanShot 2023-07-31 at 21 16 41

@turulix
Copy link
Owner

turulix commented Jul 31, 2023

Turns out, i'm stupid. I just released a patch, try to update to version 1.0.21 and Attachements.*? as the exclusion

@turulix turulix added the bug Something isn't working label Jul 31, 2023
@turulix turulix self-assigned this Jul 31, 2023
@zenminimalist
Copy link
Author

zenminimalist commented Jul 31, 2023

Wow, that was fast 🤯
It doesn't seem to change the behavior.
CleanShot 2023-07-31 at 22 15 50@2x

CleanShot 2023-07-31 at 22 16 03@2x

I've also tried restarting Obsidian and deactivating & activating the recursive option, no luck. Also, didn't see any errors in the console view.

@turulix
Copy link
Owner

turulix commented Jul 31, 2023

Umm... Now i'm kinda clueless as it works for me now and I can't reproduce it anymore

EDIT: I FUCKING MISSPELLED ATTACHMENTS xddddddd

try: Attachments.*?

@zenminimalist
Copy link
Author

zenminimalist commented Jul 31, 2023

Great, it works now! I should have caught that typo too though ☺️

One small improvement that I think would be nice is to have is to be able to collapse the lists, similar to normal md text. Here's what I mean:

CleanShot 2023-07-31 at 22 31 56

That way, the user can see the index of indexes, but also choose to literally see every thing on one numbered page (MOC and all files) if he/she expands the list. Or is there an option for that too?

@turulix
Copy link
Owner

turulix commented Jul 31, 2023

Sadly can't make the lists collapsable, since obsidian just dosn't support it for CodeBlocks, there is #48 but idk when i find motivation to implement that, that would solve this issue.

@zenminimalist
Copy link
Author

No worries, It's a really minor thing and the plugin as whole is already such a time saver or dare I say "game changer". And the workaround for the root-level index can be a simple dataview queriy.

Thanks again for the help and the plugin. 🤘🏽🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants