shaarli / Shaarli

The personal, minimalist, super-fast, database free, bookmarking service - community repo
https://shaarli.readthedocs.io/
Other
3.44k stars 294 forks source link

Suggestion: Tag Groups / Bundles #412

Open Andrewskiz opened 8 years ago

Andrewskiz commented 8 years ago

It would be cool if you could group a number of tags into a tag bundle like in Delicious or Pinboard. Also, a way to pin said bundle to the main page of Shaarli so it shows up first.

nodiscc commented 8 years ago

@Andrewskiz Would this https://github.com/shaarli/Shaarli/issues/359 work? (setup a custom button linking to a custom tag search)

Andrewskiz commented 8 years ago

That would be a useful feature also, however I was thinking along the lines of having the links in the group themselves show up first on the main page.

nodiscc commented 8 years ago

sticky/pinned posts -> https://github.com/shaarli/Shaarli/issues/186 is that it?

Andrewskiz commented 8 years ago

Yeah, if that would apply to a tag or group of tags that would be it.

virtualtam commented 8 years ago

+1 for the feature ;-)

Introducing a tag hierarchy would also be nice when searching/filtering content, e.g.:

music
  |- classical
  |- death-guinguette
  |- jazz
      |- be-bop
      |- john-zorn
      |- scat
  |- opera

This would require some development though, either:

nodiscc commented 8 years ago

Introducing a tag hierarchy would also be nice when searching/filtering content

IMHO this would introduce unneeded complexity. If you need to work like this, why not simply rename these tags (be-bop,john-zorn...) to jazz/be-bop, jazz/john-zorn (single tag) or jazz be-bop,jazz john-zorn (convert 1 tag to multiple tags).

Tags in their current form ("single dimension"/flat) are very powerful and let you organize links exactly the way you want. What @Andrewskiz needs is a way to

  1. select all links tagged favorite,yeah,nice
  2. apply the "sticky/pinned" status to each of those. How sticky links work still has to be decided
    • Add a sticky property/checkbox to each link (directly in the array, is that even possible?)
    • Always display links that have a preset tag (eg sticky or *?... make the list customizable) at the top of the link list. This way we can even skip 1. and directly use the Rename tag feature.

Anyway I think this use case can be solved by working on https://github.com/shaarli/Shaarli/issues/186 and/or #359 first; nested tags would be really hard to manage.

ArthurHoaro commented 8 years ago

I agree with @nodiscc.

You can do almost whatever you want with current tag system and research. Introducing a tag hierarchy would be complex and need quite some dev (especially the admin part). And at best it would save a few clicks.

About sticky tags, I'm not a big fan of the idea. IMHO the point of the #186 feature is allowing to have one or two shaares on top as "welcome" messages. It really can be done manually without requiring a specific tag pinning feature. And if you really want to set fifty posts as sticky, well, that's up to you and you can.

nodiscc commented 8 years ago

Add a sticky property/checkbox to each link (directly in the array, is that even possible?)

is that even possible? Do plugins have the ability to create/read/write a custom field (pinned field=boolean, geolocation field=string, rating field=int...). It's not clear to me.

ArthurHoaro commented 8 years ago

Why wouldn't it be?

EDIT: Oh you're talking about plugins. Yes it's possible to add a new field, save it and retrieve it in linklist, but it might need some improvements. However I can see this as a core feature.