1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-12 12:59:57 +00:00
TiddlyWiki5/boot
Michelle Saad 4e641f4fc0
Add 'filepath' source attribute to tiddlywiki.files (#7253)
* Add 'filepath' source attribute to tiddlywiki.files

Adds a new source attribute to facilitate importing subdirectories with
the `searchSubdirectories` attribute.

The `filepath` atttribute is like `filename` except it includes the full
pathname relative to the directory path. Consequently it only works with
`directories` sections (not `tiddlers`).

* Add `subdirectories` source attribute to tiddlywiki.files

Adds another new source attribute to facilitate importing subdirectories
with the `searchSubdirectories` attribute.

The `subdirectories` source attribute is only usable with `directories`
sections (not `tiddlers`). It resolves to an array containing all the
directories in the file's path relative to the directory path. Eg, if
the directory path is `files`, `{ source: 'subdirectories' }` for a file
in  `files/images/photos` would resolve to `['images', 'photos'].

This commit also adds an example to the "tiddlywiki.files Files"
documentation tiddler that demonstrates using the `filepath` and
`subdirectories` source attributes to import and auto-tag image files
as external-image tiddlers.
2023-05-06 11:26:40 +01:00
..
boot.css.tid Tweaks for RSOD adjustments 7468ad7 2018-05-10 15:29:31 +01:00
boot.js Add 'filepath' source attribute to tiddlywiki.files (#7253) 2023-05-06 11:26:40 +01:00
bootprefix.js Added sourceURL tags to boot js (#6381) 2022-01-03 17:25:40 +00:00
sjcl.js Update Stanford JavaScript Library to 1.0.7 2017-07-18 15:42:35 +01:00
sjcl.js.meta Make the core into a plugin 2013-03-28 17:07:30 +00:00