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

Fix 8347 tag-picker macro improve tagListFilter #8351

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

pmario
Copy link
Member

@pmario pmario commented Jul 8, 2024

Fix #8347 tag-picker macro, change tagListFilter

  • This PR changes tagListFilter from [tags[]] to [tags[]sort[]]
  • It removes the hardcoded sort[] from the default filters.

So users can provide custom filters now.

@twMat Please test the preview, once it is built

Copy link

vercel bot commented Jul 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
tiddlywiki5 ✅ Ready (Inspect) Visit Preview Jul 8, 2024 6:35pm

@twMat
Copy link
Contributor

twMat commented Jul 9, 2024

It is great! Works very well! :-D

@Jermolene
Copy link
Member

Thanks @pmario does this fix a regression in v5.3.4, or is this a new feature?

@pmario
Copy link
Member Author

pmario commented Jul 9, 2024

Thanks @pmario does this fix a regression in v5.3.4, or is this a new feature?

@Jermolene -- the tagListFilter parameter is new in v5.3.4 -- So it's more an oversight than a regression since it does not exist in v5.3.3

@Jermolene
Copy link
Member

Thanks @pmario

@Jermolene Jermolene merged commit 906ac38 into TiddlyWiki:master Jul 9, 2024
4 checks passed
@@ -19,7 +19,8 @@ The <<.def tag-picker>> [[macro|Macros]] generates a combination of a text box a
: <<.from-version 5.3.4>> Defines the target tiddler, which should be manipulated. Defaults to: <<.var currentTiddler>>.

; tagListFilter
: <<.from-version 5.3.4>> This parameter defaults to: `[tags[]]` which creates a list of all existing tags. If the tag list should come from a different source the filter should look similar to eg: `[<listSource>get[field-name]enlist-input[]]`.
: <<.from-version 5.3.4>> This parameter defaults to: `[tags[]]` which creates a list of all existing tags. If the tag list should come from a different source the filter should look similar to eg: `[<listSource>get[field-name]enlist-input[]]`. See examples.
: <<.from-version 5.3.6>> This parameter defaults to: `[tags[]sort[]]`. This change allows a custom sort order, since `sort[]` is not hardcoded into the tag-picker macro anymore.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pmario @Jermolene I assume this a typo and it should state 5.3.5 and 5.3.6?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @saqimtiaz I've pushed a fix in 1eb1af2

@pmario pmario deleted the 8347-improve-tagListFilter branch July 30, 2024 08:05
tsukasa-au pushed a commit to tsukasa-au/TiddlyWiki5 that referenced this pull request Aug 3, 2024
* improve tagListFiler defaults to [tags[]sort[]] now

* tag-picker - update docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[IDEA] Make tagpicker respect sort order in its tagListFilter
4 participants