Skip to content

Commit

Permalink
make it possible to add View and EditTemplates
Browse files Browse the repository at this point in the history
  • Loading branch information
BurningTreeC committed Sep 21, 2024
1 parent 82c42a4 commit d922c3a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion TiddlyFlex/global/layout/templates.tid
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tags: $:/tags/Global
typeSelectionTiddler=<<qualify "$:/temp/Type/selected-item">>>
<$keyboard key="((cancel-edit-tiddler))" actions=<<cancel-delete-tiddler-actions "cancel">> tag="div">
<$keyboard key="((save-tiddler))" actions=<<save-tiddler-actions>> tag="div">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlyFlex/EditTemplate]!is[draft]]" variable="listItem">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlyFlex/EditTemplate]!is[draft]] [all[shadows+tiddlers]tag[$:/tags/EditTemplate]!is[draft]] -[[$:/core]plugintiddlers[]tag[$:/tags/EditTemplate]]" variable="listItem">
<$transclude tiddler=<<listItem>>/>
</$list>
</$keyboard>
Expand Down
2 changes: 1 addition & 1 deletion TiddlyFlex/plugin.info
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "TiddlyFlex",
"plugin-type": "plugin",
"author": "Simon Huber",
"version": "0.5.2",
"version": "0.5.3",
"core-version": ">=5.3.3",
"source": "https://github.com/BurningTreeC/TiddlyFlex",
"list": "readme license"
Expand Down
2 changes: 1 addition & 1 deletion TiddlyFlex/ui/Templates/ViewTemplate.tid
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $:/state/folded/$(currentTiddler)$
<$vars storyTiddler=<<currentTiddler>> tiddlerInfoState=<<qualify "$:/state/popup/tiddler-info">>>
<div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class={{{ [all[shadows+tiddlers]tag[$:/tags/ClassFilters/TiddlerTemplate]!is[draft]] :map:flat[subfilter{!!text}] [subfilter<tdff.tiddlyflex-enlist-columns>count[]addprefix[tc-tiddlyflex-column-]] tc-tiddler-view-frame [<currentTiddler>is[tiddler]then[tc-tiddler-exists]] [<currentTiddler>is[missing]!is[shadow]then[tc-tiddler-missing]] [<currentTiddler>is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [<currentTiddler>is[shadow]is[tiddler]then[tc-tiddler-overridden-shadow]] [<currentTiddler>is[system]then[tc-tiddler-system]] [{!!class}] [<currentTiddler>tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}} role="article">
<$tiddlyflex-draggable enable={{{ [{$:/state/tiddlyflex/story-river/tiddler/drag-enabled}match[yes]then[$:/state/tiddlyflex/story-river/fullscreen/]addsuffix<currentTiddler>is[missing]then[yes]] ~[[no]] }}} tiddler=<<currentTiddler>> startactions=<<tiddlyflex-drag-start-actions>> endactions=<<tiddlyflex-drag-end-actions>> class="tc-tiddler-frame">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlyFlex/ViewTemplate]!is[draft]]" variable="listItem">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlyFlex/ViewTemplate]!is[draft]] [all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!is[draft]] -[[$:/core]plugintiddlers[]tag[$:/tags/ViewTemplate]]" variable="listItem">
<$transclude tiddler=<<listItem>>/>
</$list>
<% if [{$:/state/dragging}match[yes]then{$:/state/tiddlyflex/story-river/tiddler/drag-enabled}match[yes]then[$:/state/story-river/full-screen/]addsuffix<currentTiddler>is[missing]] %>
Expand Down

0 comments on commit d922c3a

Please sign in to comment.