Skip to content

Commit 19dddae

Browse files
committed
2.1.1
Maintenance release
1 parent 84a3ad7 commit 19dddae

File tree

7 files changed

+307
-109
lines changed

7 files changed

+307
-109
lines changed

docs/index.html

Lines changed: 269 additions & 91 deletions
Large diffs are not rendered by default.

packaged/commander.tid

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

source/commander/buttons/pagecontrol.tid

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,23 @@ caption: {{$:/plugins/kookma/commander/images/file-alt}} {{$:/language/Buttons/C
22
created: 20190724145015836
33
description: Open tiddler commander
44
list-after: $:/core/ui/Buttons/advanced-search
5-
modified: 20200324070652326
5+
modified: 20201002120203952
66
tags: $:/tags/PageControls
77
title: $:/plugins/kookma/commander/buttons/pagecontrol
88
type: text/vnd.tiddlywiki
99

10-
<$button to="$:/Commander" tooltip={{$:/language/Buttons/Commander/Hint}} aria-label={{$:/language/Buttons/Commander/Caption}} class=<<tv-config-toolbar-class>>>
11-
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
12-
{{$:/plugins/kookma/commander/images/file-alt}}
10+
\whitespace trim
11+
\define commander-button(class)
12+
<$button to="$:/Commander" tooltip={{$:/language/Buttons/Commander/Hint}} aria-label={{$:/language/Buttons/Commander/Caption}} class="""$(tv-config-toolbar-class)$ $class$""">
13+
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
14+
{{$:/plugins/kookma/commander/images/file-alt.svg}}
1315
</$list>
14-
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
16+
<$list filter="[<tv-config-toolbar-text>match[yes]]">
1517
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Commander/Caption}}/></span>
1618
</$list>
17-
</$button>
19+
</$button>
20+
\end
21+
22+
<$list filter="[list[$:/StoryList]] +[field:title[$:/Commander]]" emptyMessage=<<commander-button>>>
23+
<<commander-button "tc-selected">>
24+
</$list>

source/commander/field/macros/bulkfields.tid

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
created: 20200109104450902
2-
modified: 20200325055328347
2+
modified: 20200913180532516
33
tags: $:/tags/Commander/Macro
44
title: $:/plugins/kookma/commander/field/macros/bulkfields
55
type: text/vnd.tiddlywiki
@@ -9,13 +9,15 @@ type: text/vnd.tiddlywiki
99
\define id_fldValue() fldv$(cnt)$
1010

1111
\define add-bulk-fields()
12-
<$wikify name=flt text={{{ [<datafieldsTid>indexes[]count[]] }}}>
12+
<$set name="flt" tiddler=<<datafieldsTid>> field="counter" emptyValue="1"><!-- when the datafieldsTid is not exist, there is at least one field row -->
1313
<$list filter=<<numfilter>> variable="cnt">
14+
<$list filter="[<datafieldsTid>getindex<id_fldName>]" variable="newField">
1415
<$action-setfield $tiddler=<<newTitle>>
15-
$field={{{ [<datafieldsTid>getindex<id_fldName>trim[]lowercase[]split[ ]join[_]] }}}
16+
$field={{{ [<newField>trim[]lowercase[]split[ ]join[_]] }}}
1617
$value={{{ [<datafieldsTid>getindex<id_fldValue>] }}} />
1718
</$list>
18-
</$wikify>
19+
</$list>
20+
</$set>
1921
\end
2022

2123
\define getInputs()

source/commander/help/uicomp/snr.tid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
caption: Search-n-Replace
22
created: 20190307104654008
33
list-after: $:/plugins/kookma/commander/help/uicomp/quick-tutorial
4-
modified: 20200325093427060
4+
modified: 20200925143424505
55
tags: $:/tags/Commander/Help
66
title: $:/plugins/kookma/commander/help/uicomp/snr
77
type: text/vnd.tiddlywiki
@@ -22,7 +22,7 @@ Snr stands for search and replace, is a powerful tool uses regular expression fo
2222
* You can press `Replace all?` if you want to search and replace in all selected tiddlers
2323

2424
;Remarks
25-
: The `Replace all?` lets you to search and replace in all selected tiddlers at once! It is possible to Snr in `title` filed!
25+
: The `Replace all?` lets you to search and replace in all selected tiddlers at once! It is possible to search and replace even in `title` field!
2626

2727
<$list filter="[[snr.png]is[tiddler]]"><<image-pretty img:"snr.png" width:"60%" align:"center" caption:"Fig 1. Search and replace using regular expression">></$list>
2828

Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
caption: file-alt (Regular)
22
created: 20190724144859943
3-
modified: 20200324070652591
4-
title: $:/plugins/kookma/commander/images/file-alt
3+
modified: 20201002120229934
4+
title: $:/plugins/kookma/commander/images/file-alt.svg
55
type: text/vnd.tiddlywiki
66

77
<svg class="tc-image-file-alt tc-image-button" width="22pt" height="22pt" viewBox="0 0 384 512"><path d="M288 248v28c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-28c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm-12 72H108c-6.6 0-12 5.4-12 12v28c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-28c0-6.6-5.4-12-12-12zm108-188.1V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h204.1C264.8 0 277 5.1 286 14.1L369.9 98c9 8.9 14.1 21.2 14.1 33.9zm-128-80V128h76.1L256 51.9zM336 464V176H232c-13.3 0-24-10.7-24-24V48H48v416h288z"/></svg>

source/commander/readme.tid

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
created: 20200324061906254
2-
modified: 20200325053332573
2+
modified: 20201002120229880
33
tags:
44
title: $:/plugins/kookma/commander/readme
55
type: text/vnd.tiddlywiki
66

7+
<style>
8+
.cmd-doc svg{
9+
width: 1.2em;
10+
height: 1.2em;
11+
vertical-align: middle;}
12+
</style>
713
; Tiddler Commander
814
Tiddler Commander, in short ''Commander'' is a unique tool for batch operations on tiddlers. Commander has the below features
915

@@ -17,6 +23,11 @@ Tiddler Commander, in short ''Commander'' is a unique tool for batch operations
1723
* Log, create logs of all operations
1824
* Search, //save and load// any combination of filter search
1925

26+
; Start Commander
27+
* Normally Commander adds its icon: <span class="cmd-doc">{{$:/plugins/kookma/commander/images/file-alt.svg}}</span> to page controls.
28+
* Open the right sidebar and click on the <span class="cmd-doc">{{$:/plugins/kookma/commander/images/file-alt.svg}}</span> Commander is started
29+
* In standard Tiddlywiki, control buttons are shown on the right sidebar under site title.
30+
2031
; Code and demo
2132
For learning plugin features, syntax, tutorial and examples see the plugin demo and code pages
2233

0 commit comments

Comments
 (0)