Skip to content

Commit

Permalink
Update 4.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kookma committed Aug 27, 2022
1 parent 9847d4e commit 0a19a8d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 11 deletions.
12 changes: 6 additions & 6 deletions docs/index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packaged/favorites.tid

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion source/favorites/plugin.info
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Favorites",
"description": "Create bookmarks, shortcuts and favorite items as flat and structured lists",
"author": "Mohammad Rahmani",
"version": "4.7.1",
"version": "4.7.2",
"core-version": ">=5.2.3",
"source": "https://github.com/kookma/TW-Favorites",
"list": "readme license history",
Expand Down
6 changes: 6 additions & 0 deletions source/favorites/styles/misc.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,10 @@ label.kk-fav-label {
}
.kk-fav-input {
width:120px;
}

/* folder-tiddler-ui*/

details.kk-fav-details>summary{
padding-left:0;
}
2 changes: 1 addition & 1 deletion source/favorites/ui/ViewTemplate/Folder.tid
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ type: text/vnd.tiddlywiki

<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
<$list filter="[all[current]tag[$:/tags/Favorites/Folder]]">
<$transclude tiddler="$:/plugins/kookma/favorites/vtemplates/ui-folder-tiddler" mode=block/>
<$transclude tiddler="$:/plugins/kookma/favorites/viewtemplates/ui-folder-tiddler" mode=block/>
</$list>
</$reveal>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
code-body: yes
tags:
title: $:/plugins/kookma/favorites/vtemplates/ui-folder-tiddler
title: $:/plugins/kookma/favorites/viewtemplates/ui-folder-tiddler
type: text/vnd.tiddlywiki

<!--
Expand All @@ -12,6 +12,7 @@ It is transcluded by $:/plugins/kookma/favorites/ui/ViewTemplate/Folder
\import $:/plugins/kookma/favorites/macros/drag-n-drop

\define tempInput() $:/temp/favorites/add-bulk/$(currentTiddler)$
\define inputFilter() [subfilter{$(tempInput)$}] :filter[is[tiddler]]
\define actionFilterAdd() [all[current]get[list]enlist-input[]] [subfilter{$(tempInput)$}]
\define actionFilterRemove() [all[current]get[list]enlist-input[]] -[subfilter{$(tempInput)$}]
\define actionDeleteTemp() <$action-deletetiddler $tiddler=<<tempInput>> />
Expand All @@ -34,12 +35,21 @@ Add, remove bulk of items
<<add-remove-bulk-items>>
</div>

<!-- show the result of entered filter before adding/removing-->
<details class="kk-fav-details"><summary>FIltered items: <small>//<$count filter=<<inputFilter>>/> mathches//</small></summary>
<div>
<$list filter=<<inputFilter>> template="$:/core/ui/ListItemTemplate"/>
</div>
</details>

Contents of folder: ''{{!!caption}}''

<div class="kk-fav-folder-content">
<$vars currentFolder=<<currentTiddler>> >
<$list filter="[list<currentFolder>]" emptyMessage=<<display-folder-is-empty>> >
<$transclude tiddler="$:/plugins/kookma/favorites/templates/list-item"/>
</$list>
<!--create an extra droppable area after last item-->
<<droppable-item-after-last-item>>
</$vars>
</div>

0 comments on commit 0a19a8d

Please sign in to comment.