mjsumpter / obsidian-tag-page

An Obsidian plugin to create and manage dedicated Markdown pages for tags, with features to automatically populate and refresh content based on user-defined settings.
MIT License
18 stars 3 forks source link

Enhancement: Table output #28

Open duckfarts opened 4 months ago

duckfarts commented 4 months ago

Please note that this also incorporates:

These needed to be included for the table output to work properly. Both of these are also available in separate pull requests.

Enhancement: Table output

Please note that tags that were used in bullet lists with additional bullets under them (hiearchically) create additional table rows on tag pages. i'd like to keep them in the same table cell using <br /> tags, but I haven't figured out how to do that yet.

GerkinDev commented 4 months ago

Haha I've altered this same part of code, but using a Quote Callout, and grouping them by file.

image

I think that since we're 2 making changes on this part of the output, let's wait for the author decision & personnal touch.

Thinking out loud, just some ideas: A more complex way to make everybody happy would be to give the choice to the user between multiple content formatters. Or maybe even loading a user-written .js file to do the formatting

duckfarts commented 4 months ago

Haha I've altered this same part of code, but using a Quote Callout, and grouping them by file.

image

I think that since we're 2 making changes on this part of the output, let's wait for the author decision & personnal touch.

Thinking out loud, just some ideas: A more complex way to make everybody happy would be to give the choice to the user between multiple content formatters. Or maybe even loading a user-written .js file to do the formatting

@GerkinDev I'll take a look at your changes, and I'm working on create a "Link output method" setting and trying to encase my changes accordingly. I'm not sure allowing a user-written .js file is a good idea off the bat though; it could work, but I don't know how much might break if it's really bad code.

Update: I just looked up what quote callouts do, and I think that this could be a separate enhancement that can co-exist with the other link output methods.

My idea for a table was just so the links or tags or whatever could be sorted, and maaaaaybe other metadata like Last Modified could be added to the table for sorting too (not there yet...).