Skip to content

Make the order of a tiddler's tags configurable - #9994

Draft
pmario wants to merge 6 commits into
TiddlyWiki:masterfrom
pmario:tags-operator-order
Draft

pmario wants to merge 6 commits into
TiddlyWiki:masterfrom
pmario:tags-operator-order

Conversation

@pmario

@pmario pmario commented Aug 26, 2026

Copy link
Copy Markdown
Member

Show a tiddler's tags in the order they were added, and let that order be chosen
under Control Panel > Settings > Tag Sorting. Closes #8228.

  • Return tags from [tags[]] in the order they appear on the tiddler. One that
    looks like a whole number was returned first
  • Stop <$action-listops> rewriting the whole tags field alphabetically
  • Add $:/config/Tags/SortFilter: absent means do not sort, [sort[]] is
    alphabetical, anything else is the user's own filter run
  • Keep wiki-wide lists alphabetical, so only a tiddler's own tags follow it
  • Apply it on an editing surface only when it returns the same number of tags,
    so a filter cannot hide a tag you need to remove
  • Let a tag be dragged to a new position while the tags are unsorted

A Control Panel panel rather than the hidden setting suggested in the issue,
since it needs three choices and a filter box.


pmario added 5 commits August 25, 2026 22:21
The tags on a tiddler keep the order they were added in, and both that and
the order of wiki wide tag lists can be changed.

* Return tags from the tags operator in the order they appear on the
  tiddler, instead of hoisting any tag that looks like a whole number
* Stop action-listops rewriting the whole tags field alphabetically when it
  adds or removes a tag
* Add $:/config/Tags/SortFilter and $:/config/Tags/GlobalSortFilter, each a
  filter run applied to a list of tags, with a Control Panel setting
* Ignore a filter that changes the number of tags in the tiddler editor and
  in the manager, so hiding a tag cannot hide one you need to remove
* Report in Wiki Information whether a custom filter is in use, without
  capturing the filter itself
* Document the settings in Customising tag order
Lists that show every tag in the wiki keep their alphabetical order and are
not configurable.

* Drop $:/config/Tags/GlobalSortFilter and restore the sort on AllTags,
  SystemTags, the tag manager and the manager tag selector
* Narrow the Control Panel setting and the Wiki Information report to the
  remaining per tiddler setting
* Update Customising tag order to match
Choosing a preset no longer discards a custom filter, and the radios follow
the setting when it is changed outside the Control Panel.

* Put a custom filter aside in $:/config/Tags/SortFilter/backup before a
  preset overwrites it, and read it back when custom is chosen again
* Select the radio from the filter itself, so editing or deleting the
  setting moves it. The mode tiddler now records only the custom choice,
  and the presets delete it again
* Delete $:/config/Tags/SortFilter when "Do not sort" is chosen, rather
  than leaving it behind holding an empty value
Let $:/config/Tags/SortFilter alone decide which Tag Sorting option is
selected.

* Remove $:/config/Tags/SortMode, which could fall out of step and pin
  the selection
* Write the radio choice to a scratch mode field, because $radio sets
  its value before running its actions and would otherwise destroy the
  custom filter
* Add TagOrderExample and link it from Customising tag order
Let a tag pill be dragged to a new position while the tags are unsorted.

* Wrap each pill in a droppable and a draggable, with a drop zone past
  the last one
* Enable it only while $:/config/Tags/SortFilter holds no filter, which
  would put a dropped pill straight back
* Ignore a title dragged in from elsewhere: this reorders, not adds
* Make the drop marker inline, the pills being a row not a column
@netlify

netlify Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for tiddlywiki-previews ready!

Name Link
🔨 Latest commit bf00c3b
🔍 Latest deploy log https://app.netlify.com/projects/tiddlywiki-previews/deploys/6a8ed35046faf70007d77cfc
😎 Deploy Preview https://deploy-preview-9994--tiddlywiki-previews.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

Copy link
Copy Markdown

Confirmed: pmario has already signed the Contributor License Agreement (see contributing.md)

@github-actions

github-actions Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

📊 Build Size Comparison: empty.html

Branch Size
Base (master) 2493.7 KB
PR 2503.1 KB

Diff: ⬆️ Increase: +9.4 KB


✅ Change Note Status

All change notes are properly formatted and validated!

📝 $:/changenotes/5.5.0/#9994

Type: feature | Category: usability
Release: 5.5.0

The tags on a tiddler keep the order you added them in, and tag order is configurable

🔗 #9994

👥 Contributors: pmario


📖 Change Note Guidelines

Change notes help track and communicate changes effectively. See the full documentation for details.

@pmario
pmario force-pushed the tags-operator-order branch from edca76d to bf00c3b Compare August 26, 2026 11:51

This branch has not been deployed

No deployments
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] Store Tags as Displayed

1 participant