That would create a huge “name clash”
- The word
current
(exactly as written here) is used 922 times in 441 files in the whole code-base (tiddlers + js-code)
- The word
current
as a “partial” like in “current
ly” is used 303 times in 132 files.
- The word
currentTiddler
is used 999 times in 478 different files in the whole TW code-base.
We will need to check every appearance of the word: current
, in full or as a partial, in the current code base to check if it could be confused with the new meaning of the new variable “current
”. Where necessary we need to change the wording there.
Since it does not make sense to have 2 names for 1 thing. For consistency we would need to globally rename currentTiddler
to current
(spoiler: which works surprisingly well)
For fun only – I did a global search and replace from currentTiddler
to current
for all js-code and all tiddlers.
Running tiddlywiki .\editions\tw5.com-server\ --listen
actually worked for a short test.
But that’s not manageable:
- It will immediately break every existing 3rd-party plugin.
- It will invalidate all the existing examples posted at the GoogleGroup
- It will invalidate all examples posted here at Talk.
Conclusion
Even if currentTiddler is somewhat wrong, it is the “standard name” for the most important variable in the whole system. I think we can not change it anymore.
Adding current
as a second option is not manageable either since it is used 922 times already. IMO it would be “noise” instead of sugar.