nspages icon indicating copy to clipboard operation
nspages copied to clipboard

Tag Listing

Open GitWonder opened this issue 2 years ago • 5 comments

This is a feature request to add Tags to the options to list a set of tagged pages

Eg

<nspages -tags -include:animals:four_legs -exclude:gerbils:hamsters>

To show all pages tagged four_legs and animals but not hamsters and gerbils.

Have not considered in the above example the difference between AND / OR in the include statement, but it's probably something that would need to be included to cover, tags of (animal [reptile|mammal])

GitWonder avatar Aug 14 '22 22:08 GitWonder

Hi,

what do you mean by tag? Is it related to this plugin https://www.dokuwiki.org/plugin:tag ?

gturri avatar Aug 15 '22 08:08 gturri

Yes that's the one

GitWonder avatar Aug 15 '22 09:08 GitWonder

thanks for this information.

It indeed feels like an interesting feature.

However I must admit that I'm not too sure when I will have time to work on it. I'm afraid it won't be any time soon... :-/ That being said I would gladly accept pull request! :) (I guess a way to work on such pull request would be to mimic the way the -pregOn and -pregOff options are implemented, just adapting the value on which the filter is done)

gturri avatar Aug 15 '22 09:08 gturri

Unfortunately I am not a programmer so wouldn't know where to start

GitWonder avatar Aug 15 '22 12:08 GitWonder

Update on my previous message (in case a developer interested in this feature arrives here): I had a look at the tag plugin, and it may be a bit more complex to implement this feature that what I said because it does not seem so trivial to retrieve the tags of a given page (unless I missed something)

gturri avatar Aug 15 '22 13:08 gturri