From 7a525af3ec6c2ebc6df9b7e03a22a693852da7f0 Mon Sep 17 00:00:00 2001 From: Cameron Fischer Date: Mon, 22 Jul 2024 12:28:10 -0400 Subject: [PATCH] Finished implementing transclude body type --- src/plugins/felixhayashi/tiddlymap/js/lib/environment.js | 2 +- .../tiddlers/edgetypes/edgetype.tw_body_transclude.tid | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 src/plugins/felixhayashi/tiddlymap/tiddlers/edgetypes/edgetype.tw_body_transclude.tid diff --git a/src/plugins/felixhayashi/tiddlymap/js/lib/environment.js b/src/plugins/felixhayashi/tiddlymap/js/lib/environment.js index c996bedf..5fc6462a 100644 --- a/src/plugins/felixhayashi/tiddlymap/js/lib/environment.js +++ b/src/plugins/felixhayashi/tiddlymap/js/lib/environment.js @@ -102,7 +102,7 @@ export const filter = { nodeTypes: `[prefix[${path.nodeTypes}]]`, edgeTypes: `[prefix[${path.edgeTypes}]]`, views: `[${config.sys.field.viewMarker}[true]]`, - defaultEdgeTypeFilter: '-[prefix[_]] -[[tw-body:link]] -[[tw-list:tags]] -[[tw-list:list]]' + defaultEdgeTypeFilter: '-[prefix[_]] -[[tw-body:link]] -[[tw-body:transclude]] -[[tw-list:tags]] -[[tw-list:list]]' }; const allSelector = '[all[tiddlers+shadows]!has[draft.of]]'; diff --git a/src/plugins/felixhayashi/tiddlymap/tiddlers/edgetypes/edgetype.tw_body_transclude.tid b/src/plugins/felixhayashi/tiddlymap/tiddlers/edgetypes/edgetype.tw_body_transclude.tid new file mode 100644 index 00000000..4f83a6f6 --- /dev/null +++ b/src/plugins/felixhayashi/tiddlymap/tiddlers/edgetypes/edgetype.tw_body_transclude.tid @@ -0,0 +1,5 @@ +title: $:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-body:transclude +description: A transclusion that is contained in the tiddler's body referencing another resource. +style: {"color":{"color":"darkgreen"}, "dashes":true} +label: transcludes +