marcusolsson/obsidian-projects

Group projects by text field in gallery view

Opened this issue · 0 comments

What would you like to be added?

I would like to be able to group projects by text field in the gallery view. I have a project for my recipes, and I want to see each recipe grouped by the type of meal it is (breakfast, lunch, dinner).

I would like the current display of the gallery, but with:

  • a group by field option containing text fields, allowing one text field to be selected
  • a horizontal grid of projects for each unique field value ordered top to bottom
  • a header before each grid indicating the field value along with an arrow to show/hide the group
  • an extra grid for projects with no field value, not present if every project has a value for the field
  • if there is no group by field, use the current layout

These also would be nice to have, but are less MVP features:

  • a setting for a custom file path to create new notes in for each group
  • a setting to sort groups (based on the field value, A-Z/Z-A, or perhaps custom)
  • drag and drop between grids, moving the project/modifying the project's field value

Overall, this is conceptually similar to features the board view has extended to the gallery view.

Why is this needed?

This is a useful way to display gallery projects, and would be commonly used if available I think.

There is no way to have a grouped by gallery view currently:

  • The alternative is to create multiple gallery views with filters for each group, but then you can't see all of the groups at once.
  • The board view displays projects left to right rather than top to bottom and does not display images (important for my recipes, seeing the foods helps me decide which to make). The gallery view is the style of display I want, just grouped.