Limiting .tid filenames lenght generated by node.js

Hi all!

I have a single file wiki that I converted to node.js by drag 'n dropping the file into an empty node.js wiki. Node.js generated a .tid file for every tiddler. Now, a lot of tiddlers have very long titles, which is intended and i adjusted the CSS specifically for those tiddlers that may have long titles. But I am running into errors when I try to push these files to a Github repo because the filenames are too long.

error: open("tiddlers/longtitle.tid"): Filename too long
error: unable to index file 'tiddlers/longtitle.tid'
fatal: adding files failed

In the tiddlywiki.com documentation, I’ve found that it is possible to adjust the file path via filters of new tiddlers.

Is there also a way to adjust the filename generation to limit itself to less than 255 characters (which a google search tells me the max length of filenames in windows 10)?

Edit: I must have read over this, but it also says it limits filenames by 200 characters, which I’ve tested to be true. Still, I am not allowed to edit the filename over 148 characters, so the ma would be 148.

I found the problem. Turns out onedrive is the cause of the filename character limit of 148 characters. Moving my folder out of onedrive solved the problem for me. : )

1 Like