mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-03-27 22:10:05 +01:00
OcttKB Cross-Repo Sync (HTML to Raw)
This commit is contained in:
parent
5a5714ff49
commit
3f7aec7f5b
@ -1,40 +0,0 @@
|
||||
caption: <$list filter="[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]" variable="lang"><$list filter="[<lang>search:title[zh]]">太微中文社区插件源(~GitHub版)</$list><$list filter="[<lang>!search:title[zh]]">TiddlyWiki CPL(~GitHub Host)</$list></$list>
|
||||
tags: $:/tags/PluginLibrary $:/tags/PluginLibrary/CPL
|
||||
title: $:/config/TiddlyWiki-CPL/GitHub
|
||||
type: text/vnd.tiddlywiki
|
||||
url: https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html
|
||||
|
||||
<!-- lang变量就是当前语言 -->
|
||||
<$list filter="[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]" variable="lang">
|
||||
<$list filter="[<lang>search:title[zh]]" variable="lang">
|
||||
|
||||
欢迎使用''【太微中文社区插件源】''!
|
||||
|
||||
本插件源是由[[太微(TiddlyWiki)中文社区|https://github.com/tiddly-gittly]]维护的、致力于搜集网络上所有与 ~TiddlyWiki5 有关插件的、希望为中国以及全世界的太微用户提供一键安装、更新插件体验的公开插件源。
|
||||
|
||||
如果还不了解该如何使用太微和本插件源,欢迎阅读[[中文社区共建的太微(TiddlyWiki)教程|https://tw-cn.netlify.app]]里插件相关的部分。如上提到的插件源和教程皆为开源项目,你可以在 [[GitHub|https://github.com/tiddly-gittly]] 中找到并参与贡献!如果乐意,可以通过QQ群等方式加入我们,详情请见如上提到的中文教程。
|
||||
|
||||
要添加这个插件库到你的 Wiki 中,只需鼠标拖动这个链接到你的 Wiki 里即可:<$link to=<<currentTiddler>>>{{!!caption}}</$link>
|
||||
|
||||
注意:本插件源版本为 ~GitHub Page 的版本,更新更快,但是可能需要科学上网手段。如果你在国内,而且不清楚什么是“科学上网”,请选用另一个经过 netlify.app 加速的[[版本|$:/config/TiddlyWiki-CPL/Netlify]],虽然更新有一定的延迟,但对国内用户更加友好。
|
||||
|
||||
@@color:red;''安装任何插件前,请记得备份你的Wiki,本插件源无法为插件造成的个人损失负责!''@@
|
||||
|
||||
</$list>
|
||||
|
||||
<$list filter="[<lang>!search:title[zh]]" variable="lang">
|
||||
|
||||
Welcome to the ''[TiddlyWiki Chinese Community Plugin Source]''!
|
||||
|
||||
This plugin source is maintained by the [[TiddlyWiki Chinese Community]] and is dedicated to collecting all TiddlyWiki5 related plugins on the web, hoping to provide a one-click installation and update plugin experience for TiddlyWiki users in China and around the world.
|
||||
|
||||
If you don't know how to use TiddlyWiki and this source, you are welcome to read the plugins related section in the [[TiddlyWiki Tutorials for Chinese Communities|https://tw-cn.netlify.app]]. As mentioned above, both the plugin source and the tutorial are open source projects, you can find them in [[GitHub|https://github.com/tiddly-gittly]] and participate in contributing! If you like, you can join us through QQ groups and other means, see the Chinese tutorials mentioned above for details.
|
||||
|
||||
To add this plugin library to your Wiki, just drag this link with your mouse into your Wiki: <$link to=<<currentTiddler>>>{{!!caption}}</$link>
|
||||
|
||||
Note: The source version of this plugin is the ~GitHub Page version, which is faster to update, but may require scientific Internet access. If you are in China and are not sure what GFW is, please use another [[version|$:/config/TiddlyWiki-CPL/Netlify]] that is accelerated by netlify.app, although there is a certain delay in updating, but it is more friendly to domestic users more friendly.
|
||||
|
||||
@@color:red;''Please remember to back up your Wiki before installing any plugins, this plugin source cannot be held responsible for personal losses caused by plugins!''@@
|
||||
|
||||
</$list>
|
||||
</$list>
|
@ -1,40 +0,0 @@
|
||||
caption: <$list filter="[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]" variable="lang"><$list filter="[<lang>search:title[zh]]">太微中文社区插件源(大陆加速版)</$list><$list filter="[<lang>!search:title[zh]]">TiddlyWiki CPL(Netlify Host)</$list></$list>
|
||||
tags: $:/tags/PluginLibrary $:/tags/PluginLibrary/CPL
|
||||
title: $:/config/TiddlyWiki-CPL/Netlify
|
||||
type: text/vnd.tiddlywiki
|
||||
url: https://tw-cpl.netlify.app/library/index.html
|
||||
|
||||
<!-- lang变量就是当前语言 -->
|
||||
<$list filter="[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]" variable="lang">
|
||||
<$list filter="[<lang>search:title[zh]]" variable="lang">
|
||||
|
||||
欢迎使用''【太微中文社区插件源】''!
|
||||
|
||||
本插件源是由[[太微(TiddlyWiki)中文社区|https://github.com/tiddly-gittly]]维护的、致力于搜集网络上所有与 ~TiddlyWiki5 有关插件的、希望为中国以及全世界的太微用户提供一键安装、更新插件体验的公开插件源。
|
||||
|
||||
如果还不了解该如何使用太微和本插件源,欢迎阅读[[中文社区共建的太微(TiddlyWiki)教程|https://tw-cn.netlify.app]]里插件相关的部分。如上提到的插件源和教程皆为开源项目,你可以在 [[GitHub|https://github.com/tiddly-gittly]] 中找到并参与贡献!如果乐意,可以通过QQ群等方式加入我们,详情请见如上提到的中文教程。
|
||||
|
||||
要添加这个插件库到你的 Wiki 中,只需鼠标拖动这个链接到你的 Wiki 里即可:<$link to=<<currentTiddler>>>{{!!caption}}</$link>
|
||||
|
||||
注意:本插件源版本为经过 netlify.app 加速的版本,对国内用户更加友好,但是更新有一定的延迟。还提供另一版本,是直接使用 ~GitHub Page 服务器的版本,更新更快,但是可能需要科学上网手段。
|
||||
|
||||
@@color:red;''安装任何插件前,请记得备份你的Wiki,本插件源无法为插件造成的个人损失负责!''@@
|
||||
|
||||
</$list>
|
||||
|
||||
<$list filter="[<lang>!search:title[zh]]" variable="lang">
|
||||
|
||||
Welcome to the ''[TiddlyWiki Chinese Community Plugin Source]''!
|
||||
|
||||
This plugin source is maintained by the [[TiddlyWiki Chinese Community]] and is dedicated to collecting all TiddlyWiki5 related plugins on the web, hoping to provide a one-click installation and update plugin experience for TiddlyWiki users in China and around the world.
|
||||
|
||||
If you don't know how to use TiddlyWiki and this source, you are welcome to read the plugins related section in the [[TiddlyWiki Tutorials for Chinese Communities|https://tw-cn.netlify.app]]. As mentioned above, both the plugin source and the tutorial are open source projects, you can find them in [[GitHub|https://github.com/tiddly-gittly]] and participate in contributing! If you like, you can join us through QQ groups and other means, see the Chinese tutorials mentioned above for details.
|
||||
|
||||
To add this plugin library to your Wiki, just drag this link with your mouse into your Wiki: <$link to=<<currentTiddler>>>{{!!caption}}</$link>
|
||||
|
||||
Note: The source version of this plugin is a version accelerated by netlify.app, which is more friendly to China mainland users, but there is a delay in updating. There is also another version that uses the GitHub Page server directly, which is faster to update, but may require technology to overturn the GFW.
|
||||
|
||||
@@color:red;''Please remember to back up your Wiki before installing any plugins, this plugin source cannot be held responsible for personal losses caused by plugins!''@@
|
||||
|
||||
</$list>
|
||||
</$list>
|
@ -1,11 +0,0 @@
|
||||
{
|
||||
"author": "Gk0Wk",
|
||||
"description": "Repos for CPL",
|
||||
"name": "CPL Repo",
|
||||
"plugin-type": "plugin",
|
||||
"title": "$:/plugins/Gk0Wk/CPL-Repo",
|
||||
"version": "2022.12.28",
|
||||
"revision": "0",
|
||||
"bag": "default",
|
||||
"dependents": ""
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
created: 20140530174219263
|
||||
tags: contextPlugin
|
||||
title: $:/plugins/danielo515/ContextPlugin/Caption
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
Context search
|
@ -1,3 +0,0 @@
|
||||
.matched{background-color:yellow}
|
||||
.tw-context {/*border:1px solid;
|
||||
/*word-break: break-all; word-wrap: break-word*/}
|
@ -1,4 +0,0 @@
|
||||
created: 20140529162823729
|
||||
tags: $:/tags/Stylesheet contextPlugin
|
||||
title: $:/plugins/danielo515/ContextPlugin/Stylesheet/results
|
||||
type: text/css
|
@ -1,55 +0,0 @@
|
||||
title: $:/plugins/danielo515/ContextPlugin/readme
|
||||
|
||||
!Usage
|
||||
|
||||
After installing the plugin you will have a new tab in [[$:/AdvancedSearch]] called [[Context Search]]. If you want this functionality in other places you will have to edit the desired tiddler yourself adding the ''context widget''. For more details about using the widget see the section below.
|
||||
|
||||
!!Using the widget
|
||||
|
||||
The very basic usage of the widget is the following:
|
||||
|
||||
```
|
||||
<$context term="lorem"/>
|
||||
```
|
||||
Which will render as:
|
||||
<$context term="lorem"/>
|
||||
|
||||
The widgets will search inside the current tiddler by default. Because that you see the same content twice here. This example is not very useful. Other more meaningful would be:
|
||||
|
||||
```
|
||||
<$list filter="[search{$:/temp/advancedsearch}sort[title]limit[250]]">
|
||||
{{!!title||$:/core/ui/ListItemTemplate}}
|
||||
<$context term={{$:/temp/advancedsearch}}/>
|
||||
</$list>
|
||||
```
|
||||
|
||||
That will search for tiddlers containing the text specified in [[$:/temp/advancedsearch]] and will display a link to the matching tiddlers plus a preview of the matching content. Something very similar is used in [[Context Search]]. Below you can find a complete list of parameters and their default values.
|
||||
|
||||
|! parameter |! description | !default |
|
||||
| term | The term you want to search ||
|
||||
| searchTerm | An alias for the previous one ||
|
||||
| tiddler | The tiddler's name to look into | current tiddler |
|
||||
| length | Number of context characters to show | 50 |
|
||||
| before | Number of characters before the matched term to show | the value of the length parameter |
|
||||
| after | Number of characters after the matched term to show | the value of the length parameter |
|
||||
| maxMatches | maximun number of matched elements to show. Incrementing this can cause several performance issues | 10 |
|
||||
| element | Node element to create. This element will contain the results of the search. If you want to style it its class is `tw-context` | `<pre>` |
|
||||
| matchClass | The css class to assign to the matched terms in the results. This is used to highlight the results | matched |
|
||||
|
||||
!Customizing the output
|
||||
There are not many ways to customize the output of this widget. You can specify ''what type of node you want to create'' to wrap the results (div,span...). The default is `<pre>`. This container is created with the class `tw-context` so you can easily apply styles to it. Something similar happens to the ''highlighted'' words. You can specify the name of the class to assign to it and also you can apply styles to that class.
|
||||
|
||||
A very basic example of customization could be:
|
||||
|
||||
# Create a tiddler, for example [[$/plugins/danielo515/context/css]]
|
||||
# Paste the following text or any css rule you want: """
|
||||
|
||||
<pre>
|
||||
.matched{background-color:yellow}
|
||||
.tw-context {
|
||||
border:1px solid blue;
|
||||
word-break: break-all; word-wrap: break-word;}
|
||||
</pre>
|
||||
"""
|
||||
# Tag it with `$:/tags/stylesheet`
|
||||
# Save the tiddler
|
@ -1,8 +0,0 @@
|
||||
caption: Context
|
||||
tags: $:/tags/SearchResults
|
||||
title: $:/plugins/danielo515/ContextPlugin/visualizer
|
||||
|
||||
<$list filter="[!is[system]search{$:/temp/search}sort[title]limit[250]]">
|
||||
{{!!title||$:/core/ui/ListItemTemplate}}
|
||||
<$context term={{$:/temp/search}} />
|
||||
</$list>
|
@ -1,136 +0,0 @@
|
||||
/*\\
|
||||
title: $:/core/modules/widgets/danielo/context-widget.js
|
||||
type: application/javascript
|
||||
module-type: widget
|
||||
|
||||
Edit-text widget
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
var Widget = require("$:/core/modules/widgets/widget.js").widget;
|
||||
var contextWidget = function(parseTreeNode,options) {
|
||||
this.initialise(parseTreeNode,options);
|
||||
};
|
||||
|
||||
/*
|
||||
Inherit from the base widget class
|
||||
*/
|
||||
contextWidget.prototype = new Widget();
|
||||
|
||||
/*
|
||||
Render this widget into the DOM
|
||||
*/
|
||||
contextWidget.prototype.render = function(parent,nextSibling) {
|
||||
// Save the parent dom node
|
||||
this.parentDomNode = parent;
|
||||
// Compute our attributes
|
||||
this.computeAttributes();
|
||||
// Execute our logic
|
||||
this.execute();
|
||||
|
||||
if(this.term && this.term.length>3){
|
||||
|
||||
this.createRegexp();
|
||||
var matches = this.executeRegexp();
|
||||
if(matches.length > 0){
|
||||
this.domNode = this.document.createElement(this.element);
|
||||
this.domNode.className="tw-context";
|
||||
this.composeResults( matches ); //this appends to domNode
|
||||
// Insert element
|
||||
parent.insertBefore(this.domNode,nextSibling);
|
||||
this.renderChildren(this.domNode,null);
|
||||
this.domNodes.push(this.domNode);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
Compute the internal state of the widget
|
||||
*/
|
||||
contextWidget.prototype.execute = function() {
|
||||
// Get the parameters from the attributes
|
||||
this.matchedClass = this.getAttribute("matchClass","matched");
|
||||
this.tiddler = this.getAttribute( "tiddler",this.getVariable("currentTiddler") );
|
||||
this.term = this.getAttribute("term",this.getAttribute("searchTerm"));
|
||||
this.contextLength = this.getAttribute("length",50);
|
||||
this.before = this.getAttribute("before",this.contextLength);
|
||||
this.after = this.getAttribute("after",this.contextLength);
|
||||
this.maxMatches = this.getAttribute("maxMatches",10);
|
||||
this.element = this.getAttribute("element","pre");
|
||||
this.makeChildWidgets();
|
||||
};
|
||||
|
||||
/*Create the regular expression*/
|
||||
contextWidget.prototype.createRegexp = function()
|
||||
{
|
||||
var regString = "(\\w+[\\s\\S]{0,#before#})?(#term#)([\\s\\S]{0,#after#}\\w+)?";
|
||||
|
||||
var regString = regString.replace("#before#",this.before).replace("#term#", $tw.utils.escapeRegExp(this.term) ) .replace("#after#",this.after);
|
||||
this.regexp = new RegExp(regString,"ig");
|
||||
//console.log(regString);
|
||||
};
|
||||
/*
|
||||
execute the regular expresion
|
||||
*/
|
||||
contextWidget.prototype.executeRegexp = function()
|
||||
{
|
||||
var text = this.wiki.getTiddlerText(this.tiddler), match,results = new Array();
|
||||
while( (match = this.regexp.exec( text ) ) && (results.length < this.maxMatches) )
|
||||
{ results.push(match) }
|
||||
//console.log("matches",results);
|
||||
return results;
|
||||
};
|
||||
|
||||
/*
|
||||
compose the results
|
||||
matches : array of match objects from regular expression execute
|
||||
*/
|
||||
contextWidget.prototype.composeResults = function(matches){
|
||||
var result=[], self=this, node = this.domNode,
|
||||
dots = textNode("...\n"),
|
||||
span = matchedNode( this.term );
|
||||
|
||||
for(var i=0; i < matches.length; i++){
|
||||
processMatch( matches[i] );
|
||||
}
|
||||
|
||||
function processMatch(match){
|
||||
if( match.index !== 0) node.appendChild( dots.cloneNode(true) );
|
||||
for( var i=1;i<match.length;i++ ) {//match[0] full matched text (all groups together)
|
||||
if( match[i] ) {
|
||||
if ( match[i].toLowerCase() == self.term.toLowerCase() )
|
||||
node.appendChild( match[i] == self.term ? span.cloneNode(true) : matchedNode( match[i] ) )
|
||||
else
|
||||
node.appendChild( textNode( match[i]) )
|
||||
}
|
||||
}
|
||||
if( match.index + match[0].length < match.input.length) node.appendChild( dots.cloneNode(true) );
|
||||
}
|
||||
|
||||
function textNode(text){ return self.document.createTextNode(text) }
|
||||
function matchedNode(text) {
|
||||
var node = self.document.createElement("span"); node.appendChild( textNode(text) ); node.className = self.matchedClass;
|
||||
return node }
|
||||
|
||||
};
|
||||
/*
|
||||
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
|
||||
*/
|
||||
contextWidget.prototype.refresh = function(changedTiddlers) {
|
||||
var changedAttributes = this.computeAttributes();
|
||||
if(changedAttributes.tiddler || changedAttributes.term || changedAttributes.length || changedAttributes.matchedClass) {
|
||||
this.refreshSelf();
|
||||
return true;
|
||||
}
|
||||
return this.refreshChildren(changedTiddlers);
|
||||
};
|
||||
|
||||
exports.context = contextWidget;
|
||||
|
||||
})();
|
@ -1,7 +0,0 @@
|
||||
created: 20140418153435777
|
||||
creator: danielo
|
||||
modified: 20140530231943517
|
||||
modifier: danielo
|
||||
module-type: widget
|
||||
title: $:/plugins/danielo515/ContextPlugin/widgets/context.js
|
||||
type: application/javascript
|
@ -1,32 +0,0 @@
|
||||
caption: {{$:/plugins/danielo515/ContextPlugin/Caption}}
|
||||
created: 20140530173407542
|
||||
tags: $:/tags/AdvancedSearch
|
||||
title: Context Search
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define lingo-base() $:/language/Search/
|
||||
<$linkcatcher to="$:/temp/advancedsearch">
|
||||
|
||||
<<lingo Standard/Hint>>
|
||||
|
||||
<div class="tw-search"><$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input"/><$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> <$link to="" class="btn-invisible">{{$:/core/images/close-button}}</$link></$reveal></div>
|
||||
|
||||
</$linkcatcher>
|
||||
|
||||
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
||||
<div class="tw-search-results">
|
||||
|
||||
<<lingo Standard/Matches>>
|
||||
|
||||
<$list filter="[!is[system]search{$:/temp/advancedsearch}sort[title]limit[250]]">
|
||||
{{!!title||$:/core/ui/ListItemTemplate}}
|
||||
<$context term={{$:/temp/advancedsearch}}/>
|
||||
</$list>
|
||||
|
||||
</div>
|
||||
|
||||
</$reveal>
|
||||
|
||||
<$reveal state="$:/temp/advancedsearch" type="match" text="">
|
||||
|
||||
</$reveal>
|
@ -1,13 +0,0 @@
|
||||
{
|
||||
"bag": "default",
|
||||
"revision": "0",
|
||||
"version": "2.1.0",
|
||||
"title": "$:/plugins/danielo515/ContextPlugin",
|
||||
"source": "https://github.com/danielo515/TW5-contextPlugin",
|
||||
"plugin-type": "plugin",
|
||||
"list": "readme",
|
||||
"description": "Context search - provides visual highlight of search results",
|
||||
"dependents": "",
|
||||
"core-version": ">=5.1.0",
|
||||
"author": "Danielo Rodrigez"
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
/*\
|
||||
title: $:/plugins/tobibeer/base64/filter.js
|
||||
type: application/javascript
|
||||
module-type: filteroperator
|
||||
|
||||
A filter to encode and decode base64
|
||||
|
||||
@preserve
|
||||
\*/
|
||||
(function(){"use strict";exports.base64=function(e,r,t){var n="",o=r.suffix=="decode";try{if(r.operand){n=r.operand}else{e(function(e,r){n+=r})}n=o?atob(n):btoa(n)}catch(i){return["Error in base64 filter trying to "+(o?"de":"en")+"code'"+n+"':\n"+i]}return[n]}})();
|
@ -1,3 +0,0 @@
|
||||
module-type: filteroperator
|
||||
title: $:/plugins/tobibeer/base64/filter.js
|
||||
type: application/javascript
|
@ -1,14 +0,0 @@
|
||||
title: $:/plugins/tobibeer/base64/readme
|
||||
|
||||
The plugin $:/plugins/tobibeer/base64 provides:
|
||||
|
||||
; base64[]
|
||||
: a filter to encode text to base64
|
||||
|
||||
; base64:decode[]
|
||||
: and dencode base64 to text
|
||||
|
||||
<br>
|
||||
|
||||
; documentation / examples / demos...
|
||||
: http://tobibeer.github.io/tw5-plugins#base64
|
@ -1,13 +0,0 @@
|
||||
{
|
||||
"title": "$:/plugins/tobibeer/base64",
|
||||
"description": "base64 encoding and decoding for ~TiddlyWiki",
|
||||
"author": "Tobias Beer",
|
||||
"version": "0.5.0",
|
||||
"core-version": ">=5.1.9",
|
||||
"source": "https://github.com/tobibeer/tw5-base64",
|
||||
"documentation": "https://tobibeer.github.io/tw5-base64",
|
||||
"plugin-type": "plugin",
|
||||
"requires": "",
|
||||
"list": "readme",
|
||||
"dependents": ""
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
icon: $:/plugins/kookma/commander/images/commander.svg
|
||||
title: $:/Commander
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [all[shadows+tiddlers]tag[$:/tags/Commander/Macro]]
|
||||
{{$:/plugins/kookma/commander/search/ui}}
|
||||
<!-- Create the search filter based on searchbox and selective operation (if active) -->
|
||||
<$vars searchTerms={{{ [<searchboxTid>get[text]minlength{$:/plugins/kookma/commander/config/minlength}]~[[$:/errorCode:-23500]] }}} pattern="^\["><!-- this part checks the combo search and selective ops-->
|
||||
<$set name="filtertext" filter="[<searchTerms>regexp<pattern>]" value="[subfilter<searchTerms>]" emptyValue="[!is[system]search<searchTerms>]">
|
||||
<$set name="searchfilter" filter="[<selectiveOpsTid>get[text]match[yes]]"
|
||||
value="[subfilter<filtertext>!prefix[$:/temp/commander]]+[tag<workingTag>]" emptyValue="[subfilter<filtertext>!prefix[$:/temp/commander]]" >
|
||||
<small style="margin-left:17ch;"><i><$count filter="[subfilter<filtertext>!prefix[$:/temp/commander]!is[missing]]" /> matches </i></small>
|
||||
|
||||
<!-- Display search results and let selective operation -->
|
||||
<<commander-slider title:"$:/plugins/kookma/commander/search/selection" default:"open">>
|
||||
|
||||
<!-- Display operation UIs-->
|
||||
<<tabs "[all[shadows+tiddlers]tag[$:/tags/Commander]!has[draft.of]]" default:"$:/plugins/kookma/commander/tiddler/ui">>
|
||||
|
||||
</$set>
|
||||
</$set>
|
||||
<$vars>
|
||||
|
||||
---
|
||||
|
||||
<<commander-slider title:"$:/plugins/kookma/commander/log/ui">>
|
@ -1,5 +0,0 @@
|
||||
tags:
|
||||
title: $:/language/Buttons/Commander/Caption
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
commander
|
@ -1,5 +0,0 @@
|
||||
tags:
|
||||
title: $:/language/Buttons/Commander/Hint
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
Tiddler Commander
|
@ -1,22 +0,0 @@
|
||||
caption: {{$:/plugins/kookma/commander/images/file-alt}} {{$:/language/Buttons/Commander/Caption}}
|
||||
description: Open tiddler commander
|
||||
list-after: $:/core/ui/Buttons/advanced-search
|
||||
tags: $:/tags/PageControls
|
||||
title: $:/plugins/kookma/commander/buttons/pagecontrol
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\whitespace trim
|
||||
\define commander-button(class)
|
||||
<$button to="$:/Commander" tooltip={{$:/language/Buttons/Commander/Hint}} aria-label={{$:/language/Buttons/Commander/Caption}} class="""$(tv-config-toolbar-class)$ $class$""">
|
||||
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
|
||||
{{$:/plugins/kookma/commander/images/commander.svg}}
|
||||
</$list>
|
||||
<$list filter="[<tv-config-toolbar-text>match[yes]]">
|
||||
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Commander/Caption}}/></span>
|
||||
</$list>
|
||||
</$button>
|
||||
\end
|
||||
|
||||
<$list filter="[list[$:/StoryList]] +[field:title[$:/Commander]]" emptyMessage=<<commander-button>>>
|
||||
<<commander-button "tc-selected">>
|
||||
</$list>
|
@ -1,5 +0,0 @@
|
||||
tags:
|
||||
title: $:/plugins/kookma/commander/config/AutoFocus
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
yes
|
@ -1,5 +0,0 @@
|
||||
tags:
|
||||
title: $:/plugins/kookma/commander/config/commonfields
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
created creator modified modifier revision bag
|
@ -1,5 +0,0 @@
|
||||
tags:
|
||||
title: $:/plugins/kookma/commander/config/minlength
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
3
|
@ -1,10 +0,0 @@
|
||||
tags:
|
||||
title: $:/plugins/kookma/commander/config/relink
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define relink-plugin-notExisted() Update title in //tags// and //list// fields of other tiddlers
|
||||
<$checkbox tiddler="$:/config/RelinkOnRename" field="text" checked="yes" unchecked="no" default="no">
|
||||
<$list filter="[[$:/plugins/flibbles/relink]] +[has[title]]" emptyMessage=<<relink-plugin-notExisted>> >
|
||||
Use //Relink// to update title across all other tiddlers
|
||||
</$list>
|
||||
</$checkbox>
|
@ -1,8 +0,0 @@
|
||||
tags:
|
||||
title: $:/plugins/kookma/commander/config/systemfields
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
title text tags
|
||||
created modified craetor modifier
|
||||
type bag revision
|
||||
list caption
|
@ -1,23 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/field/macros/add
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define add-new-field-bulk(datafieldsTid:"")
|
||||
<$list filter="[subfilter<searchfilter>!is[missing]limit[1]]" variable=ignore><!--check if filter is empty -->
|
||||
<<create-log-tiddler "add-new-field-bulk">>
|
||||
<$vars datafieldsTid=<<__datafieldsTid__>> >
|
||||
<$list filter="[subfilter<searchfilter>]" variable="newTitle">
|
||||
<<add-bulk-fields>>
|
||||
<$wikify name=newFields text=<<getFieldsname>> >
|
||||
<$macrocall $name="log-add-single-operation" msg={{{[<newFields>addprefix[new fields:]addsuffix[added]]}}} tidItem=<<newTitle>> />
|
||||
</$wikify>
|
||||
</$list>
|
||||
</$vars>
|
||||
</$list>
|
||||
\end
|
||||
<!-- from TiddlyWiki 5.2.0, field name with mixed case is allowed -->
|
||||
\define getFieldsname()
|
||||
<$list filter="[<__datafieldsTid__>indexes[]prefix[fldn]]" variable=item>
|
||||
{{{ [<__datafieldsTid__>getindex<item>trim[]] }}}
|
||||
</$list>
|
||||
\end
|
@ -1,69 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/field/macros/bulkfields
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define numfilter() [range[1,$(flt)$]]
|
||||
\define id_fldName() fldn$(cnt)$
|
||||
\define id_fldValue() fldv$(cnt)$
|
||||
|
||||
<!-- from TiddlyWiki 5.2.0, field name with mixed case is allowed -->
|
||||
\define add-bulk-fields()
|
||||
<$set name="flt" tiddler=<<datafieldsTid>> field="counter" emptyValue="1"><!-- when the datafieldsTid is not exist, there is at least one field row -->
|
||||
<$list filter=<<numfilter>> variable="cnt">
|
||||
<$list filter="[<datafieldsTid>getindex<id_fldName>]" variable="newField">
|
||||
<$action-setfield $tiddler=<<newTitle>>
|
||||
$field={{{ [<newField>trim[]] }}}
|
||||
$value={{{ [<datafieldsTid>getindex<id_fldValue>] }}} />
|
||||
</$list>
|
||||
</$list>
|
||||
</$set>
|
||||
\end
|
||||
|
||||
\define getInputs()
|
||||
<$edit-text tiddler=<<datafieldsTid>> index=<<id_fldName>> tag=input default="" placeholder="field name" />
|
||||
<$edit-text tiddler=<<datafieldsTid>> index=<<id_fldValue>> tag=input default="" placeholder="field value"/>
|
||||
\end
|
||||
|
||||
\define add-reset()
|
||||
<$button>insert
|
||||
<$action-setfield $tiddler=<<datafieldsTid>> counter={{{[<datafieldsTid>get[counter]add[1]]~[[2]]}}}/>
|
||||
</$button>
|
||||
<$button>reset
|
||||
<$action-setfield $tiddler=<<datafieldsTid>> counter="1"/>
|
||||
<$action-setfield $tiddler=<<datafieldsTid>> text=""/>
|
||||
</$button>
|
||||
\end
|
||||
|
||||
\define create-field-inputbox()
|
||||
<$wikify name=flt text={{{ [<datafieldsTid>get[counter]]~[[1]] }}} >
|
||||
<$list filter=<<numfilter>> variable=cnt>
|
||||
|
||||
<<getInputs>>
|
||||
</$list>
|
||||
</$wikify>
|
||||
\end
|
||||
|
||||
\define add-more-fields-ui(datafieldsTid:"")
|
||||
<$vars datafieldsTid=<<__datafieldsTid__>> >
|
||||
<<add-reset>>
|
||||
<<create-field-inputbox>>
|
||||
</$vars>
|
||||
\end
|
||||
|
||||
\define add-more-fields-selective-ui(datafieldsTid:"", stateTiddler:"$:/state/commander/tiddler-addfields-status")
|
||||
<$checkbox
|
||||
tiddler=<<__stateTiddler__>>
|
||||
field="text"
|
||||
checked="addfields" unchecked="nofields"
|
||||
default="nofields" >
|
||||
Add fields
|
||||
</$checkbox>
|
||||
<$reveal type="match" state=<<__stateTiddler__>> text="addfields" default="nofields" >
|
||||
<$vars datafieldsTid=<<__datafieldsTid__>> >
|
||||
<<add-reset>>
|
||||
<div style="padding-left:88px;">
|
||||
<<create-field-inputbox>>
|
||||
</div>
|
||||
</$vars>
|
||||
</$reveal>
|
||||
\end
|
@ -1,35 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/field/macros/remove
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define remove-old-field-bulk(oldField:"")
|
||||
<$list filter="[subfilter<searchfilter>!is[missing]limit[1]]" variable=ignore><!--check if filter is empty -->
|
||||
<$list filter="[<__oldField__>!is[blank]]">
|
||||
<<create-log-tiddler "remove-old-field-bulk">>
|
||||
<$list filter="[subfilter<searchfilter>]+[!is[missing]]+[has:field[$oldField$]]">
|
||||
<$fieldmangler>
|
||||
<$action-sendmessage $message="tm-remove-field" $param=<<__oldField__>> />
|
||||
</$fieldmangler>
|
||||
<$macrocall $name="log-add-single-operation" msg="""old field `$oldField$` removed""" tidItem=<<currentTiddler>> />
|
||||
</$list>
|
||||
</$list>
|
||||
</$list>
|
||||
\end
|
||||
|
||||
\define set-field-value-bulk(fieldName:"Empty", fieldValue:"Empty")
|
||||
<$list filter="[subfilter<searchfilter>!is[missing]limit[1]]" variable=ignore><!--check if filter is empty -->
|
||||
<$list filter="[<__fieldName__>!is[blank]]" variable=null>
|
||||
<$list filter="[<__fieldValue__>!is[blank]]" variable=null>
|
||||
<<create-log-tiddler "set-field-value-create-bulk">>
|
||||
<$list filter="[subfilter<searchfilter>]-[$fieldName$[$fieldValue$]]">
|
||||
<$list filter="[<currentTiddler>has:field[$fieldName$]]" variable=ignore
|
||||
emptyMessage="""<$macrocall $name="log-add-single-operation" msg="//has not `$fieldName$` field. Operation ignored//" tidItem=<<currentTiddler>> />""" >
|
||||
<$action-setfield $field=<<__fieldName__>> $value=<<__fieldValue__>> />
|
||||
<$macrocall $name="log-add-single-operation" msg="""field `$fieldName$` got a value""" tidItem=<<currentTiddler>> />
|
||||
</$list>
|
||||
</$list>
|
||||
</$list>
|
||||
</$list>
|
||||
</$list>
|
||||
\end
|
||||
|
@ -1,23 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/field/macros/rename
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define rename-field-bulk(oldField:"", newField:"")
|
||||
<$list filter="[subfilter<searchfilter>!is[missing]limit[1]]" variable=ignore>
|
||||
<$list filter="[<__oldField__>!is[blank]]" variable=null>
|
||||
<$list filter="[<__newField__>!is[blank]]" variable=null>
|
||||
<<create-log-tiddler "rename-field-bulk">>
|
||||
<$list filter="[subfilter<searchfilter>]">
|
||||
<$list filter="[<currentTiddler>has:field[$oldField$]]" variable=ignore
|
||||
emptyMessage="""<$macrocall $name="log-add-single-operation" msg="//has not field `$oldField$`. Operation ignored.//" tidItem=<<currentTiddler>> /> """>
|
||||
<$set name=oldValue tiddler=<<currentTiddler>> field=<<__oldField__>> >
|
||||
<$action-setfield $tiddler=<<currentTiddler>> $field=<<__newField__>> $value=<<oldValue>>/>
|
||||
</$set>
|
||||
<$action-deletefield $tiddler=<<currentTiddler>> $field=<<__oldField__>> />
|
||||
<$macrocall $name="log-add-single-operation" msg="""fied `$oldField$` renamed to `$newField$`""" tidItem=<<currentTiddler>> />
|
||||
</$list>
|
||||
</$list>
|
||||
</$list>
|
||||
</$list>
|
||||
</$list>
|
||||
\end
|
@ -1,21 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/field/macros/set
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define set-field-value-bulk(fieldName:"", fieldValue:"")
|
||||
<$list filter="[subfilter<searchfilter>!is[missing]limit[1]]" variable=ignore><!--check if filter is empty -->
|
||||
<$list filter="[<__fieldName__>!is[blank]]" variable=null>
|
||||
<$list filter="[<__fieldValue__>!is[blank]]" variable=null>
|
||||
<<create-log-tiddler "set-field-value-create-bulk">>
|
||||
<$list filter="[subfilter<searchfilter>]-[$fieldName$[$fieldValue$]]">
|
||||
<$list filter="[<currentTiddler>has:field[$fieldName$]]" variable=ignore
|
||||
emptyMessage="""<$macrocall $name="log-add-single-operation" msg="//has not `$fieldName$` field. Operation ignored//" tidItem=<<currentTiddler>> />""" >
|
||||
<$action-setfield $field=<<__fieldName__>> $value=<<__fieldValue__>> />
|
||||
<$macrocall $name="log-add-single-operation" msg="""field `$fieldName$` got a value""" tidItem=<<currentTiddler>> />
|
||||
</$list>
|
||||
</$list>
|
||||
</$list>
|
||||
</$list>
|
||||
</$list>
|
||||
\end
|
||||
|
@ -1,12 +0,0 @@
|
||||
caption: Field
|
||||
list-after: $:/plugins/kookma/commander/tag/ui
|
||||
tags: $:/tags/Commander
|
||||
title: $:/plugins/kookma/commander/field/ui
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<<tabs
|
||||
tabsList:"[all[shadows+tiddlers]tag[$:/tags/Commander/FieldOps]!has[draft.of]]"
|
||||
default:"$:/plugins/kookma/commander/field/uicomp/add-fields"
|
||||
class:"tc-vertical cmd-tab-colorful cmd-tab-wd"
|
||||
>>
|
||||
|
@ -1,15 +0,0 @@
|
||||
caption: Add fields
|
||||
tags: $:/tags/Commander/FieldOps
|
||||
title: $:/plugins/kookma/commander/field/uicomp/add-fields
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<!-- create the interface-->
|
||||
<$macrocall $name="add-more-fields-ui" datafieldsTid="$:/temp/commander/tiddler/datafields/addfield" />
|
||||
|
||||
|
||||
<!-- call action macro -->
|
||||
<$button class="cmd-btn cmd-btn-wd"> Add new fields
|
||||
<$macrocall $name="add-new-field-bulk"
|
||||
datafieldsTid="$:/temp/commander/tiddler/datafields/addfield" />
|
||||
</$button><br>
|
||||
,,Note: This will overwrite the existing fileds!,,
|
@ -1,14 +0,0 @@
|
||||
caption: Remove fields
|
||||
list-after: $:/plugins/kookma/commander/field/uicomp/add-fields
|
||||
tags: $:/tags/Commander/FieldOps
|
||||
title: $:/plugins/kookma/commander/field/uicomp/remove-fields
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<label class="kk-cmd-label">Old field</label><$select class="cmd-select-wd" tiddler="$:/temp/commander/field-remove" default="">
|
||||
<$list filter="[subfilter<searchfilter>fields[]sort[]] -title -tags" >
|
||||
<option><$view field="title"/></option>
|
||||
</$list>
|
||||
</$select>
|
||||
<$button class="cmd-btn cmd-btn-wd"> Remove old field
|
||||
<$macrocall $name="remove-old-field-bulk" oldField={{$:/temp/commander/field-remove}} />
|
||||
</$button>
|
@ -1,28 +0,0 @@
|
||||
caption: Rename fields
|
||||
list-after: $:/plugins/kookma/commander/field/uicomp/remove-fields
|
||||
tags: $:/tags/Commander/FieldOps
|
||||
title: $:/plugins/kookma/commander/field/uicomp/rename-fields
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<label class="kk-cmd-label">Old field</label><$select class="cmd-select-wd"
|
||||
tiddler="$:/temp/commander/rename-field/old" default="" >
|
||||
<$list filter="[subfilter<searchfilter>fields[]sort[]] -[<systemFieldsTid>get[text]split[ ]]" >
|
||||
<option><$view field="title"/></option>
|
||||
</$list>
|
||||
</$select>
|
||||
|
||||
<label class="kk-cmd-label">New field</label><$edit-text
|
||||
tiddler="$:/temp/commander/rename-field/new"
|
||||
tag="input"
|
||||
default=""
|
||||
class="cmd-txt-area"
|
||||
placeholder=" new field name"
|
||||
/>
|
||||
<$button class="cmd-btn cmd-btn-wd"> Rename field
|
||||
<$macrocall $name="rename-field-bulk"
|
||||
oldField={{$:/temp/commander/rename-field/old}}
|
||||
newField={{{ [[$:/temp/commander/rename-field/new]get[text]lowercase[]trim[]split[ ]join[_]] }}} />
|
||||
</$button>
|
||||
|
||||
<!-- new field name is checked to be lowecase and leading and trailing spaces are removed and space between words replaced by underscore (_).
|
||||
-->
|
@ -1,24 +0,0 @@
|
||||
caption: Set field value
|
||||
list-after: $:/plugins/kookma/commander/field/uicomp/rename-fields
|
||||
tags: $:/tags/Commander/FieldOps
|
||||
title: $:/plugins/kookma/commander/field/uicomp/set-field-value
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<label class="kk-cmd-label">Field name</label><$select class="cmd-select-wd"
|
||||
tiddler="$:/temp/commander/field-name" default="" >
|
||||
<$list filter="[subfilter<searchfilter>fields[]sort[]] -[<systemFieldsTid>get[text]split[ ]]" >
|
||||
<option><$view field="title"/></option>
|
||||
</$list>
|
||||
</$select>
|
||||
|
||||
<label class="kk-cmd-label">Field value</label><$edit-text
|
||||
tiddler="$:/temp/commander/field-value"
|
||||
tag="input" default=""
|
||||
class="cmd-txt-area" placeholder=" field value"/>
|
||||
<$button class="cmd-btn cmd-btn-wd"> Set field value
|
||||
<$macrocall
|
||||
$name="set-field-value-bulk"
|
||||
fieldName={{$:/temp/commander/field-name}}
|
||||
fieldValue={{$:/temp/commander/field-value}}
|
||||
/>
|
||||
</$button>
|
@ -1,5 +0,0 @@
|
||||
description: {{$:/language/Filters/Drafts}}
|
||||
filter: [has[draft.of]sort[title]]
|
||||
tags: $:/tags/Commander/Filter
|
||||
title: $:/plugins/kookma/commander/filters/Drafts
|
||||
type: text/vnd.tiddlywiki
|
@ -1,5 +0,0 @@
|
||||
description: {{$:/language/Filters/Missing}}
|
||||
filter: [all[missing]sort[title]]
|
||||
tags: $:/tags/Commander/Filter
|
||||
title: $:/plugins/kookma/commander/filters/Missing
|
||||
type: text/vnd.tiddlywiki
|
@ -1,5 +0,0 @@
|
||||
description: {{$:/language/Filters/Orphans}}
|
||||
filter: [all[orphans]sort[title]]
|
||||
tags: $:/tags/Commander/Filter
|
||||
title: $:/plugins/kookma/commander/filters/Orphans
|
||||
type: text/vnd.tiddlywiki
|
@ -1,5 +0,0 @@
|
||||
description: {{$:/language/Filters/RecentSystemTiddlers}}
|
||||
filter: [has[modified]!sort[modified]limit[50]]
|
||||
tags: $:/tags/Commander/Filter
|
||||
title: $:/plugins/kookma/commander/filters/RecentSystemTiddlers
|
||||
type: text/vnd.tiddlywiki
|
@ -1,5 +0,0 @@
|
||||
description: {{$:/language/Filters/RecentTiddlers}}
|
||||
filter: [!is[system]has[modified]!sort[modified]limit[50]]
|
||||
tags: $:/tags/Commander/Filter
|
||||
title: $:/plugins/kookma/commander/filters/RecentTiddlers
|
||||
type: text/vnd.tiddlywiki
|
@ -1,5 +0,0 @@
|
||||
description: Tiddlers modified since the wiki was loaded
|
||||
filter: [haschanged[]]
|
||||
tags: $:/tags/Commander/Filter
|
||||
title: $:/plugins/kookma/commander/filters/SessionTiddlers
|
||||
type: text/vnd.tiddlywiki
|
@ -1,5 +0,0 @@
|
||||
description: {{$:/language/Filters/StoryList}}
|
||||
filter: [list[$:/StoryList]] -$:/AdvancedSearch
|
||||
tags: $:/tags/Commander/Filter
|
||||
title: $:/plugins/kookma/commander/filters/StoryList
|
||||
type: text/vnd.tiddlywiki
|
@ -1,5 +0,0 @@
|
||||
description: General filter
|
||||
filter: [all[shadows+tiddlers]search[your keywrods]]
|
||||
tags: $:/tags/Commander/Filter
|
||||
title: $:/plugins/kookma/commander/filters/geneal
|
||||
type: text/vnd.tiddlywiki
|
@ -1,5 +0,0 @@
|
||||
description: Temporary and state tiddlers
|
||||
filter: [prefix[$:/temp]] [prefix[$:/state]]
|
||||
tags: $:/tags/Commander/Filter
|
||||
title: $:/plugins/kookma/commander/filters/temp-and-state
|
||||
type: text/vnd.tiddlywiki
|
@ -1,13 +0,0 @@
|
||||
caption: Help
|
||||
icon: $:/core/images/help
|
||||
list-after: $:/plugins/kookma/commander/setting/ui
|
||||
tags: $:/tags/Commander
|
||||
title: $:/plugins/kookma/commander/help/ui
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<<tabs
|
||||
tabsList:"[all[shadows+tiddlers]tag[$:/tags/Commander/Help]!has[draft.of]]"
|
||||
default:"$:/plugins/kookma/commander/help/uicomp/quick-tutorial"
|
||||
class:"tc-vertical cmd-tab-colorful cmd-tab-wd">>
|
||||
|
||||
|
@ -1,30 +0,0 @@
|
||||
caption: Quick tutorial
|
||||
tags: $:/tags/Commander/Help
|
||||
title: $:/plugins/kookma/commander/help/uicomp/quick-tutorial
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
# Use ''Combo search'' to list possible tiddlers
|
||||
#* example: `concept` performs a standard search and find all matches in title, text, and tags
|
||||
#* example: `[tag[xx]]` finds all tiddlers tagged with //xx//
|
||||
#* example: `[prefix[tt]` finds all tiddlers have title started with //tt//
|
||||
#* example: `[has[draft.of]sort[title]]` finds all draft tiddlers
|
||||
|
||||
# Use ''Select tiddlers'' for the resulting list to identify which specific tiddlers to do a batch operation on
|
||||
#* this step lets you to do a batch operation on selected tiddlers NOT all items by ''Combo search''!
|
||||
#* it is possible to select/deselect all tiddlers from ''Combo search'' result at once! Note that, by default all tiddlers are considered for bulk operation until selective operation is activated!
|
||||
# From ''Batch operations tabs'' select the batch operation you wish to perform on selected tiddlers
|
||||
#* example: title, tag, and field operations
|
||||
#* example: Snr operation
|
||||
#* Inspect tab can be used to inspect tiddlers before or after performing operations
|
||||
|
||||
* Notes:
|
||||
** Multiple batch operations can be done on the same set (unless you change something in the search criteria)
|
||||
** Sometimes it is useful to use an intermediate batch to help, like tag tiddlers with a "working" tag, using multiple searches, then then use the "working" tag to apply a batch operation to
|
||||
|
||||
<div class="commander-alert">''Note'': For good operation a tiddler width of 800px is recommended. You can also use //Sidebar layout// as `Fluid story`.</div>
|
||||
|
||||
|
||||
For detailed docummention go to [[Demo page|https://kookma.github.io/TW-Commander/]]
|
||||
|
||||
!!! Footenote
|
||||
# [[Use filter expression|https://tiddlywiki.com/prerelease/#Filters:Filters%20%5B%5BFilter%20Expression%5D%5D%20%5B%5BFilter%20Syntax%5D%5D%20%5B%5BFilter%20Operators%5D%5D%20%5B%5BFilter%20Parameter%5D%5D%20%5B%5BFilter%20Run%5D%5D%20%5B%5BFilter%20Step%5D%5D%20%5B%5BFilter%20Whitespace%5D%5D]]
|
@ -1,53 +0,0 @@
|
||||
caption: Regular expressions
|
||||
list-after: $:/plugins/kookma/commander/help/uicomp/snr
|
||||
tags: $:/tags/Commander/Help
|
||||
title: $:/plugins/kookma/commander/help/uicomp/regular-expression
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
!! Regular Expressions Quick Reference
|
||||
|
||||
|''FLAGS'' |<|<|h
|
||||
| i |ignore case|case insensitive matching|
|
||||
| |whole words|match strings of a-z, 0-9 and _|
|
||||
| g |global|field start=^, field end=$, all matches|
|
||||
| m |multi-line|line start=^, line end=$, first match|
|
||||
| |first match|field start=^, field end=$, first match|
|
||||
|''MATCH'' |<|<|h
|
||||
|''Anchors''|<|<|
|
||||
| ^ |start of scope|see Flags, match is zero length|
|
||||
| $ |end of scope|see Flags, match is zero length|
|
||||
| \b |word boundary|anchor to edge of word, zero length|
|
||||
| \B |not word boundary|anchor inside word, zero length|
|
||||
|''Character Classes''|<|<|
|
||||
| [c] |class of characters|any one matches, e.g. [abc123]|
|
||||
| [^c] |negated class of characters|any one doesn't match, e.g. [^abc123]|
|
||||
|''Shorthand Character Classes''|<|<|
|
||||
| . |any character except newline|same as [^\n]|
|
||||
| \d |decimal|same as [0-9]|
|
||||
| \D |not decimal|same as [^0-9]|
|
||||
| \s |white-space|same as [\ \t\n]|
|
||||
| \S |not white-space|same as [^\ \t\n]|
|
||||
| \t |tab|same as [\t]|
|
||||
| \n |newline|same as [\n]|
|
||||
| \w |word character|same as [a-zA-Z0-9_]|
|
||||
| \W |not word character|same as [^a-zA-Z0-9_]|
|
||||
|''Capturing Groups''|<|<|
|
||||
| (match) |match placed in variable $x|can be used in Replace|
|
||||
| (\x) |repeats match pattern of $x|can be used in Replace|
|
||||
|''Quantifiers''|<|<|
|
||||
| ? |single match|match 0 or 1 time|
|
||||
| * |greedy match 0+|match 0 or as many times as possible|
|
||||
| *? |lazy match 0+|match 0 or as few times as possible|
|
||||
| + |greedy match 1+|match 1 or as many times as possible|
|
||||
| +? |lazy match 1+|match 1 or as few times as possible|
|
||||
| {x} |match x times|match x times|
|
||||
| {x,y} |match x to y times|match x times to exactly y times|
|
||||
| {x,} |match x or more times|match x times or as many as possible|
|
||||
|''Escapes''|<|<|
|
||||
| \ |escape special characters|add to \ [ ] ( ) { } ^ $ . ? * + for literals|
|
||||
|''REPLACE'' |<|<|h
|
||||
| $& |return the full match|<|
|
||||
| $x |return $x where x is the numeric index of a Capturing Group|<|
|
||||
|''NOTE'' |<|<|h
|
||||
|This Reference supports most ordinary uses of regular expressions.<br> For advanced options: [[MDN Reference|https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Using_simple_patterns]]; examples: [[regular-expressions.info|https://www.regular-expressions.info/tutorial.html]].|<|<|
|
||||
|
@ -1,24 +0,0 @@
|
||||
caption: Relink on rename
|
||||
list-after: $:/plugins/kookma/commander/help/uicomp/regular-expression
|
||||
tags: $:/tags/Commander/Help
|
||||
title: $:/plugins/kookma/commander/help/uicomp/relink
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
!! Relink on rename
|
||||
When Tiddler Commander is used to rename bulk tiddlers in operation like
|
||||
|
||||
* Title operation
|
||||
** add/remove prefix
|
||||
** add/remove suffix
|
||||
** remove chars from the begining or end of title
|
||||
* ~SnR
|
||||
** Search and replace in tiddlers title
|
||||
|
||||
It is possible to update all links to title. This includes //tags// and //list//. If [[Relink|https://flibbles.github.io/tw5-relink/]] plugin is installed, then not only title will be updated in //tags// and //list// field, but also in all filters, transclusions, text field and evrywhere.
|
||||
|
||||
<div class="commander-alert"> ''Note'': Relink does not update all forms of title e.g those created from different segments, but it will update any occurances</div>
|
||||
|
||||
|
||||
!! How to integrate with ''Relink''?
|
||||
|
||||
Simply install the [[Relink|https://flibbles.github.io/tw5-relink/]] plugin and it will be appeared as an option when Tiddler Commander title operations including ~SnR are performed!
|
@ -1,40 +0,0 @@
|
||||
caption: Search-n-Replace
|
||||
list-after: $:/plugins/kookma/commander/help/uicomp/quick-tutorial
|
||||
tags: $:/tags/Commander/Help
|
||||
title: $:/plugins/kookma/commander/help/uicomp/snr
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
!! Search and replace using Snr
|
||||
Snr stands for search and replace, is a powerful tool uses regular expression for searching all fields and lets replace chars, words, phrases with new values.
|
||||
|
||||
!! How to use
|
||||
* Enter a search filter or keywords in ''Combo search'' box like `[tag[myTag]]` or `concept`
|
||||
* Use ''Select tiddlers'' for the resulting list to identify which specific tiddlers to do a Snr operation on
|
||||
** If selective operation is unchecked, all tiddlers from step one will be included in Snr operation.
|
||||
* From ''Tiddler title'' drop down menu select a tiddler
|
||||
* From ''Field name'' drop down menu select a tiddler field like `text`
|
||||
** all fileds even `title` can be selected
|
||||
* In the ''Search text'' type the search term for example `this`
|
||||
* In the ''Replace with'' type the term you want to replace with like `that`
|
||||
* Check the ''Differences'' and if you are satisfied with the result, press the `Replace?` button
|
||||
* You can press `Replace all?` if you want to search and replace in all selected tiddlers
|
||||
|
||||
;Remarks
|
||||
: 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!
|
||||
|
||||
<$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>
|
||||
|
||||
!! Special characters
|
||||
<<<
|
||||
As `SNR` uses ''regexp'' pattern to make search and replace, when special characters are used in the ''Search text'' box, they shall be escaped among them are `*`, `+`, `[]`, `?` ...
|
||||
To use these characters do like below
|
||||
|
||||
```
|
||||
\[ \] \( \) \{ \} \. \* \+ \? \^ \$ \\ \|
|
||||
```
|
||||
<<<
|
||||
|
||||
!! Warning
|
||||
<<<
|
||||
* SNR replace the contents of tiddlers.<br> ''//The action can not be undone//''. So always make a backup before performing any replace action
|
||||
<<<
|
@ -1,20 +0,0 @@
|
||||
caption: Warning
|
||||
list-after: $:/plugins/kookma/commander/help/uicomp/relink
|
||||
tags: $:/tags/Commander/Help
|
||||
title: $:/plugins/kookma/commander/help/uicomp/warning
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
;Note i
|
||||
:Tiddler Commander is a very powerful tool, it can change any field in any tiddler.// Make sure what you are doing//!
|
||||
|
||||
;Note ii
|
||||
:Tiddler Commander uses two steps tiddler selection. It uses a combo search box to screen (using standard or filter search) possible tiddlers and then uses a selective list of tiddlers from first step for batch operation!
|
||||
:# If selective operation is unchecked, then all tiddlers from step one are used for batch operation
|
||||
:# If selective operation is checked, then user has to manually select among tiddlers, and the selected ones are used for batch operation
|
||||
|
||||
;Note iii
|
||||
://Commander do not perform operation on shadow tiddlers//, unless they are overriden. Because shadow tiddlers aren’t stored as ''real'' tiddlers. They are intentionally excluded from most operations by default so that they don’t clutter filters made by users unless explicitly required.
|
||||
|
||||
<div class="commander-alert">''Warning''
|
||||
Before using Tiddler commander for bulk operation on your own valuable, irreplaceable data, ''backup them''.
|
||||
</div>
|
@ -1,10 +0,0 @@
|
||||
tags:
|
||||
title: $:/plugins/kookma/commander/history
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
Full change log https://kookma.github.io/TW-Commander/#ChangeLog
|
||||
|
||||
* ''2.1.3'' -- 2021.10.24 -- commander icon fixed
|
||||
* ''2.1.2'' -- 2021.01.02 -- Saq Imtiaz release
|
||||
* ''2.1.0'' -- 2020.03.25 -- stable release
|
||||
* ''0.1.0'' -- 2019.02.12 -- mature public release
|
@ -1,5 +0,0 @@
|
||||
caption: file-alt (Regular)
|
||||
title: $:/plugins/kookma/commander/images/commander.svg
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<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>
|
@ -1,120 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/inspect/comp/edit-fileds
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define lingo-base() $:/language/EditTemplate/
|
||||
\define config-title()
|
||||
$:/config/EditTemplateFields/Visibility/$(currentField)$
|
||||
\end
|
||||
|
||||
\define config-filter()
|
||||
[[hide]] -[title{$(config-title)$}]
|
||||
\end
|
||||
|
||||
\define new-field()
|
||||
<$vars name={{$:/temp/newfieldname}}>
|
||||
<$reveal type="nomatch" text="" default=<<name>>>
|
||||
<$button class="cmd-btn">
|
||||
<$action-sendmessage $message="tm-add-field"
|
||||
$name=<<name>>
|
||||
$value={{$:/temp/newfieldvalue}}/>
|
||||
<$action-deletetiddler $tiddler="$:/temp/newfieldname"/>
|
||||
<$action-deletetiddler $tiddler="$:/temp/newfieldvalue"/>
|
||||
<<lingo Fields/Add/Button>>
|
||||
</$button>
|
||||
</$reveal>
|
||||
<$reveal type="match" text="" default=<<name>>>
|
||||
<$button class="cmd-btn">
|
||||
<<lingo Fields/Add/Button>>
|
||||
</$button>
|
||||
</$reveal>
|
||||
</$vars>
|
||||
\end
|
||||
|
||||
\define compInspect-edit-fileds(commonFields:"")
|
||||
|
||||
<div class="tc-edit-fields">
|
||||
<table class="tc-edit-fields">
|
||||
<tbody>
|
||||
<$list filter="[all[current]fields[]] +[sort[title]]" variable="currentField">
|
||||
<$list filter=<<config-filter>> variable="temp">
|
||||
<tr class="tc-edit-field">
|
||||
<td class="tc-edit-field-name">
|
||||
<$text text=<<currentField>>/>:</td>
|
||||
<td class="tc-edit-field-value">
|
||||
<$edit-text tiddler=<<currentTiddler>> field=<<currentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/>
|
||||
</td>
|
||||
<td class="tc-edit-field-remove">
|
||||
<$button class="tc-btn-invisible" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>
|
||||
<$action-deletefield $field=<<currentField>>/>
|
||||
{{$:/core/images/delete-button}}
|
||||
</$button>
|
||||
</td>
|
||||
</tr>
|
||||
</$list>
|
||||
</$list>
|
||||
|
||||
|
||||
<$list filter="created creator modified modifier -[enlist<__commonFields__>]" variable="currentField">
|
||||
<tr class="tc-edit-field">
|
||||
<td class="tc-edit-field-name">
|
||||
<$text text=<<currentField>>/>:</td>
|
||||
<td class="tc-edit-field-value">
|
||||
<$edit-text tiddler=<<currentTiddler>> field=<<currentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/>
|
||||
</td>
|
||||
<td class="tc-edit-field-remove">
|
||||
<$button class="tc-btn-invisible" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>
|
||||
<$action-deletefield $field=<<currentField>>/>
|
||||
{{$:/core/images/delete-button}}
|
||||
</$button>
|
||||
</td>
|
||||
</tr>
|
||||
</$list>
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<$fieldmangler>
|
||||
<div class="tc-edit-field-add">
|
||||
<em class="tc-edit">
|
||||
<<lingo Fields/Add/Prompt>>
|
||||
</em>
|
||||
<span class="tc-edit-field-add-name">
|
||||
<$edit-text tiddler="$:/temp/newfieldname" tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} focusPopup=<<qualify "$:/state/popup/field-dropdown">> class="tc-edit-texteditor tc-popup-handle"/>
|
||||
</span>
|
||||
<$button popup=<<qualify "$:/state/popup/field-dropdown">> class="tc-btn-invisible tc-btn-dropdown" tooltip={{$:/language/EditTemplate/Field/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Field/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button>
|
||||
<$reveal state=<<qualify "$:/state/popup/field-dropdown">> type="nomatch" text="" default="">
|
||||
<div class="tc-block-dropdown tc-edit-type-dropdown">
|
||||
<$linkcatcher to="$:/temp/newfieldname">
|
||||
<div class="tc-dropdown-item">
|
||||
<<lingo Fields/Add/Dropdown/User>>
|
||||
</div>
|
||||
<$list filter="[!is[shadow]!is[system]fields[]search:title{$:/temp/newfieldname}sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type" variable="currentField">
|
||||
<$link to=<<currentField>>>
|
||||
<<currentField>>
|
||||
</$link>
|
||||
</$list>
|
||||
<div class="tc-dropdown-item">
|
||||
<<lingo Fields/Add/Dropdown/System>>
|
||||
</div>
|
||||
<$list filter="[fields[]search:title{$:/temp/newfieldname}sort[]] -[!is[shadow]!is[system]fields[]]" variable="currentField">
|
||||
<$link to=<<currentField>>>
|
||||
<<currentField>>
|
||||
</$link>
|
||||
</$list>
|
||||
</$linkcatcher>
|
||||
</div>
|
||||
</$reveal>
|
||||
<span class="tc-edit-field-add-value">
|
||||
<$edit-text tiddler="$:/temp/newfieldvalue" tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class="tc-edit-texteditor"/>
|
||||
</span>
|
||||
<span class="tc-edit-field-add-button">
|
||||
<$macrocall $name="new-field"/>
|
||||
</span>
|
||||
</div>
|
||||
</$fieldmangler>
|
||||
\end
|
@ -1,29 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/inspect/comp/edit-preview
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define compInspect-edit-preview(tiddler, commonFields:"")
|
||||
<div class="tc-edit-fields">
|
||||
<table class="tc-edit-fields">
|
||||
<tbody>
|
||||
<tr class="tc-edit-field"><td class="tc-edit-field-name">title:</td>
|
||||
<td class="tc-edit-field-value"><$link to=<<__tiddler__>> ><$text text=<<__tiddler__>> /></$link></td>
|
||||
</tr>
|
||||
<tr class="tc-edit-field"><td class="tc-edit-field-name">tags:</td>
|
||||
<td class="tc-edit-field-value">{{$tiddler$||$:/core/ui/EditTemplate/tags}}</td>
|
||||
</tr>
|
||||
<tr class="tc-edit-field"><td class="tc-edit-field-name">text:</td>
|
||||
<td class="tc-edit-field-value"><$macrocall $name=compInspect-get-field tiddler=<<__tiddler__>> field="text" tag="textarea" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<$tiddler tiddler=<<__tiddler__>> >
|
||||
<$macrocall $name="compInspect-edit-fileds" commonFields=<<__commonFields__>> />
|
||||
</$tiddler>
|
||||
\end
|
||||
|
||||
\define compInspect-get-field(tiddler, field, tag:"input")
|
||||
<$edit-text class="tc-edit-texteditor" tiddler=<<__tiddler__>> field=<<__field__>> tag=<<__tag__>> default="" placeholder={{$:/language/EditTemplate/Body/Placeholder}}/>
|
||||
\end
|
@ -1,40 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/inspect/comp/main
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define compInspect(filter, stateTiddler:"thisTiddler")
|
||||
<$set name="state"
|
||||
value={{{ [[$:/state/compInspect/]addsuffix<__stateTiddler__>] }}} >
|
||||
<$vars
|
||||
slStateTid={{{ [<state>addsuffix[/]addsuffix[selectState-tiddler]] }}}
|
||||
rvStateTid={{{ [<state>addsuffix[/]addsuffix[revealState-tiddler]] }}}
|
||||
chStateTid={{{ [<state>addsuffix[/]addsuffix[checkboxState-tiddler]] }}} >
|
||||
|
||||
Select tiddler <$macrocall $name=compSelect filter=<<__filter__>> stateTiddler=<<slStateTid>> />
|
||||
|
||||
<$macrocall $name="check-common-fields" stateTiddler=<<chStateTid>> />
|
||||
|
||||
<$reveal stateTitle=<<rvStateTid>> type="nomatch" text="edit">
|
||||
<$button class="tc-btn-invisible" setTitle=<<rvStateTid>> setTo="edit" tooltip="edit tiddler">{{$:/core/images/edit-button}}</$button>
|
||||
<$macrocall $name=compInspect-show-preview tiddler={{{ [<slStateTid>get[text]]+[subfilter<__filter__>] }}} commonFields={{{ [<chStateTid>get[text]] }}}/>
|
||||
</$reveal>
|
||||
<$reveal stateTitle=<<rvStateTid>> type="match" text="edit">
|
||||
<$button class="tc-btn-invisible" setTitle=<<rvStateTid>> setTo="" tooltip="confirm changes">{{$:/core/images/done-button}}</$button>
|
||||
<$macrocall $name=compInspect-edit-preview tiddler={{{ [<slStateTid>get[text]]+[subfilter<__filter__>] }}} commonFields={{{ [<chStateTid>get[text]] }}}/>
|
||||
</$reveal>
|
||||
|
||||
</$vars>
|
||||
</$set>
|
||||
\end
|
||||
|
||||
\define check-common-fields(stateTiddler)
|
||||
<$vars commonFields={{{[<commonFieldsTid>get[text]]}}}>
|
||||
<$checkbox
|
||||
tiddler=<<__stateTiddler__>>
|
||||
field="text"
|
||||
checked=<<commonFields>>
|
||||
unchecked=""
|
||||
default=""
|
||||
> Exclude common fields?</$checkbox>
|
||||
</$vars>
|
||||
\end
|
@ -1,34 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/inspect/comp/select
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define compSelect(filter:"", stateTiddler:"", default:"", class:"", showButtons:"show")
|
||||
<$select tiddler=<<__stateTiddler__>> default=<<__default__>> class=<<__class__>> >
|
||||
<option value="">None</option>
|
||||
<$list filter=<<__filter__>> variable=item>
|
||||
<option value=<<item>>><$text text=<<item>> /></option>
|
||||
</$list>
|
||||
</$select>
|
||||
<$reveal type="match" text="show" default=<<__showButtons__>> >
|
||||
<$vars myfilter=<<__filter__>> mystateTiddler=<<__stateTiddler__>> myitem={{{ [<__stateTiddler__>get[text]] }}} >
|
||||
<$button actions=<<cs-prev-item>> class="cmd-btn"> prev </$button>
|
||||
<$button actions=<<cs-next-item>> class="cmd-btn"> next </$button>
|
||||
</$vars>
|
||||
</$reveal>
|
||||
\end
|
||||
|
||||
\define cs-prev-item()
|
||||
<$list filter="[subfilter<myfilter>] +[before<myitem>]" variable="prev-item" >
|
||||
<$action-setfield $tiddler=<<mystateTiddler>> text=<<prev-item>> />
|
||||
</$list>
|
||||
\end
|
||||
|
||||
\define cs-next-item()
|
||||
<$list filter="[subfilter<myfilter>] +[after<myitem>]" variable="next-item" >
|
||||
<$action-setfield $tiddler=<<mystateTiddler>> text=<<next-item>> />
|
||||
</$list>
|
||||
\end
|
||||
|
||||
<!-- used by
|
||||
- $:/plugins/kookma/commander/compInspect/main
|
||||
-->
|
@ -1,31 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/inspect/comp/show-preview
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define compInspect-show-preview(tiddler, commonFields:"")
|
||||
<$vars mainFields="title tags text">
|
||||
<table class="cmd-ci-table">
|
||||
<tr><td class="leftcol">title</td>
|
||||
<td class="rightcol"><$link to=<<__tiddler__>> ><$text text=<<__tiddler__>> /></$link></td>
|
||||
</tr>
|
||||
|
||||
<tr><td class="leftcol">tags</td>
|
||||
<td style="padding:3px;"><$macrocall $name=showTags tiddler=<<__tiddler__>> /></td>
|
||||
</tr>
|
||||
<tr><td class="leftcol">text</td>
|
||||
<td><$transclude tiddler=<<__tiddler__>> field="text" mode="block"/></td>
|
||||
</tr>
|
||||
<$list filter="[<__tiddler__>fields[]] -[enlist<mainFields>] -[enlist<__commonFields__>]" variable="otherFld">
|
||||
<tr><td class="leftcol"><<otherFld>></td>
|
||||
<td class="rightcol"><$transclude tiddler=<<__tiddler__>> field=<<otherFld>> mode="inline"/></td>
|
||||
</tr>
|
||||
</$list>
|
||||
</table>
|
||||
</$vars>
|
||||
\end
|
||||
|
||||
\define showTags(tiddler)
|
||||
<$list filter="[<__tiddler__>tags[]]" variable=tagItem >
|
||||
<$macrocall $name=tag tag=<<tagItem>> />
|
||||
</$list>
|
||||
\end
|
@ -1,10 +0,0 @@
|
||||
caption: Inspect
|
||||
list-after: $:/plugins/kookma/commander/field/ui
|
||||
tags: $:/tags/Commander
|
||||
title: $:/plugins/kookma/commander/inspect/ui
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<<tabs
|
||||
tabsList:"[all[shadows+tiddlers]tag[$:/tags/Commander/InspectOps]!has[draft.of]]"
|
||||
default:"$:/plugins/kookma/commander/inspect/uicomp/Inspection"
|
||||
class:"tc-vertical cmd-tab-wd">>
|
@ -1,10 +0,0 @@
|
||||
caption: Inspect
|
||||
tags: $:/tags/Commander/InspectOps
|
||||
title: $:/plugins/kookma/commander/inspect/uicomp/Inspection
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<$macrocall
|
||||
$name=compInspect
|
||||
filter=<<searchfilter>>
|
||||
stateTiddler="commander"
|
||||
/>
|
@ -1,15 +0,0 @@
|
||||
tags:
|
||||
title: $:/plugins/kookma/commander/license
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
Distributed under an MIT license.
|
||||
|
||||
Copyright (c) 2018-2020 [[Mohammad Rahmani|https://github.com/kookma]]
|
||||
|
||||
<<<
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
<<<
|
@ -1,30 +0,0 @@
|
||||
caption: Log status
|
||||
tags:
|
||||
title: $:/plugins/kookma/commander/log/ui
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<div class="commander-alert" style="padding:5px;font-size:0.90em;">
|
||||
<$button class="tc-btn-invisible tc-tiddlylink" actions=<<delete-all-log-tiddlers>>>Clear log</$button>
|
||||
<$set name="resultCount" value="""<$count filter="[tag[$:/tags/Commander/LogOps]]" />""">
|
||||
<div class="tc-search-results">
|
||||
<span class="kk-commander-log-note">Recent number of operations: <<resultCount>></span><br>
|
||||
<$list filter="[tag[$:/tags/Commander/LogOps]] +[!sort[created]]" variable="logTid">
|
||||
<b><$view tiddler=<<logTid>> field="created" format="date" template="YYYY-0MM-0DD 0hh:0mm:0ss"/>
|
||||
<$view tiddler=<<logTid>> field="caption">
|
||||
<$view tiddler=<<logTid>> field="title"></$view>
|
||||
</$view>
|
||||
</b>
|
||||
<ol><$list filter="[<logTid>indexes[]]" variable="item">
|
||||
<li><$link to=<<item>>><<item>></$link>
|
||||
<$set name="myItem" tiddler=<<logTid>> index=<<item>> >
|
||||
<$list filter="[<myItem>!search[existed]]" variable="ignore"
|
||||
emptyMessage="""<span style="color:red;"><<myItem>></span>""" >
|
||||
<span class="kk-commander-log-item"><<myItem>></span>
|
||||
</$list>
|
||||
</$set>
|
||||
</li>
|
||||
</$list></ol>
|
||||
</$list>
|
||||
</div>
|
||||
</$set>
|
||||
</div>
|
@ -1,30 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/macros/compConfirmAction
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define compConfirmAction(
|
||||
btnLabel:"Delete these tiddlers",
|
||||
confirmMessage:"Are you sure you wish to delete",
|
||||
stateTiddler:""
|
||||
countFilter:"",
|
||||
actionMacro:"")
|
||||
<$set name=resultCount value={{{ [subfilter<__countFilter__>count[]] }}} >
|
||||
<$reveal type="gt" text="0" default=<<resultCount>> >
|
||||
<$button popup=<<qualify """$stateTiddler$""">> class="cmd-btn">$btnLabel$</$button>
|
||||
</$reveal>
|
||||
<$reveal state=<<qualify """$stateTiddler$""">> type="popup" position="belowleft" animate="yes">
|
||||
<div class="tc-block-dropdown-wrapper">
|
||||
<div class="tc-block-dropdown tc-edit-type-dropdown">
|
||||
<div class="tc-dropdown-item-plain">
|
||||
$confirmMessage$ <<resultCount>> tiddler(s)?
|
||||
</div>
|
||||
<div class="tc-dropdown-item-plain">
|
||||
<$button class="cmd-btn"> $btnLabel$
|
||||
<$macrocall $name=<<__actionMacro__>> />
|
||||
</$button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</$reveal>
|
||||
</$set>
|
||||
\end
|
@ -1,15 +0,0 @@
|
||||
description: some macro are not used REMOVE THEM
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/macros/definition
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define tempPath() $:/temp/commander
|
||||
|
||||
\define searchboxTid() $(tempPath)$/search-box
|
||||
\define selectiveOpsTid() $(tempPath)$/selective-operation
|
||||
|
||||
|
||||
\define workingTag() $:/tags/Commander/Working
|
||||
\define exportTagTid() $:/temp/commander/exportTag
|
||||
\define systemFieldsTid() $:/plugins/kookma/commander/config/systemfields
|
||||
\define commonFieldsTid() $:/plugins/kookma/commander/config/commonfields
|
@ -1,27 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/macros/logging
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define set-title() $:/temp/commander/logs/tid-{{{[tag[$:/tags/Commander/LogOps]count[]add[1]]}}}
|
||||
|
||||
\define create-log-tiddler(msg)
|
||||
<$wikify name="myTitle" text="""<<set-title>>""">
|
||||
<$wikify name="myCaption" text="""<$macrocall $name="set-caption" msg=<<__msg__>> />""">
|
||||
<$action-createtiddler $basetitle=<<myTitle>>
|
||||
$savetitle="$:/state/commander/log-tiddler"
|
||||
tags="$:/tags/Commander/LogOps"
|
||||
type="application/json"
|
||||
caption=<<__msg__>>
|
||||
/>
|
||||
</$wikify>
|
||||
</$wikify>
|
||||
\end
|
||||
|
||||
\define log-add-single-operation(msg:"commander operation", tidItem:"no item")
|
||||
<$action-setfield $tiddler={{$:/state/commander/log-tiddler}} $index=<<__tidItem__>> $value=<<__msg__>> />
|
||||
\end
|
||||
|
||||
|
||||
\define delete-all-log-tiddlers()
|
||||
<$action-deletetiddler $filter="[tag[$:/tags/Commander/LogOps]]" />
|
||||
\end
|
@ -1,17 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/macros/remove-workingtag
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define remove-working-tag(oldTag)
|
||||
<$list filter="[all[shadows+tiddlers]tag<workingTag>limit[1]]" variable=ignore>
|
||||
<<create-log-tiddler "remove-workingTag">>
|
||||
<$list filter="[all[shadows+tiddlers]tag<workingTag>]">
|
||||
<$fieldmangler>
|
||||
<$action-sendmessage $message="tm-remove-tag" $param=<<__oldTag__>> />
|
||||
</$fieldmangler>
|
||||
<$macrocall $name="log-add-single-operation" msg="""working tag `$oldTag$` removed""" tidItem=<<currentTiddler>> />
|
||||
</$list>
|
||||
</$list>
|
||||
\end
|
||||
|
||||
|
@ -1,28 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/macros/slider
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define commander-slider(title, default:"closed")
|
||||
<$set name="revealState" value=<<qualify "$:/state/commander/reveal/$title$">>>
|
||||
<h2>
|
||||
<$reveal type="nomatch" state=<<revealState>> text="open" default="$default$">
|
||||
<$button class="tc-btn-invisible tc-tiddlylink" set=<<revealState>> setTo="open">
|
||||
{{$:/core/images/right-arrow}}
|
||||
</$button>
|
||||
</$reveal>
|
||||
<$reveal type="match" state=<<revealState>> text="open" default="$default$">
|
||||
<$button class="tc-btn-invisible tc-tiddlylink" set=<<revealState>> setTo="closed">
|
||||
{{$:/core/images/down-arrow}}
|
||||
</$button>
|
||||
</$reveal>
|
||||
<$view tiddler="$title$" field="caption">
|
||||
<$view tiddler="$title$" field="title"></$view>
|
||||
</$view>
|
||||
|
||||
</h2>
|
||||
|
||||
<$reveal type="match" state=<<revealState>> text="open" default="$default$">
|
||||
<$transclude tiddler="$title$" mode="block" />
|
||||
</$reveal>
|
||||
</$set>
|
||||
\end
|
@ -1,48 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/macros/utility
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define display(label,text)
|
||||
<$set name="stateTid" value="$:/temp/commander/display/popup/$label$" >
|
||||
<$button popup=<<stateTid>> class="tc-btn-invisible"><span style="text-decoration: underline">$label$</span></$button>
|
||||
<$reveal type="nomatch" text="" default="" state=<<stateTid>> animate="yes">
|
||||
<span style="color:blue;"><$text text=<<__text__>> /></span></$reveal>
|
||||
</$set>
|
||||
\end
|
||||
|
||||
\define is-filterSeearch-newer-than-selectedTitles(TidA, TidB)
|
||||
<$set name="tidAMod" value={{{ [[$TidA$]get[modified]] }}}>
|
||||
<$set name="tidBMod" value={{{ [[$TidB$]get[modified]] }}}>
|
||||
<$set name="tidAText" value={{{ [[$TidA$]get[text]] }}}>
|
||||
<$set name="tidBText" value={{{ [[$TidB$]get[text]] }}}>
|
||||
<$list filter="[<__TidB__>get[text]minlength[1]]" variable=ignore>
|
||||
<$reveal type="nomatch" default=<<tidAText>> text=<<tidBText>>>
|
||||
<$list filter="[<tidAMod>] [<tidBMod>] +[nsort[]last[1]removesuffix<tidBMod>]">
|
||||
A new filter search has been detected, click on the search button to apply it.
|
||||
</$list>
|
||||
</$reveal>
|
||||
</$list>
|
||||
</$set>
|
||||
</$set>
|
||||
</$set>
|
||||
</$set>
|
||||
\end
|
||||
|
||||
!!Remarks
|
||||
;is-filterSeearch-newer-than-selectedTitles
|
||||
* Checks `TidA` and `TidB` for modified date and text
|
||||
* If They are not empty, then
|
||||
** checks if the text of two are equal, if not
|
||||
** checks to see if `TidB` is newer or not
|
||||
** if newer shows a message, to apply the new search filter
|
||||
* Note
|
||||
** `TidA="$:/temp/commander"`
|
||||
** `TidB="$:/temp/commander/search-box"`
|
||||
* is-filterSeearch-newer-than-selectedTitles is called from $:/plugins/kookma/commander/search/ui
|
||||
|
||||
;display
|
||||
* gets a label and a text
|
||||
* create an inline label
|
||||
* on click label, the text is displayed as temporary popup
|
||||
* losing focus, the text goes hidden
|
||||
* this macro is used in customized compSelective to show the active filter
|
@ -1,34 +0,0 @@
|
||||
tags:
|
||||
title: $:/plugins/kookma/commander/readme
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
; Tiddler Commander
|
||||
Tiddler Commander, in short ''Commander'' is a unique tool for batch operations on tiddlers. Commander has the below features
|
||||
|
||||
* Bulk tiddler creation/deletion
|
||||
* Combo search to filter and select tiddlers
|
||||
* Title operation: add, remove prefixes and suffixes, also remove cahras form begining and end of title (on renaming tiddlers, [[relink|$:/plugins/kookma/commander/help/uicomp/relink]] can be used to update title in other tiddlers)
|
||||
* Tag operation: add, remove, replace
|
||||
* Field operation: add, remove, rename, and set field value
|
||||
* SNR, search and replace in all fields including text, tags, //title//, and common fields
|
||||
* Inspect, to review and inspect tiddlers in one place, scroll among them and edit all fields (including common fields), tags, text (title is an exception!)
|
||||
* Log, create logs of all operations
|
||||
* Search, //save and load// any combination of filter search
|
||||
|
||||
; Start Commander
|
||||
* Normally Commander adds its icon: <span class="cmd-doc">{{$:/plugins/kookma/commander/images/commander.svg}}</span> to page controls.
|
||||
* Open the right sidebar and click on the <span class="cmd-doc">{{$:/plugins/kookma/commander/images/commander.svg}}</span> Commander is started
|
||||
* In standard Tiddlywiki, control buttons are shown on the right sidebar under site title.
|
||||
|
||||
; Code and demo
|
||||
For learning plugin features, syntax, tutorial and examples see the plugin demo and code pages
|
||||
|
||||
* Demo: https://kookma.github.io/TW-Commander/
|
||||
* Code: https://github.com/kookma/TW-Commander
|
||||
|
||||
<style>
|
||||
.cmd-doc svg{
|
||||
width: 1.2em;
|
||||
height: 1.2em;
|
||||
vertical-align: middle;}
|
||||
</style>
|
@ -1,20 +0,0 @@
|
||||
list-after: $:/plugins/kookma/commander/search/filter-button/search
|
||||
tags: $:/tags/Commander/Search/FilterButton
|
||||
title: $:/plugins/kookma/commander/search/filter-button/clear
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import $:/plugins/kookma/commander/macros/definition
|
||||
|
||||
<$reveal type="nomatch" stateTitle=<<searchboxTid>> stateField="text" text="">
|
||||
<$button class="tc-btn-invisible" tooltip="clear search box and selected tiddlers">
|
||||
<$action-setfield $tiddler=<<searchboxTid>> $field="text" $value=""/>
|
||||
<$action-setfield $tiddler="$:/temp/commander" $field="text" $value=""/>
|
||||
<$action-setfield $tiddler="$:/state/commander/snr/select-tiddler" $field="text" $value=""/><!-- SNR selection -->
|
||||
<$action-setfield $tiddler="$:/state/compInspect/temp/commander/selectState-tiddler" $field="text" $value=""/> <!-- Inspect selection -->
|
||||
{{$:/core/images/close-button}}
|
||||
</$button>
|
||||
</$reveal>
|
||||
|
||||
<!--
|
||||
there is extra action should be removed
|
||||
-->
|
@ -1,26 +0,0 @@
|
||||
tags: $:/tags/Commander/Search/FilterButton
|
||||
title: $:/plugins/kookma/commander/search/filter-button/dropdown
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import $:/plugins/kookma/commander/macros/definition
|
||||
\whitespace trim
|
||||
|
||||
<span class="tc-popup-keep">
|
||||
<$button popup=<<qualify "$:/state/commander/filterDropdown">> class="tc-btn-invisible" tooltip="select a search filter">
|
||||
{{$:/core/images/down-arrow}}
|
||||
</$button>
|
||||
</span>
|
||||
|
||||
<$reveal state=<<qualify "$:/state/commander/filterDropdown">> type="popup" position="belowleft" animate="yes">
|
||||
<$set name="tv-show-missing-links" value="yes">
|
||||
<$linkcatcher to=<<searchboxTid>> >
|
||||
<div class="tc-block-dropdown-wrapper">
|
||||
<div class="tc-block-dropdown tc-edit-type-dropdown">
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Commander/Filter]!is[draft]]">
|
||||
<$link to={{!!filter}}><$let tv-wikilinks="no"><$transclude field="description"/></$let></$link>
|
||||
</$list>
|
||||
</div>
|
||||
</div>
|
||||
</$linkcatcher>
|
||||
</$set>
|
||||
</$reveal>
|
@ -1,42 +0,0 @@
|
||||
list-after: $:/plugins/kookma/commander/search/filter-button/clear
|
||||
tags: $:/tags/Commander/Search/FilterButton
|
||||
title: $:/plugins/kookma/commander/search/filter-button/save
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import $:/plugins/kookma/commander/macros/definition
|
||||
|
||||
<$reveal type="nomatch" stateTitle=<<searchboxTid>> stateField="text" text="">
|
||||
<$button class="tc-btn-invisible" tooltip="save current search" popup=<<qualify "$:/state/commander/SaveDropdown">> >
|
||||
{{$:/core/images/file}}
|
||||
</$button>
|
||||
</$reveal>
|
||||
|
||||
<$reveal state=<<qualify "$:/state/commander/SaveDropdown">> type="popup" class="tc-popup-keep" position="belowleft" animate="yes">
|
||||
<div class="tc-block-dropdown-wrapper">
|
||||
<div class="tc-block-dropdown tc-edit-type-dropdown">
|
||||
<div class="tc-dropdown-item-plain">
|
||||
Save new search filter<br><br>
|
||||
<$edit-text
|
||||
tiddler="$:/temp/commander/save-new-filter"
|
||||
tag="input"
|
||||
default=""
|
||||
class="cmd-txt-area"
|
||||
placeholder="description for new filter"
|
||||
/> <br><br>
|
||||
|
||||
<$button class="tc-btn"> Save new filter
|
||||
<$macrocall $name="create-new-filter"
|
||||
description={{$:/temp/commander/save-new-filter}}
|
||||
basetitle="$:/plugins/kookma/commander/filters/yourFilter"
|
||||
filter={{{[<searchboxTid>get[text]]}}} />
|
||||
<$action-deletetiddler $tiddler="$:/temp/commander/save-new-filter"/>
|
||||
<$action-deletetiddler $tiddler=<<qualify "$:/state/commander/SaveDropdown">> />
|
||||
</$button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</$reveal>
|
||||
|
||||
<!-- ToDO
|
||||
correct classes for textbox
|
||||
-->
|
@ -1,14 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/search/macros/create-new-filter
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define create-new-filter(description:"", basetitle:"", filter:"")
|
||||
<$list filter="[<__description__>!is[blank]]" variable="ignore">
|
||||
<$action-createtiddler
|
||||
$basetitle="""$basetitle$"""
|
||||
tags="$:/tags/Commander/Filter"
|
||||
description=<<__description__>>
|
||||
filter="""$filter$"""
|
||||
/>
|
||||
</$list>
|
||||
\end
|
@ -1,17 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/search/macros/select-deselect
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define select-all()
|
||||
<$list filter="[subfilter<filtertext>!is[missing]!tag<workingTag>]">
|
||||
<$fieldmangler>
|
||||
<$action-sendmessage $message="tm-add-tag" $param=<<workingTag>> />
|
||||
</$fieldmangler>
|
||||
\end
|
||||
|
||||
\define deselect-all()
|
||||
<$list filter="[tag<workingTag>]">
|
||||
<$fieldmangler>
|
||||
<$action-sendmessage $message="tm-remove-tag" $param=<<workingTag>> />
|
||||
</$fieldmangler>
|
||||
\end
|
@ -1,9 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/search/macros/warning
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define warn-for-selectedTids-from-previous-operation()
|
||||
<$list filter="[tag<workingTag>]-[subfilter<filtertext>]+[count[]!match[0]] ">
|
||||
<span style="color:red;font-size:0.85em">There are remained selected tiddlers from previous search! Remove them by pressing ''deselect all''!</span>
|
||||
</$list>
|
||||
\end
|
@ -1,27 +0,0 @@
|
||||
caption: Select tiddlers
|
||||
title: $:/plugins/kookma/commander/search/selection
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import $:/plugins/kookma/commander/macros/definition
|
||||
<$checkbox tiddler=<<selectiveOpsTid>> field="text" checked="yes" unchecked="no" default="no" uncheckactions=<<deselect-all>> > Selective operation?</$checkbox>
|
||||
|
||||
<$reveal type="nomatch" stateTitle=<<selectiveOpsTid>> stateField="text" text="yes" tag="div" class="kk-commander-tiddler-list kk-commander-columns3">
|
||||
<$list filter="[subfilter<filtertext>!prefix[$:/temp/commander]!is[missing]]"><$link/><br></$list>
|
||||
</$reveal>
|
||||
<$reveal type="match" stateTitle=<<selectiveOpsTid>> stateField="text" text="yes" tag="div">
|
||||
<$button actions=<<select-all>> > Select all</$button> <$button actions=<<deselect-all>> > Deselect all</$button>
|
||||
<small style="margin-left:10px;">Number of tiddlers selected: <$count filter="[tag<workingTag>]" /></small><br>
|
||||
<<warn-for-selectedTids-from-previous-operation>>
|
||||
</$reveal>
|
||||
|
||||
|
||||
<$reveal type="match" stateTitle=<<selectiveOpsTid>> stateField="text" text="yes" tag="div" class="kk-commander-tiddler-list kk-commander-columns3">
|
||||
<$list filter="[subfilter<filtertext>!prefix[$:/temp/commander]!is[missing]]">
|
||||
<$checkbox tag=<<workingTag>>> <$link/></$checkbox><br>
|
||||
</$list>
|
||||
</$reveal>
|
||||
|
||||
<!-- Description
|
||||
This tiddler implement interface to selectivly add tiddlers for commander operations.
|
||||
Each selected tiddler gets a working tag
|
||||
-->
|
@ -1,9 +0,0 @@
|
||||
caption: Commander filter search
|
||||
code-body: yes
|
||||
title: $:/plugins/kookma/commander/search/ui
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<div class="tc-search tc-advanced-search" style="margin-bottom:-12px;"><!-- negative margin for displaying matches -->
|
||||
Combo search <$edit-text tiddler=<<searchboxTid>> type="search" tag="input" default="" placeholder="enter keywords or make a filter search e.g. [tag[myTag]]" focus={{$:/plugins/kookma/commander/config/AutoFocus}}/>
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Commander/Search/FilterButton]!has[draft.of]]"><$transclude/></$list>
|
||||
</div>
|
@ -1,11 +0,0 @@
|
||||
caption: Setting
|
||||
icon: $:/core/images/options-button
|
||||
list-after: $:/plugins/kookma/commander/inspect/ui
|
||||
tags: $:/tags/Commander
|
||||
title: $:/plugins/kookma/commander/setting/ui
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<<tabs
|
||||
tabsList:"[all[shadows+tiddlers]tag[$:/tags/Commander/Setting]!has[draft.of]]"
|
||||
default:"$:/plugins/kookma/commander/setting/uicomp/snr"
|
||||
class:"tc-vertical cmd-tab-colorful cmd-tab-wd">>
|
@ -1,25 +0,0 @@
|
||||
caption: Temporary tiddlers
|
||||
list-after: $:/plugins/kookma/commander/setting/uicomp/relink
|
||||
tags: $:/tags/Commander/Setting
|
||||
title: $:/plugins/kookma/commander/setting/uicomp/delete-all-temp-tiddlers
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define delete-all-temps()
|
||||
<$action-deletetiddler $filter="[search:title[$:/temp/commander/]]" />
|
||||
\end
|
||||
|
||||
<$set name=numTids value={{{ [search:title[$:/temp/commander/]count[]] }}}>
|
||||
<$reveal type="match" text="0" default=<<numTids>> >
|
||||
No temporary tiddlers is existed to delete!
|
||||
</$reveal>
|
||||
<$reveal type="gt" text="0" default=<<numTids>> >
|
||||
Number of temporary tiddlers (including log tiddlers): <<numTids>><br>
|
||||
</$reveal>
|
||||
</$set>
|
||||
|
||||
<$macrocall $name="compConfirmAction"
|
||||
btnLabel="Delete temp tiddlers"
|
||||
confirmMessage="Are you sure you wish to delete"
|
||||
stateTiddler="$:/state/commander/setting/delete-temps"
|
||||
countFilter="[search:title[$:/temp/commander/]]"
|
||||
actionMacro="delete-all-temps"/>
|
@ -1,8 +0,0 @@
|
||||
caption: Search minimum length
|
||||
tags: $:/tags/Commander/Setting
|
||||
title: $:/plugins/kookma/commander/setting/uicomp/minlength
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
Controls the minimum length of a search string before results are displayed.
|
||||
|
||||
<label class="kk-cmd-label">Minlength</label><$edit-text tiddler="$:/plugins/kookma/commander/config/minlength" field=text default=3 placeholder="enter a number" tag=input/>
|
@ -1,17 +0,0 @@
|
||||
caption: Search filter
|
||||
tags: $:/tags/Commander/Setting
|
||||
title: $:/plugins/kookma/commander/setting/uicomp/search-filters
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The below list shows the Commander search filter. To edit click on the link and edit tiddler for filter syntax or description
|
||||
|
||||
<details>
|
||||
<summary>Commander saved filter search</summary>
|
||||
<dl>
|
||||
<$list filter="[all[tiddlers+shadows]tag[$:/tags/Commander/Filter]]" >
|
||||
<dt><$link/></dt>
|
||||
<dd><span style="display:inline-block;font-weight:700;width:100px">Description:</span><$view field="description"/></dd>
|
||||
<dd><span style="display:inline-block;font-weight:700;width:100px">Filter:</span><$view field="filter"/></dd>
|
||||
</$list>
|
||||
</dl>
|
||||
</details>
|
@ -1,14 +0,0 @@
|
||||
caption: Snr setting
|
||||
tags: $:/tags/Commander/Setting
|
||||
title: $:/plugins/kookma/commander/setting/uicomp/snr
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<<snr-difftext-cleanup>>
|
||||
<div style="padding-left:25px;font-size:0.9em">
|
||||
|
||||
The cleanup attribute determines which optional post-processing should be applied to the diffs:
|
||||
|
||||
* none: no cleanup is performed
|
||||
* semantic (default): rewrites the diffs for human readability
|
||||
* efficient: rewrites the diffs to minimise the number of operations for subsequent processing
|
||||
</div>
|
@ -1,118 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/snr/macros/actions
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define regexp-flags()
|
||||
{{$:/state/commander/snr/gm}}{{$:/state/commander/snr/case-sensitive}}{{$:/state/commander/snr/unicode}}
|
||||
\end
|
||||
|
||||
\define snr-ui-show-diffs()
|
||||
<form class="cmd-snr-form" style="width:100%;">
|
||||
<fieldset>
|
||||
<legend style="color:#FF0000;">Differences</legend>
|
||||
Tiddler: <$link to={{$:/state/commander/snr/select-tiddler}}><$text text={{$:/state/commander/snr/select-tiddler}}/></$link>
|
||||
|
||||
<$wikify name=flags text=<<regexp-flags>> >
|
||||
|
||||
<$macrocall $name="replace-text-diff"
|
||||
tiddler={{$:/state/commander/snr/select-tiddler}}
|
||||
field={{$:/state/commander/snr/select-tiddler/field}}
|
||||
replace={{$:/state/commander/snr/replace-text}}
|
||||
replaceWith={{$:/state/commander/snr/replace-text-with}}
|
||||
flags=<<flags>>
|
||||
wholeWords={{$:/state/commander/snr/whole-words}}
|
||||
/>
|
||||
|
||||
</$wikify>
|
||||
</fieldset>
|
||||
</form>
|
||||
\end
|
||||
|
||||
\define snr-check-diffs(tiddler:"", field:"")
|
||||
\whitespace trim
|
||||
<$wikify name=flags text=<<regexp-flags>> >
|
||||
<$wikify name="result" text="""
|
||||
<$macrocall $name="replace-text"
|
||||
tiddler=<<__tiddler__>>
|
||||
field=<<__field__>>
|
||||
replace={{$:/state/commander/snr/replace-text}}
|
||||
replaceWith={{$:/state/commander/snr/replace-text-with}}
|
||||
flags=<<flags>>
|
||||
wholeWords={{$:/state/commander/snr/whole-words}}
|
||||
/>""">
|
||||
<$reveal type="match" text={{{ [<__tiddler__>get<__field__>] }}} default=<<result>> >
|
||||
same
|
||||
</$reveal>
|
||||
<$reveal type="nomatch" text={{{ [<__tiddler__>get<__field__>] }}} default=<<result>> >
|
||||
different
|
||||
</$reveal>
|
||||
</$wikify>
|
||||
</$wikify>
|
||||
\end
|
||||
|
||||
\define search-replace-in-tiddler-field(tiddler:"",field:"",replace:"",replaceWith:"")
|
||||
<$wikify name=ss text=<<snr-check-diffs """$tiddler$""" """$field$""">> >
|
||||
<$list filter="[<ss>] -same" variable=ignore>
|
||||
<$list filter="[<__tiddler__>has[title]]" variable="ignore">
|
||||
<$wikify name=flags text=<<regexp-flags>> >
|
||||
<$macrocall $name="replace-text-button"
|
||||
tiddler=<<__tiddler__>>
|
||||
field=<<__field__>>
|
||||
replace=<<__replace__>>
|
||||
replaceWith=<<__replaceWith__>>
|
||||
flags=<<flags>>
|
||||
wholeWords={{$:/state/commander/snr/whole-words}}
|
||||
/>
|
||||
<$macrocall $name="log-add-single-operation" msg="""`$field$` field has been changed""" tidItem=<<__tiddler__>> />
|
||||
<$macrocall $name="clear-select-tiddler-if-field-is-title" tiddler=<<__tiddler__>> field=<<__field__>> />
|
||||
</$wikify>
|
||||
</$list>
|
||||
</$list>
|
||||
</$wikify>
|
||||
\end
|
||||
|
||||
\define clear-select-tiddler-if-field-is-title(tiddler, field)
|
||||
<$list filter="[<__field__>] +[search[title]]" variable="ignore">
|
||||
<$action-setfield $tiddler="$:/state/commander/snr/select-tiddler" text=""/>
|
||||
<$action-setfield $tiddler="$:/temp/commander/selected-titles" $index=<<__tiddler__>> />
|
||||
</$list>
|
||||
\end
|
||||
|
||||
\define search-replace-in-field-bulk()
|
||||
<$list filter="[subfilter<searchfilter>!is[missing]limit[1]]" variable=ignore><!--check if filter is empty -->
|
||||
<<create-log-tiddler "SNR operation">>
|
||||
<$list filter="[subfilter<searchfilter>!is[missing]]" >
|
||||
<$macrocall
|
||||
$name="search-replace-in-tiddler-field"
|
||||
tiddler=<<currentTiddler>>
|
||||
field={{$:/state/commander/snr/select-tiddler/field}}
|
||||
replace={{$:/state/commander/snr/replace-text}}
|
||||
replaceWith={{$:/state/commander/snr/replace-text-with}}
|
||||
/>
|
||||
</$list>
|
||||
</$list>
|
||||
\end
|
||||
|
||||
\define search-replace-in-field-single-tiddler()
|
||||
<<create-log-tiddler "SNR operation">>
|
||||
<$macrocall
|
||||
$name="search-replace-in-tiddler-field"
|
||||
tiddler={{$:/state/commander/snr/select-tiddler}}
|
||||
field={{$:/state/commander/snr/select-tiddler/field}}
|
||||
replace={{$:/state/commander/snr/replace-text}}
|
||||
replaceWith={{$:/state/commander/snr/replace-text-with}}
|
||||
/>
|
||||
\end
|
||||
|
||||
\define snr-actions()
|
||||
<$button actions=<<search-replace-in-field-single-tiddler>> tooltip="search and replace in a single tiddler" class="cmd-btn">
|
||||
Replace?
|
||||
</$button>
|
||||
<!-- replace in bulk tiddler with confirmation -->
|
||||
<$macrocall $name="compConfirmAction"
|
||||
countFilter=<<searchfilter>>
|
||||
actionMacro="search-replace-in-field-bulk"
|
||||
stateTiddler="$:/state/commander/SelectiveReplaceAllDropdown"
|
||||
confirmMessage="Are you sure you wish to replace text in"
|
||||
btnLabel="Replace all?"/>
|
||||
\end
|
@ -1,56 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/snr/macros/inputs
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define snr-ui-inputs()
|
||||
<form class="cmd-snr-form">
|
||||
<fieldset>
|
||||
<legend>Search and Replace</legend>
|
||||
|
||||
<div class="item">
|
||||
<label>Tiddler title</label>
|
||||
<$select tiddler="$:/state/commander/snr/select-tiddler" default="" class="cmd-snr-textbox">
|
||||
<option value="">None</option>
|
||||
<$list filter="[subfilter<searchfilter>]" >
|
||||
<option value=<<currentTiddler>>><$text text=<<currentTiddler>>/></option>
|
||||
</$list>
|
||||
</$select>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<label>Field name</label>
|
||||
<$select tiddler="$:/state/commander/snr/select-tiddler/field" default="text">
|
||||
<$list filter="[subfilter<searchfilter>fields[]]">
|
||||
<option value=<<currentTiddler>>><$text text=<<currentTiddler>>/></option>
|
||||
</$list>
|
||||
</$select>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<label>Search text</label>
|
||||
<$edit-text
|
||||
tiddler="$:/state/commander/snr/replace-text"
|
||||
tag="input"
|
||||
default=""
|
||||
placeholder=" text to replace"
|
||||
class="cmd-snr-textbox"/>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<label>Replace with </label>
|
||||
<$edit-text
|
||||
tiddler="$:/state/commander/snr/replace-text-with"
|
||||
tag="input"
|
||||
default=""
|
||||
placeholder=" new text"
|
||||
class="cmd-snr-textbox"/>
|
||||
</div>
|
||||
<!-- Use relink to update titles -->
|
||||
<$list filter="[[$:/state/commander/snr/select-tiddler/field]get[text]match[title]]" variable=ignore>
|
||||
<div class="item-relink">{{$:/plugins/kookma/commander/config/relink}}</div>
|
||||
</$list>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
\end
|
@ -1,60 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/snr/macros/regexp-flags
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define snr-regexp-flags()
|
||||
|
||||
<form class="cmd-snr-form">
|
||||
<fieldset>
|
||||
<legend>Search flags</legend>
|
||||
|
||||
<$checkbox
|
||||
tiddler="$:/state/commander/snr/case-sensitive"
|
||||
field="text"
|
||||
checked="i"
|
||||
unchecked=""
|
||||
/> ignore case<br>
|
||||
|
||||
<$checkbox
|
||||
tiddler="$:/state/commander/snr/whole-words"
|
||||
field="text"
|
||||
checked="words"
|
||||
unchecked="characters"
|
||||
/> whole words<br>
|
||||
|
||||
<$checkbox
|
||||
tiddler="$:/state/commander/snr/unicode"
|
||||
field="text"
|
||||
checked="u"
|
||||
unchecked=""
|
||||
/> unicode<br>
|
||||
|
||||
<br>
|
||||
|
||||
<$radio
|
||||
tiddler="$:/state/commander/snr/gm"
|
||||
field="text"
|
||||
value=""> first match
|
||||
</$radio><br>
|
||||
|
||||
<$radio
|
||||
tiddler="$:/state/commander/snr/gm"
|
||||
field="text"
|
||||
value="g"> global match
|
||||
</$radio><br>
|
||||
|
||||
<$radio
|
||||
tiddler="$:/state/commander/snr/gm"
|
||||
field="text"
|
||||
value="m"> multiline mode
|
||||
</$radio><br>
|
||||
|
||||
<$radio
|
||||
tiddler="$:/state/commander/snr/gm"
|
||||
field="text"
|
||||
value="mg"> global multiline mode
|
||||
</$radio>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
\end
|
@ -1,50 +0,0 @@
|
||||
/*\
|
||||
created: 20190214160253135
|
||||
type: application/javascript
|
||||
title: $:/plugins/kookma/commander/snr/macros/regexpsub.js
|
||||
modified: 20200307092210323
|
||||
module-type: macro
|
||||
|
||||
Make regular expression substitutions
|
||||
Developed by Mark S
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
"use strict";
|
||||
|
||||
exports.name = "regexpsub";
|
||||
|
||||
exports.params = [
|
||||
{name: "searchValue"},
|
||||
{name: "replaceValue"},
|
||||
{name: "sourceText"},
|
||||
{name: "flags"},
|
||||
{name: "wholeWords"}
|
||||
];
|
||||
|
||||
/*
|
||||
Run the macro
|
||||
*/
|
||||
exports.run = function(searchValue, replaceValue, sourceText, flags = "gi", wholeWords = "characters") {
|
||||
|
||||
try {
|
||||
|
||||
var searchText;
|
||||
if(wholeWords.toLowerCase() === 'words'){
|
||||
searchText = "\\b" + searchValue + "\\b";
|
||||
} else{
|
||||
searchText = searchValue;
|
||||
}
|
||||
|
||||
searchText = new RegExp(searchText, flags);
|
||||
return sourceText.replace(searchText,replaceValue);
|
||||
|
||||
}
|
||||
catch(err) {
|
||||
return "ERROR IN REG EXPRESSION. YOU MAY NEED TO ESCAPE VALUES";
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
})();
|
@ -1,5 +0,0 @@
|
||||
created: 20190214160253135
|
||||
modified: 20200307092210323
|
||||
module-type: macro
|
||||
title: $:/plugins/kookma/commander/snr/macros/regexpsub.js
|
||||
type: application/javascript
|
@ -1,66 +0,0 @@
|
||||
tags: $:/tags/Commander/Macro
|
||||
title: $:/plugins/kookma/commander/snr/macros/replace-text
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define nothing-to-replace(tiddler, field:"text")
|
||||
<$diff-text source={{{ [<__tiddler__>get<__field__>] }}} dest={{{ [<__tiddler__>get<__field__>] }}} />
|
||||
\end
|
||||
|
||||
\define replace-text(tiddler:"",field:"text",replace:"",replaceWith:"",flags:"", wholeWords:"")
|
||||
\whitespace trim
|
||||
<$wikify name="source" text="""<$view tiddler=<<__tiddler__>> field=<<__field__>> mode="block" format="text"/>""">
|
||||
<$wikify name="result"
|
||||
text="""<$macrocall $name="regexpsub" $type="text/plain"
|
||||
sourceText=<<source>>
|
||||
searchValue=<<__replace__>>
|
||||
replaceValue=<<__replaceWith__>>
|
||||
flags=<<__flags__>>
|
||||
wholeWords=<<__wholeWords__>> />"""
|
||||
>
|
||||
<$text text=<<result>>/>
|
||||
</$wikify>
|
||||
</$wikify>
|
||||
\end
|
||||
|
||||
\define replace-text-diff(tiddler:"", field:"text", replace, replaceWith, flags:"", wholeWords:"")
|
||||
<$list filter="[<__tiddler__>get<__field__>minlength[1]]" variable=null emptyMessage="No tiddler is selected, or tiddler is empty.">
|
||||
<$list filter="[<__replace__>minlength[1]]" variable=null emptyMessage=<<nothing-to-replace """$tiddler$""" """$field$""">> >
|
||||
|
||||
<$wikify name="result"
|
||||
text="""<$macrocall $name="replace-text"
|
||||
tiddler=<<__tiddler__>> field=<<__field__>>
|
||||
replace=<<__replace__>>
|
||||
replaceWith=<<__replaceWith__>>
|
||||
flags=<<__flags__>>
|
||||
wholeWords=<<__wholeWords__>> />"""
|
||||
>
|
||||
<$diff-text source={{{ [<__tiddler__>get<__field__>] }}} dest=<<result>> cleanup={{$:/state/commander/snr/setting/cleanup}}/>
|
||||
</$wikify>
|
||||
|
||||
</$list>
|
||||
</$list>
|
||||
\end
|
||||
|
||||
\define replace-text-button(tiddler:"", field:"text", replace:"", replaceWith:"", flags:"", wholeWords:"")
|
||||
\whitespace trim
|
||||
<$list filter="[<__tiddler__>get<__field__>minlength[1]]" variable=null>
|
||||
<$list filter="[<__replace__>minlength[1]]" variable=null>
|
||||
<$wikify name="result"
|
||||
text="""<$macrocall $name="replace-text"
|
||||
tiddler=<<__tiddler__>>
|
||||
field=<<__field__>>
|
||||
replace=<<__replace__>>
|
||||
replaceWith=<<__replaceWith__>>
|
||||
flags=<<__flags__>>
|
||||
wholeWords=<<__wholeWords__>> />"""
|
||||
>
|
||||
<$reveal type="nomatch" default="title" text=<<__field__>> >
|
||||
<$action-setfield $tiddler=<<__tiddler__>> $field=<<__field__>> $value=<<result>>/>
|
||||
</$reveal>
|
||||
<$reveal type="match" default="title" text=<<__field__>> >
|
||||
<$action-sendmessage $message="tm-rename-tiddler" from=<<__tiddler__>> to=<<result>> />
|
||||
</$reveal>
|
||||
</$wikify>
|
||||
</$list>
|
||||
</$list>
|
||||
\end
|
@ -1,14 +0,0 @@
|
||||
caption: Snr
|
||||
icon: $:/core/images/gitter
|
||||
list-after: $:/plugins/kookma/commander/inspect/ui
|
||||
tags: $:/tags/Commander
|
||||
title: $:/plugins/kookma/commander/snr/ui
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
Search and replcae in tiddler fields!
|
||||
|
||||
<<tabs
|
||||
tabsList:"[all[shadows+tiddlers]tag[$:/tags/Commander/SnrOps]!has[draft.of]]"
|
||||
default:"$:/plugins/kookma/commander/snr/uicomp/replace-text"
|
||||
class:"tc-vertical cmd-tab-colorful cmd-tab-wd">>
|
||||
|
@ -1,16 +0,0 @@
|
||||
caption: Search and replace
|
||||
icon: $:/core/images/gitter
|
||||
tags: $:/tags/Commander/SnrOps
|
||||
title: $:/plugins/kookma/commander/snr/uicomp/replace-text
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<div class="cmd-snr-row">
|
||||
<div class="cmd-snr-double-column">
|
||||
<<snr-ui-inputs>>
|
||||
</div>
|
||||
<div class="cmd-snr-column">
|
||||
<<snr-regexp-flags>>
|
||||
</div>
|
||||
</div>
|
||||
<<snr-ui-show-diffs>>
|
||||
<<snr-actions>>
|
@ -1,10 +0,0 @@
|
||||
.commander-alert {
|
||||
padding: 0.75rem 1.25rem;
|
||||
margin-bottom: 1rem;
|
||||
border: 1px dotted gray;
|
||||
border-radius: 0.25rem;
|
||||
color: #0c5460;
|
||||
background-color: #d1ecf1;
|
||||
border-color: #bee5eb;
|
||||
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
tags: $:/tags/Stylesheet
|
||||
title: $:/plugins/kookma/commander/stylesheet/alert
|
||||
type: text/css
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
.cmd-btn{
|
||||
font-size:0.85em;
|
||||
font-size:300;
|
||||
color: #666666;
|
||||
background-color: #d8d8d8;
|
||||
padding: 3px 8px 3px 8px;
|
||||
border: 1px solid #a1a1a1;
|
||||
}
|
||||
**/
|
||||
|
||||
.cmd-btn-wd{
|
||||
width:20ch;
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
tags: $:/tags/Stylesheet
|
||||
title: $:/plugins/kookma/commander/stylesheet/buttons
|
||||
type: text/css
|
@ -1,13 +0,0 @@
|
||||
/*compInspect table*/
|
||||
.cmd-ci-table
|
||||
{border-collapse: collapse;}
|
||||
|
||||
.cmd-ci-table .leftcol{
|
||||
width:20%;
|
||||
vertical-align: top;
|
||||
text-align: right;
|
||||
background-color:#f0f0f0;
|
||||
}
|
||||
.cmd-ci-table .rightcol{
|
||||
width:650px;
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
tags: $:/tags/Stylesheet
|
||||
title: $:/plugins/kookma/commander/stylesheet/compInspect/table
|
||||
type: text/css
|
@ -1,26 +0,0 @@
|
||||
.kk-commander-log-note{
|
||||
font-style:italic; font-size:small;
|
||||
}
|
||||
.kk-commander-log-item {
|
||||
color:green;
|
||||
}
|
||||
|
||||
/* This is missing and I added it */
|
||||
.cmd-txt-area{
|
||||
min-width:25ch;
|
||||
}
|
||||
|
||||
.cmd-txt-area2{
|
||||
min-width:50ch;
|
||||
}
|
||||
|
||||
/* Correct this later*/
|
||||
.kk-cmd-label{
|
||||
display:inline-block;
|
||||
width:85px;
|
||||
}
|
||||
|
||||
.kk-cmd-label2{
|
||||
display:inline-block;
|
||||
width:120px;
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
tags: $:/tags/Stylesheet
|
||||
title: $:/plugins/kookma/commander/stylesheet/new
|
||||
type: text/css
|
@ -1,7 +0,0 @@
|
||||
.cmd-sl{
|
||||
width:8ch;
|
||||
}
|
||||
|
||||
.cmd-select-wd{
|
||||
min-width:25ch;
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
tags: $:/tags/Stylesheet
|
||||
title: $:/plugins/kookma/commander/stylesheet/select-width
|
||||
type: text/css
|
@ -1,29 +0,0 @@
|
||||
.cmd-snr-row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
}
|
||||
.cmd-snr-column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-basis: 100%;
|
||||
flex: 1
|
||||
}
|
||||
|
||||
.cmd-snr-double-column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-basis: 100%;
|
||||
flex: 2
|
||||
}
|
||||
|
||||
@media screen and (min-width: 800px) {
|
||||
.cmd-snr-column {
|
||||
flex: 1
|
||||
}
|
||||
|
||||
.cmd-snr-double-column {
|
||||
flex: 2
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user