Yes, although only in the fragment (starting with #
to the end of the url). It does more, transforming permaviews the same way, keeping the :
separator between the focused tiddler and the full list, and putting commas between the list elements. Right now, if we have a current tiddler of Foo Bar Baz
and also have open Qux
and Corge Grault
, we separate the current tiddler from the list with a colon (:
), space-separate the list, wrapping any elements that include spaces in [[ ... ]]
, to get a basic fragment of
#Foo Bar Baz:[[Foo Bar Baz]] Qux [[Corge Grault]]
which we then use JavaScript’s encodeURIComponent
to turn into this:
#Foo%20Bar%20Baz:%5B%5BFoo%20Bar%20Baz%5D%5D%20Qux%20%5B%5BCorge%20Grault%5D%5D
My suggestion is that we instead turn it into
#Foo+Bar+Baz:Foo+Bar+Baz,Qux,Corge+Grault
While this is a definite improvement in those permaviews, it is to my eyes immensely better for permalinks. This:
https://tiddlywiki.com/#Working+with+TiddlyWiki
is tremendously nicer to look at than this:
https://tiddlywiki.com/#Working%20with%20TiddlyWiki
No it’s intended to be a backward-compatible replacement for loading previously-generated links.1 And it would entirely supplant the current permalink/view creation. I see very little reason to ever want to turn it off. Do you see one?
Only to the fragment.
If the community prefers underscores to plus signs, giving us instead
https://tiddlywiki.com/#Working_with_TiddlyWiki
I’m perfectly happy with that. +
is what came to mind first, as I think it’s more common to see, but Wikipedia is one of the biggest sites on the internet, and it uses _
. That would be fine. It has an additional advantage in that _
seems less likely to be used in a title than +
. But we can bikeshed later over the specific character to use if we decide this overall is a good idea.
But, I don’t see much sense in making this customizable. First, it would make decoding/loading much more difficult. Second it would lead to inconsistencies between wikis for little benefit. Third, the most obvious form of customization would be to allow the wiki creators to supply the character to use in replacing spaces; this would then lead to problems if they choose characters illegal in the fragment, as seems all too likely.
I’m not clear where this is coming from, but I’m pretty sure it’s irrelevant. The fragment is not supposed to be supplied to the server at all, and I’m pretty sure that no major JS clients actually do so. If for some reason a permalink is supplied as a query parameter or part of the body of an HTTP request, then it would presumably be encoded as otherwise required, but that would be layered atop whatever we’ve already done to encode it.
1 There is a caveat. If someone has a tiddler whose title contains a +
or a ,
, and they’ve hand-crafted a permalink to it, rather than using the one generated by TW, and that includes the +
or ,
directly, without percent-encoding, then it will link to the wrong place, likely a non-existent tiddler, but conceivably an existing one.