check in editions directory
Although this is automatically generated, it represents a critical part of the content of the edition which cannot be created from the content in the repository (it's generated from a private directory on my computer), so at this point it is appropriate to check it in.
This commit is contained in:
parent
c79644e179
commit
14cc96a907
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,5 @@ __pycache__/
|
|||||||
venv/
|
venv/
|
||||||
*.egg-info/
|
*.egg-info/
|
||||||
cli_docs/_build/
|
cli_docs/_build/
|
||||||
tzk/editions/
|
|
||||||
dist/
|
dist/
|
||||||
build/
|
build/
|
||||||
|
@ -0,0 +1,63 @@
|
|||||||
|
/*\
|
||||||
|
title: $:/plugins/danielo515/2click2edit/ClickListener.js
|
||||||
|
type: application/javascript
|
||||||
|
module-type: widget
|
||||||
|
|
||||||
|
This widgets adds an double click event listener to its parent
|
||||||
|
|
||||||
|
\*/
|
||||||
|
|
||||||
|
(function(){
|
||||||
|
|
||||||
|
/*jslint node: true, browser: true */
|
||||||
|
/*global $tw: false */
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var Widget = require("$:/core/modules/widgets/widget.js").widget;
|
||||||
|
|
||||||
|
var ClickListener = function(parseTreeNode,options) {
|
||||||
|
this.initialise(parseTreeNode,options);
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
Inherit from the base widget class
|
||||||
|
*/
|
||||||
|
ClickListener.prototype = new Widget();
|
||||||
|
|
||||||
|
/*
|
||||||
|
Render this widget into the DOM
|
||||||
|
*/
|
||||||
|
ClickListener.prototype.render = function(parent,nextSibling) {
|
||||||
|
this.parentDomNode = parent;
|
||||||
|
this.execute();
|
||||||
|
var self = this;
|
||||||
|
/*Since the event listener have been added to the parent, the "this" property is pointing to the
|
||||||
|
wrong object, we should call our edit function with our widget object set as the this property.*/
|
||||||
|
/* https://stackoverflow.com/questions/6480060/how-do-i-listen-for-triple-clicks-in-javascript */
|
||||||
|
parent.addEventListener("click", function (event) {
|
||||||
|
if (event.detail === 3) {
|
||||||
|
self.editTiddler.call(self, event);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
ClickListener.prototype.editTiddler = function(event) {
|
||||||
|
this.dispatchEvent({type: "tm-edit-tiddler", param: this.getVariable("currentTiddler")});
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
Compute the internal state of the widget
|
||||||
|
*/
|
||||||
|
ClickListener.prototype.execute = function() {
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
|
||||||
|
*/
|
||||||
|
ClickListener.prototype.refresh = function(changedTiddlers) {
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.click = ClickListener;
|
||||||
|
|
||||||
|
})();
|
@ -0,0 +1,3 @@
|
|||||||
|
module-type: widget
|
||||||
|
title: $:/plugins/danielo515/2click2edit/ClickListener.js
|
||||||
|
type: application/javascript
|
@ -0,0 +1,9 @@
|
|||||||
|
title: $:/plugins/danielo515/2click2edit/readme
|
||||||
|
|
||||||
|
Modified by Soren Bjornstad to require 3 clicks instead of 2.
|
||||||
|
|
||||||
|
This plugin adds the ability to edit tiddlers by double clicking on its body.
|
||||||
|
Just try to edit any tiddler shown here by double clicking on it.
|
||||||
|
|
||||||
|
This can be considered a fast solution. It is only to fill the gap until TiddlyWiki adds support
|
||||||
|
for it officially.
|
@ -0,0 +1,5 @@
|
|||||||
|
tags: $:/tags/ViewTemplate
|
||||||
|
title: $:/plugins/danielo515/2click2edit/ui/ViewTemplate
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
<$click>
|
11
tzk/editions/tzk/plugins/3click2edit/plugin.info
Normal file
11
tzk/editions/tzk/plugins/3click2edit/plugin.info
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"title": "$:/plugins/sobjornstad/3click2edit",
|
||||||
|
"description": "triple-click to edit tiddlers",
|
||||||
|
"author": "Soren Bjornstad, after Danielo Rodriguez",
|
||||||
|
"version": "0.1",
|
||||||
|
"core-version": ">=5.1.0",
|
||||||
|
"plugin-type": "plugin",
|
||||||
|
"source": "https://github.com/sobjornstad/TW5-3click2edit",
|
||||||
|
"list": "readme",
|
||||||
|
"dependents": ""
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,3 @@
|
|||||||
|
tags: $:/tags/Stylesheet
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/fonts/Font Awesome 5 Free Brands.css
|
||||||
|
type: text/css
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,3 @@
|
|||||||
|
tags: $:/tags/Stylesheet
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/fonts/Font Awesome 5 Free Regular.css
|
||||||
|
type: text/css
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,3 @@
|
|||||||
|
tags: $:/tags/Stylesheet
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/fonts/Font Awesome 5 Free Solid.css
|
||||||
|
type: text/css
|
@ -0,0 +1,122 @@
|
|||||||
|
created: 20140901110931199
|
||||||
|
modified: 20190509195707164
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/history
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
* ''1.2.18'' -- updates to Font Awesome 5.8.2.
|
||||||
|
|
||||||
|
* ''1.2.17'' -- updates to Font Awesome 5.8.1, adding several new categories, such as "alert", "beverage", "energy", et cetera. However, most of these new categories simply rehash existing icons, so there are only few really new icons to be found in this release.
|
||||||
|
|
||||||
|
* ''1.2.16'' -- updates to Font Awesome 5.7.2.
|
||||||
|
|
||||||
|
* ''1.2.15'' -- updates to Font Awesome 5.6.3. This adds new categories, such as "autumn", "holliday" and "halloween" with new icons, as well as updating existing categories with additional icons.
|
||||||
|
|
||||||
|
* ''1.2.14''
|
||||||
|
** updates to Font Awesome Free 5.3.1.
|
||||||
|
** fixes crash in `--update` command when glyph in icons.json lacks a search terms property.
|
||||||
|
|
||||||
|
* ''1.2.13''
|
||||||
|
** switches to fetching the most recent Font Awesome Free download URL via GitHub API; this way, we can get rid of the (fine!) Puppeteer package and a truckload of update overhead.
|
||||||
|
** npm package maintenance update: move development dependencies out of the general dependencies.
|
||||||
|
|
||||||
|
* ''1.2.12'' -- updates to Font Awesome Free 5.2.0. This adds new category packs for "automotive", "medical", "education", and "maps".
|
||||||
|
|
||||||
|
* ''1.2.11'' -- updates to Font Awesome Free 5.1.11.
|
||||||
|
|
||||||
|
* ''1.2.10'' (1.2.9)
|
||||||
|
** updates to Font Awesome 5.1.0, which brings new categories "design", "emoji" and "travel", and their icons -- as well as some updates and icon additions.
|
||||||
|
** updates the update mechanism to work with the new 5.1.x packaging.
|
||||||
|
|
||||||
|
* ''1.2.8'' -- updates to Font Awesome Free 5.0.13. This brings three new catogies: animals, buildings, and mathematics.
|
||||||
|
|
||||||
|
* ''1.2.7'' -- updates to Font Awesome Free 5.0.12 -- they really do rapid updates, do they?! Glad that updating this plugin is automated...
|
||||||
|
|
||||||
|
* ''1.2.6'' -- updates to Font Awesome Free 5.0.11.
|
||||||
|
|
||||||
|
* ''1.2.5'' -- updates to Font Awesome Free 5.0.10.
|
||||||
|
|
||||||
|
* ''1.2.4''
|
||||||
|
** adds unicode code point info to the cheatsheet.
|
||||||
|
|
||||||
|
* ''1.2.3''
|
||||||
|
** makes TW5FontAwesome plugin available as npm package `tw5-fontawesome`.
|
||||||
|
** adds ~ThirdFlow plugin as npm dependency `tw5-thirdflow`.
|
||||||
|
|
||||||
|
* ''1.2.2''
|
||||||
|
** updates to Font Awesome Free 5.0.9.
|
||||||
|
** adds new categories //Charity//, //Chat//, and //Moving//.
|
||||||
|
** adds new "Font Awesome 5" tab to the [[Control Panel|$:/ControlPanel]] that allows customizing the plugin: enable/disable internal and external link styling.
|
||||||
|
|
||||||
|
* ''1.2.1''
|
||||||
|
** adds missing category information.
|
||||||
|
** adds automated update of category information from the Font Awesome 5 web site, as part of the normal update process:
|
||||||
|
*** `npm run update` updates only if there is a newer version of Font Awesome 5 Free available from https://fontawesome.com/
|
||||||
|
*** `npm run forceupdate` updates unconditionally.
|
||||||
|
|
||||||
|
* ''1.2.0''
|
||||||
|
** updates to Font Awesome Free 5.0.8.
|
||||||
|
** adds category filtering to the cheatsheet.
|
||||||
|
** adds Font Awesome 5 category meta data.
|
||||||
|
** brings a new (fully) automatic update and release mechanism:
|
||||||
|
*** use `$ npm run update-fontawesome` to update the development files to the newest Font Awesome version that is available online.
|
||||||
|
*** use `$ npm run release` to create the plugin release file(s).
|
||||||
|
** upgrades to most recent version of the [[ThirdFlow|http://thediveo.github.io/ThirdFlow/]] plugin: this comes with a new automated release mechanism.
|
||||||
|
** refactors development command `--update-fontawesome` to directly download the most recent Font Awesome 5 Free package .zip from https://fontawesome.com. The only optional parameter to this command is `force` which forces re-updating, even if the font currently installed in the dev wiki is the same version as the one downloaded.
|
||||||
|
** upgrades ThirdFlow plugin and now uses the new automated release file generation mechanism.
|
||||||
|
|
||||||
|
* ''1.1.2''
|
||||||
|
** fixes ~TiddlyWiki-internal links to system tiddlers not showing the gear symbol in the tiddler editor preview pane.
|
||||||
|
|
||||||
|
* ''1.1.1''
|
||||||
|
** upgrades to Font Awesome 5.0.4.
|
||||||
|
** adds update/import command to ~FontAwesome 5 demo ~TiddlyWiki to update ~~from a Font Awesome zip package~~ [//online//]. Use `--update-fontawesome` when running the plugin development ~TiddlyWiki under Node.js.
|
||||||
|
*** The `--update-fontawesome` command ~~expects the (path and) name of a Font Awesome zip package from which it will then update itself~~ [//has no parameters, or alternatively a single parameter `force`//]. ~~There is no need to unpack the zip package.~~ For instance:<div><strike>
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ tiddlywiki editions/develop --verbose --update-fontawesome ~/Downloads/fontawesome-free-5.0.2-zip --server 8080 $:/core/save/all text/plain text/html
|
||||||
|
```
|
||||||
|
|
||||||
|
</strike></div>
|
||||||
|
*** If for some reason you need to re-update from the same Font Awesome zip package, specify an additional `force` parameter after the zip package file name parameter. For instance:<div><strike>
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ tiddlywiki editions/develop --verbose --update-fontawesome ~/Downloads/fontawesome-free-5.0.2-zip force --server 8080 $:/core/save/all text/plain text/html
|
||||||
|
```
|
||||||
|
</strike></div>
|
||||||
|
* ''1.1.0''
|
||||||
|
** upgrades to Font Awesome 5.0.2.
|
||||||
|
** upgrades user macros to allow to specify the Font Awesome font family: `fas` (//Font Awesome Solid//), `far` (//Font Awesome Regular//), and `fab` (//Font Awesome Brands//).
|
||||||
|
** upgrades stylesheets to new Font Awesome font mess, introduces [[$:/plugins/TheDiveO/FontAwesome/macros/css settings]] shorthand macros to avoid lengthy CSS properties assignments in CSS rules using Font Awesome.
|
||||||
|
* ''1.0.7''
|
||||||
|
** fix overly greedy image URL adornments, so that they don't apply to TW5-internal images. Now, an internal [[tree.jpeg]] doesn't get adornment, while [[http://thediveo.github.io/TW5FontAwesome/fa-flag.png]] still does, so the type of document can be glanced quickly.
|
||||||
|
** small visual improvement to `fa-lbadge` which adds a small right margin to the badge, so that the adjacent text doesn't seem to visually collide with the badge anymore.
|
||||||
|
* ''1.0.6''
|
||||||
|
** link adornments for image URLs (`.jpg`/`.jpeg`, `.png`, `.gif`, `.tif`/`.tiff`)
|
||||||
|
* ''1.0.5''
|
||||||
|
** maintenance: upgrade ThirdFlow plugin to 1.1.11.
|
||||||
|
* ''1.0.4''
|
||||||
|
** improved display of link adornments by removing the link underlining from the adornments.
|
||||||
|
** fixed CSS class name bug in `fa-lbox` macro. Also added new `fa-lbadge` macro. Added documentation.
|
||||||
|
** oh, the magic of the `list-after` field, when applied to CSS tiddlers, avoids overuse of CSS `!important` declarations.
|
||||||
|
|
||||||
|
* ''1.0.3''
|
||||||
|
** fixed CSS to ensure that our embedded Font Awesome font always takes precendence over any system-installed Font Awesome font. This ensures a consistent user experience, especially when the local Font Awesome would be an older version.
|
||||||
|
|
||||||
|
* ''1.0.2''
|
||||||
|
** fixes base64 encoding of the embedded Font Awesome woff.
|
||||||
|
** updated documentation with a warning about system-installed fonts taking precedence.
|
||||||
|
** updated instructions on how to update the embedded font yourself.
|
||||||
|
|
||||||
|
* ''1.0.1''
|
||||||
|
** incorporates recent Font Awesome 4.7.0.
|
||||||
|
** CSS updated to 4.7.0 too.
|
||||||
|
** development version contains updated Third Flow plugin.
|
||||||
|
|
||||||
|
* ''1.0.0''
|
||||||
|
** never released.
|
||||||
|
|
||||||
|
* ''0.9.2-beta''
|
||||||
|
** stable beta release with Font Awesome 4.2.0.
|
||||||
|
|
||||||
|
* ''v0.0.1-beta1''
|
||||||
|
** initial plugin release.
|
@ -0,0 +1,13 @@
|
|||||||
|
created: 20140901103643546
|
||||||
|
modified: 20140901123044951
|
||||||
|
tags: $:/tags/Image
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/icon
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
<svg width="22pt" height="22pt" viewBox="0 0 128 128">
|
||||||
|
<g fill-rule="evenodd">
|
||||||
|
<path
|
||||||
|
d="m 13.75,0 -11.71875,6.875 0,13.75 11.71875,6.875 11.71875,-6.875 0,-13.75 L 13.75,0 z M 6.28125,5.78125 c 0.3579097,1.42e-5 0.6530496,0.1218163 0.90625,0.375 0.2531946,0.2532114 0.4062468,0.5796012 0.40625,0.9375 -3.2e-6,0.4864625 -0.2240993,0.8370553 -0.65625,1.09375 l 0,12.84375 c -2.6e-6,0.08791 -0.029668,0.15448 -0.09375,0.21875 -0.064087,0.06427 -0.1620941,0.09375 -0.25,0.09375 l -0.625,0 c -0.08791,-1e-6 -0.1859173,-0.02948 -0.25,-0.09375 C 5.6546643,21.18573 5.6249987,21.119157 5.625,21.03125 l 0,-12.84375 C 5.1924761,7.9308053 4.9999994,7.5802125 5,7.09375 4.9999994,6.7358512 5.1216167,6.4094614 5.375,6.15625 5.6283811,5.9030663 5.9233364,5.7812642 6.28125,5.78125 z m 6.6875,1.3125 c 0.722833,1.29e-5 1.403139,0.085316 2.03125,0.28125 0.628089,0.1959592 1.367727,0.4764702 2.21875,0.875 0.256694,0.1281803 0.53739,0.2187616 0.875,0.21875 0.364546,1.16e-5 0.758471,-0.076903 1.1875,-0.21875 0.428999,-0.1418231 0.811026,-0.2931062 1.125,-0.46875 0.313942,-0.1756193 0.594637,-0.3581524 0.875,-0.5 0.28033,-0.1418222 0.474573,-0.1874871 0.5625,-0.1875 0.175429,1.29e-5 0.340379,0.059159 0.46875,0.1875 0.128335,0.1283659 0.187481,0.2616962 0.1875,0.4375 l 0,7.75 c -1.9e-5,0.168803 -0.04062,0.283957 -0.125,0.375 -0.08442,0.09105 -0.223803,0.186697 -0.40625,0.28125 -1.45198,0.78379 -2.709891,1.187503 -3.75,1.1875 -0.412222,3e-6 -0.828017,-0.07008 -1.25,-0.21875 -0.422009,-0.148665 -0.782943,-0.324365 -1.09375,-0.5 -0.310829,-0.175628 -0.686986,-0.351512 -1.15625,-0.5 C 14.249466,15.94527 13.743089,15.875004 13.25,15.875 c -1.296838,4e-6 -2.850298,0.514176 -4.6875,1.5 -0.1148759,0.06095 -0.2359002,0.09375 -0.34375,0.09375 -0.1758202,3e-6 -0.3091502,-0.09039 -0.4375,-0.21875 -0.1283567,-0.12835 -0.1875032,-0.26205 -0.1875,-0.4375 l 0,-7.53125 c -3.2e-6,-0.2164353 0.1030684,-0.4073566 0.3125,-0.5625 0.1418315,-0.094545 0.3893527,-0.2417266 0.78125,-0.4375 1.593792,-0.8107376 3.03169,-1.1874871 4.28125,-1.1875 z m 4.4375,1.9375 c -0.342706,0.1226406 -0.355438,0.656233 -0.5,1.375 -0.223336,-0.06073 -0.456025,-0.114193 -0.6875,-0.125 -0.319018,-0.021 -0.822172,0.073 -1.1875,0.0625 -0.365324,-0.0105 -1.089266,-0.319558 -1.6875,-0.25 -0.240525,0.02958 -0.495457,0.05507 -0.71875,0.15625 -0.136605,0.0619 -0.307097,0.253524 -0.40625,0.28125 -0.999033,0.2793 -2.6450261,0.290617 -2.3125,-1.21875 0.02589,-0.1159319 0.051471,-0.2239389 0,-0.25 -0.06413,-0.032479 -0.11842,0.018948 -0.15625,0.09375 -0.5817319,1.263211 0.450231,2.090082 1.625,2.09375 0.368882,-0.02847 0.188339,-0.02825 0.53125,-0.09375 l 0,0.0625 c -0.02423,0.418425 0.151498,0.773091 0.5,1 -0.159883,0.455791 -0.470574,0.831401 -0.6875,1.25 0.08154,0.520418 0.625493,1.213538 0.84375,1.3125 0.19213,0.08713 0.590499,0.108967 0.6875,-0.03125 0.03464,-0.06594 0.03819,-0.208665 0,-0.28125 0.164063,0.181767 0.379948,0.409467 0.59375,0.53125 0.128025,0.06105 0.26257,0.120068 0.40625,0.125 l 0.15625,-0.03125 c 0.09128,-0.01967 0.220122,-0.01257 0.28125,-0.09375 0.06906,-0.117457 0.0042,-0.445257 -0.28125,-0.46875 -0.285459,-0.02351 -0.487565,-0.141306 -0.75,-0.53125 -0.216207,-0.376982 0.06825,-0.879067 0.15625,-1.25 0.451569,0.07267 0.885787,0.123856 1.34375,0.125 0.198682,-0.0101 0.397908,-0.02487 0.59375,-0.0625 0.06247,0.159574 0.248509,0.592654 0.25,0.71875 0.0042,0.355223 -0.119979,0.738597 -0.0625,1.09375 0.03593,0.104625 -0.01675,0.27314 0.1875,0.28125 0.122159,0.0062 0.03564,0.02295 0.21875,0.03125 l 0.1875,0 c 0.201842,0.338685 0.353672,0.332318 0.75,0.34375 L 17.375,15.25 c 0.06687,-0.02489 0.146577,-0.02959 0.1875,-0.09375 0.133768,-0.194285 -0.220263,-0.284732 -0.34375,-0.5 -0.123507,-0.215248 -0.635898,-1.387969 -0.25,-1.71875 0.385924,-0.330776 0.809257,-0.471475 0.96875,-0.78125 0.06907,-0.139714 0.138021,-0.279525 0.15625,-0.4375 0.09397,0.07799 0.154815,0.152169 0.28125,0.15625 0.334451,0.02101 0.632038,-0.392722 0.78125,-0.78125 0.07973,-0.238471 0.140218,-0.485838 0.125,-0.71875 -0.04092,-0.4488514 0.01685,-0.9204038 0.375,-1.21875 C 19.302812,9.334652 18.96272,9.5357952 18.5625,9.59375 18.341438,9.5266203 18.109109,9.4905105 17.875,9.5 17.760279,9.3505649 17.607384,9.0636657 17.40625,9.03125 z m -4.75,4.34375 c -0.01157,0.166727 -0.02255,0.305428 0.03125,0.46875 0.163898,0.134904 0.380252,0.35428 0.53125,0.5 -0.082,-0.02263 -0.235596,-0.0612 -0.3125,-0.03125 L 12.84375,14.28125 12.8125,14.25 c -0.108862,-0.1172 -0.395316,-0.310466 -0.34375,-0.5 0.04127,-0.131581 0.125136,-0.250383 0.1875,-0.375 z" transform="scale(4.6545455,4.6545455)"
|
||||||
|
/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
@ -0,0 +1,10 @@
|
|||||||
|
created: 20140901105404058
|
||||||
|
modified: 20170223103858754
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/license
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
This plugin is licensed as follows:
|
||||||
|
|
||||||
|
* Font Awesome font license: [[SIL OFL 1.1|http://scripts.sil.org/OFL]].
|
||||||
|
* Font Awesome CSS and LESS files licenses: [[MIT License|http://opensource.org/licenses/mit-license.html]].
|
||||||
|
* everything else in this plugin is (c) by TheDiveO and licensed under the [[MIT License|http://opensource.org/licenses/mit-license.html]].
|
@ -0,0 +1,23 @@
|
|||||||
|
created: 20171230210524160
|
||||||
|
modified: 20171230211107336
|
||||||
|
tags: $:/tags/Macro
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/macros/css settings
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\define fa-plugin-font-solid()
|
||||||
|
font-family: 'Font Awesome 5 Free';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 900;
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define fa-plugin-font-regular()
|
||||||
|
font-family: 'Font Awesome 5 Free';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define fa-plugin-font-brands()
|
||||||
|
font-family: 'Font Awesome 5 Brands';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
\end
|
@ -0,0 +1,17 @@
|
|||||||
|
created: 20140831145445334
|
||||||
|
modified: 20171230204202514
|
||||||
|
tags: $:/tags/Macro
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/macros/fa
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\define fa-lbox(glyph:"fa-flag",fam:"fas")
|
||||||
|
<i class="$fam$ fa-2x pull-left fa-border $glyph$"></i>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define fa-lbadge(glyph:"fa-flag",fam:"fas")
|
||||||
|
<span class="fa-stack fa-lg fa-pull-left" style="margin-right: .3em;"><i class="fas fa-circle fa-stack-2x"></i><i class="$fam$ fa-stack-1x fa-inverse $glyph$"></i></span>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define fa-clear()
|
||||||
|
<div style="clear:both;"/>
|
||||||
|
\end
|
@ -0,0 +1,17 @@
|
|||||||
|
created: 20140831145557569
|
||||||
|
modified: 20171230205047837
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/macros/fa/doc
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
Convenience macros to typeset symbols from Font Awesome.
|
||||||
|
|
||||||
|
;`fa-lbox` //glyph//:"fa-flag" //fam//:"fas"
|
||||||
|
: typesets the Font Awesome glyp (defaults to `fa-flag` glyph) in a gray box, and pulls it to the left.
|
||||||
|
: As Font Awesome 5.0 has broken up the single 4.x font into multiple fonts, this macro now sports a second optional parameter for setting the font family. Allowed values are `fas` (for //Font Awesome Solid//), `far` (for //Font Awesome Regular//), and finally `fab` (for //Font Awesome Brands//).
|
||||||
|
|
||||||
|
;`fa-lbadge` //glyph//:"fa-flag"
|
||||||
|
: typesets the Font Awesome glyph (defaults to `fa-flag` glyph) in inverse, on a round badge. Also pulls the badge with the icon to the left.
|
||||||
|
: As Font Awesome 5.0 has broken up the single 4.x font into multiple fonts, this macro now sports a second optional parameter for setting the font family. Allowed values are `fas` (for //Font Awesome Solid//), `far` (for //Font Awesome Regular//), and finally `fab` (for //Font Awesome Brands//).
|
||||||
|
|
||||||
|
;`fa-clear`
|
||||||
|
: convenience macro that inserts an empty HTML `div` element with styling `clear:both`. Use this before multiple `fa-lbox` and `fa-lbadge` macros to avoid them piling up from left to right.
|
@ -0,0 +1,9 @@
|
|||||||
|
created: 20180328184036630
|
||||||
|
modified: 20180328191101221
|
||||||
|
tags: $:/tags/Macro
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/macros/global-macros
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\define fa5-cfgpath(cfg) $:/config/fa5/$cfg$
|
||||||
|
|
||||||
|
\define fa5-cfgfilterexpr() [<cfg>get[text]] [[yes]] +[first[]prefix[yes]]
|
@ -0,0 +1,8 @@
|
|||||||
|
created: 20140901105307611
|
||||||
|
modified: 20180112190527729
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/readme
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
This plugin adds support for Font Awesome to your ~TiddlyWiki 5. It embeds the [[Font Awesome|http://fontawesome.io/]] within this plugin, so you don't need to install this font in your operating system. You may, but the //embedded// Font Awesome will take precedence to ensure a consistent user experience.
|
||||||
|
|
||||||
|
To install this plugin in your own ~TiddlyWiki(s), simply drop this [[FontAwesome plugin|$:/plugins/TheDiveO/FontAwesome]] onto your own ~TiddlyWiki(s): this will then import it.
|
@ -0,0 +1,27 @@
|
|||||||
|
created: 20170223100043117
|
||||||
|
modified: 20180328191133975
|
||||||
|
tags: $:/tags/Stylesheet
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/styles/extlinks
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html
|
||||||
|
|
||||||
|
<$set name="cfg" value=<<fa5-cfgpath "decorate-extlinks">> >
|
||||||
|
<$list filter=<<fa5-cfgfilterexpr>> >
|
||||||
|
|
||||||
|
a[href^="http://"]:before {
|
||||||
|
<<fa-plugin-font-solid>>
|
||||||
|
font-size: 80%;
|
||||||
|
content: '\f35d\202f';
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
a[href^="https://"]:before {
|
||||||
|
<<fa-plugin-font-solid>>
|
||||||
|
font-size: 80%;
|
||||||
|
content: '\f023\202f';
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
</$list>
|
||||||
|
</$set>
|
@ -0,0 +1,23 @@
|
|||||||
|
created: 20170227162302202
|
||||||
|
list-after: $:/plugins/TheDiveO/FontAwesome/styles/extlinks
|
||||||
|
modified: 20180328191153542
|
||||||
|
tags: $:/tags/Stylesheet
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/styles/extlinks/FontAwesome
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html
|
||||||
|
|
||||||
|
<$set name="cfg" value=<<fa5-cfgpath "decorate-wk-extlinks">> >
|
||||||
|
<$list filter=<<fa5-cfgfilterexpr>> >
|
||||||
|
|
||||||
|
a[href^="http://fontawesome.io/"].tc-tiddlylink-external:before,
|
||||||
|
a[href^="http://fontawesome.com/"].tc-tiddlylink-external:before,
|
||||||
|
a[href^="https://fontawesome.io/"].tc-tiddlylink-external:before,
|
||||||
|
a[href^="https://fontawesome.com/"].tc-tiddlylink-external:before {
|
||||||
|
<<fa-plugin-font-brands>>
|
||||||
|
content: '\f425\202f' !important;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
</$list>
|
||||||
|
</$set>
|
@ -0,0 +1,20 @@
|
|||||||
|
created: 20170223102202986
|
||||||
|
list-after: $:/plugins/TheDiveO/FontAwesome/styles/extlinks
|
||||||
|
modified: 20180328191203844
|
||||||
|
tags: $:/tags/Stylesheet
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/styles/extlinks/GitHub
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html
|
||||||
|
|
||||||
|
<$set name="cfg" value=<<fa5-cfgpath "decorate-wk-extlinks">> >
|
||||||
|
<$list filter=<<fa5-cfgfilterexpr>> >
|
||||||
|
|
||||||
|
a[href^="http://"][href*="github.com"]:before {
|
||||||
|
<<fa-plugin-font-brands>>
|
||||||
|
font-size: 90%;
|
||||||
|
content: '\f09b\202f';
|
||||||
|
}
|
||||||
|
|
||||||
|
</$list>
|
||||||
|
</$set>
|
@ -0,0 +1,19 @@
|
|||||||
|
created: 20170223100306336
|
||||||
|
modified: 20180328191215033
|
||||||
|
tags: $:/tags/Stylesheet
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/styles/extlinks/Wikipedia
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html
|
||||||
|
|
||||||
|
<$set name="cfg" value=<<fa5-cfgpath "decorate-wk-extlinks">> >
|
||||||
|
<$list filter=<<fa5-cfgfilterexpr>> >
|
||||||
|
|
||||||
|
a[href^="http://"][href*=".wikipedia.org"]:before {
|
||||||
|
<<fa-plugin-font-brands>>
|
||||||
|
font-size: 90%;
|
||||||
|
content: '[\f266]\202f';
|
||||||
|
}
|
||||||
|
|
||||||
|
</$list>
|
||||||
|
</$set>
|
@ -0,0 +1,39 @@
|
|||||||
|
created: 20170301201914393
|
||||||
|
list-after: $:/plugins/TheDiveO/FontAwesome/styles/extlinks
|
||||||
|
modified: 20180328191142557
|
||||||
|
tags: $:/tags/Stylesheet
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/styles/extlinks/doctypes
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html
|
||||||
|
|
||||||
|
<$set name="cfg" value=<<fa5-cfgpath "decorate-extdoclinks">> >
|
||||||
|
<$list filter=<<fa5-cfgfilterexpr>> >
|
||||||
|
|
||||||
|
a[href$=".pdf"].tc-tiddlylink-external:before {
|
||||||
|
<<fa-plugin-font-regular>>
|
||||||
|
content: '\f1c1\202f';
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
a[href$=".gz"].tc-tiddlylink-external:before,
|
||||||
|
a[href$=".zip"].tc-tiddlylink-external:before,
|
||||||
|
a[href$=".7z"].tc-tiddlylink-external:before {
|
||||||
|
<<fa-plugin-font-regular>>
|
||||||
|
content: '\f1c6\202f';
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
a[href$=".jpg"].tc-tiddlylink-external:before,
|
||||||
|
a[href$=".jpeg"].tc-tiddlylink-external:before,
|
||||||
|
a[href$=".png"].tc-tiddlylink-external:before,
|
||||||
|
a[href$=".gif"].tc-tiddlylink-external:before,
|
||||||
|
a[href$=".tif"].tc-tiddlylink-external:before,
|
||||||
|
a[href$=".tiff"].tc-tiddlylink-external:before {
|
||||||
|
<<fa-plugin-font-regular>>
|
||||||
|
content: '\f1c5\202f';
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
</$list>
|
||||||
|
</$set>
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,3 @@
|
|||||||
|
tags: $:/tags/Stylesheet
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/styles/fontawesome 5.css
|
||||||
|
type: text/css
|
@ -0,0 +1,22 @@
|
|||||||
|
created: 20171230212437805
|
||||||
|
modified: 20180328191223958
|
||||||
|
tags: $:/tags/Stylesheet
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/styles/tiddlylinks/system
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html
|
||||||
|
|
||||||
|
<$set name="cfg" value=<<fa5-cfgpath "decorate-syslinks">> >
|
||||||
|
<$list filter=<<fa5-cfgfilterexpr>> >
|
||||||
|
|
||||||
|
/* system tiddler titles starting with $:/... */
|
||||||
|
.tc-tiddler-body a.tc-tiddlylink[href^="#%24%3A%2F"]:before,
|
||||||
|
.tc-tiddler-preview-preview a.tc-tiddlylink[href^="#%24%3A%2F"]:before {
|
||||||
|
<<fa-plugin-font-solid>>
|
||||||
|
font-size: 80%;
|
||||||
|
content: '\f013\202f';
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
</$list>
|
||||||
|
</$set>
|
@ -0,0 +1,16 @@
|
|||||||
|
caption: Font Awesome
|
||||||
|
created: 20180328182555066
|
||||||
|
modified: 20180328190604063
|
||||||
|
tags: $:/tags/ControlPanel
|
||||||
|
title: $:/plugins/TheDiveO/FontAwesome/ui/ControlPanel/FontAwesome
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
Customize the Font Awesome 5 plugin.
|
||||||
|
|
||||||
|
<$checkbox tiddler=<<fa5-cfgpath "decorate-syslinks">> field="text" checked="yes" unchecked="no" default="yes" > decorate system links: [[$:/ControlPanel]]</$checkbox>
|
||||||
|
|
||||||
|
<$checkbox tiddler=<<fa5-cfgpath "decorate-extlinks">> field="text" checked="yes" unchecked="no" default="yes" > decorate external links: [[TiddlyWiki|http://tiddlywiki.com]] [[Wikipedia|https://en.wikipedia.org/wiki/TiddlyWiki]]</$checkbox>
|
||||||
|
|
||||||
|
<$checkbox tiddler=<<fa5-cfgpath "decorate-extdoclinks">> field="text" checked="yes" unchecked="no" default="yes" > decorate external document links: https://example.org/document.pdf</$checkbox>
|
||||||
|
|
||||||
|
<$checkbox tiddler=<<fa5-cfgpath "decorate-wk-extlinks">> field="text" checked="yes" unchecked="no" default="yes" > decorate external well-known links: http://github.com http://en.wikipedia.org</$checkbox>
|
13
tzk/editions/tzk/plugins/FontAwesome/plugin.info
Normal file
13
tzk/editions/tzk/plugins/FontAwesome/plugin.info
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"author": "TheDiveO",
|
||||||
|
"core-version": ">=5.1.0",
|
||||||
|
"created": "20140901105647564",
|
||||||
|
"description": "FontAwesome embedded font support for TW5",
|
||||||
|
"fa-version": "5.8.2",
|
||||||
|
"list": "readme license history",
|
||||||
|
"modified": "20200419150315831",
|
||||||
|
"plugin-type": "plugin",
|
||||||
|
"source": "https://github.com/TheDiveO/TW5FontAwesome",
|
||||||
|
"title": "$:/plugins/TheDiveO/FontAwesome",
|
||||||
|
"version": "1.2.18"
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20200926193600000
|
||||||
|
modified: 20200926193600000
|
||||||
|
tags:
|
||||||
|
title: $:/config/ShortcutInfo/remembercz
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
Create a new `remembercz` macro snippet
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20200926193600000
|
||||||
|
modified: 20200926193600000
|
||||||
|
tags:
|
||||||
|
title: $:/config/ShortcutInfo/rememberq
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
Create a new `rememberq` macro snippet
|
@ -0,0 +1,4 @@
|
|||||||
|
created: 20200516223625569
|
||||||
|
modified: 20200516223658777
|
||||||
|
tags:
|
||||||
|
title: $:/config/TiddlyRemember/DeckMapping
|
@ -0,0 +1,4 @@
|
|||||||
|
created: 20200516223625569
|
||||||
|
modified: 20200516223658777
|
||||||
|
tags:
|
||||||
|
title: $:/config/TiddlyRemember/IdPrefix
|
@ -0,0 +1,4 @@
|
|||||||
|
created: 20200516190911842
|
||||||
|
modified: 20200516223231730
|
||||||
|
tags:
|
||||||
|
title: $:/config/TiddlyRemember/TagMapping
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20200926193600000
|
||||||
|
modified: 20200926193600000
|
||||||
|
tags:
|
||||||
|
title: $:/config/shortcuts/remembercz
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
alt-shift-R
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20200926193600000
|
||||||
|
modified: 20200926193600000
|
||||||
|
tags:
|
||||||
|
title: $:/config/shortcuts/rememberq
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
alt-R
|
@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<svg width="18px" height="18px" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1120 576q0 13-9.5 22.5t-22.5 9.5-22.5-9.5-9.5-22.5q0-46-54-71t-106-25q-13 0-22.5-9.5t-9.5-22.5 9.5-22.5 22.5-9.5q50 0 99.5 16t87 54 37.5 90zm160 0q0-72-34.5-134t-90-101.5-123-62-136.5-22.5-136.5 22.5-123 62-90 101.5-34.5 134q0 101 68 180 10 11 30.5 33t30.5 33q128 153 141 298h228q13-145 141-298 10-11 30.5-33t30.5-33q68-79 68-180zm128 0q0 155-103 268-45 49-74.5 87t-59.5 95.5-34 107.5q47 28 47 82 0 37-25 64 25 27 25 64 0 52-45 81 13 23 13 47 0 46-31.5 71t-77.5 25q-20 44-60 70t-87 26-87-26-60-70q-46 0-77.5-25t-31.5-71q0-24 13-47-45-29-45-81 0-37 25-64-25-27-25-64 0-54 47-82-4-50-34-107.5t-59.5-95.5-74.5-87q-103-113-103-268 0-99 44.5-184.5t117-142 164-89 186.5-32.5 186.5 32.5 164 89 117 142 44.5 184.5z"/></svg>
|
||||||
|
<!-- Source: FontAwesome -->
|
After Width: | Height: | Size: 884 B |
@ -0,0 +1,4 @@
|
|||||||
|
created: 20200517161140014
|
||||||
|
modified: 20200517161732249
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyRemember/icons/lightbulb-black.svg
|
||||||
|
type: image/svg+xml
|
@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<svg width="18px" height="18px" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1120 576q0 13-9.5 22.5t-22.5 9.5-22.5-9.5-9.5-22.5q0-46-54-71t-106-25q-13 0-22.5-9.5t-9.5-22.5 9.5-22.5 22.5-9.5q50 0 99.5 16t87 54 37.5 90zm160 0q0-72-34.5-134t-90-101.5-123-62-136.5-22.5-136.5 22.5-123 62-90 101.5-34.5 134q0 101 68 180 10 11 30.5 33t30.5 33q128 153 141 298h228q13-145 141-298 10-11 30.5-33t30.5-33q68-79 68-180zm128 0q0 155-103 268-45 49-74.5 87t-59.5 95.5-34 107.5q47 28 47 82 0 37-25 64 25 27 25 64 0 52-45 81 13 23 13 47 0 46-31.5 71t-77.5 25q-20 44-60 70t-87 26-87-26-60-70q-46 0-77.5-25t-31.5-71q0-24 13-47-45-29-45-81 0-37 25-64-25-27-25-64 0-54 47-82-4-50-34-107.5t-59.5-95.5-74.5-87q-103-113-103-268 0-99 44.5-184.5t117-142 164-89 186.5-32.5 186.5 32.5 164 89 117 142 44.5 184.5z" fill="#fff"/></svg>
|
||||||
|
<!-- Source: FontAwesome -->
|
After Width: | Height: | Size: 896 B |
@ -0,0 +1,4 @@
|
|||||||
|
created: 20200517161252694
|
||||||
|
modified: 20200517161645377
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyRemember/icons/lightbulb-white.svg
|
||||||
|
type: image/svg+xml
|
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2020 Soren Bjornstad.
|
||||||
|
|
||||||
|
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.
|
@ -0,0 +1,2 @@
|
|||||||
|
title: $:/plugins/sobjornstad/TiddlyRemember/license
|
||||||
|
type: text/plain
|
@ -0,0 +1,93 @@
|
|||||||
|
created: 20200510004110231
|
||||||
|
modified: 20200730205800000
|
||||||
|
tags: $:/tags/Macro
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyRemember/macros/remember
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\define remembertwo(id, reference)
|
||||||
|
<div class="tr-selfidentification">
|
||||||
|
<$set name="selfid" filter="""[enlist[$reference$]]""" value="""[<$link to="$reference$">$reference$</$link>: $id$]""" emptyValue="[$id$]">
|
||||||
|
<<selfid>>
|
||||||
|
</$set>
|
||||||
|
</div>
|
||||||
|
<div class="rid">
|
||||||
|
[$id$]
|
||||||
|
</div>
|
||||||
|
<div class="tr-reference">
|
||||||
|
<$text text=<<__reference__>>/>
|
||||||
|
</div>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define rememberq(id, question, answer, reference: "")
|
||||||
|
<div class="rememberq remembertwo">
|
||||||
|
<div class="rquestion tr-ritem">
|
||||||
|
<div>Q:</div>
|
||||||
|
<p>$question$</p>
|
||||||
|
</div>
|
||||||
|
<div class="ranswer tr-ritem">
|
||||||
|
<div>A:</div>
|
||||||
|
<p>$answer$</p>
|
||||||
|
</div>
|
||||||
|
<$macrocall $name=remembertwo id=<<__id__>> reference=<<__reference__>>/>
|
||||||
|
</div>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define rememberp(id, first, second, reference: "")
|
||||||
|
<div class="rememberp remembertwo">
|
||||||
|
<div class="rfirst tr-ritem">
|
||||||
|
<div>1:</div>
|
||||||
|
<p>$first$</p>
|
||||||
|
</div>
|
||||||
|
<div class="rsecond tr-ritem">
|
||||||
|
<div>2:</div>
|
||||||
|
<p>$second$</p>
|
||||||
|
</div>
|
||||||
|
<$macrocall $name=remembertwo id=<<__id__>> reference=<<__reference__>>/>
|
||||||
|
</div>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define remembercz(id, text, mode: "block", reference: "")
|
||||||
|
<$list filter="[[$mode$]match[inline]]">
|
||||||
|
<$macrocall $name=twRememberClozeInline id=<<__id__>> text=<<__text__>> reference=<<__reference__>>/>
|
||||||
|
</$list>
|
||||||
|
<$list filter="[[$mode$]!match[inline]]">
|
||||||
|
<$macrocall $name=twRememberClozeBlock id=<<__id__>> text=<<__text__>> reference=<<__reference__>>/>
|
||||||
|
</$list>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define twRememberClozeBlock(id, text, reference)
|
||||||
|
<div class="remembercz">
|
||||||
|
<span class="cloze-identifier">cloze: </span>
|
||||||
|
<span class="cloze-text">$text$</span>
|
||||||
|
<div class="tr-selfidentification">
|
||||||
|
<$set name="selfid" filter="""[enlist[$reference$]]""" value="""[<$link to="$reference$">$reference$</$link>: $id$]""" emptyValue="[$id$]">
|
||||||
|
<<selfid>>
|
||||||
|
</$set>
|
||||||
|
</div>
|
||||||
|
<div class="rid">
|
||||||
|
[$id$]
|
||||||
|
</div>
|
||||||
|
<div class="tr-reference">
|
||||||
|
<$text text=<<__reference__>>/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define twRememberClozeInline(id, text, reference)
|
||||||
|
<span class="remembercz">
|
||||||
|
<span class="cloze-identifier">{cloze: </span>
|
||||||
|
<span class="cloze-text">$text$</span>
|
||||||
|
<span class="cloze-identifier">}</span>
|
||||||
|
<div class="tr-selfidentification">
|
||||||
|
<$set name="selfid" filter="""[enlist[$reference$]]""" value="""[<$link to="$reference$">$reference$</$link>: $id$]""" emptyValue="[$id$]">
|
||||||
|
<<selfid>>
|
||||||
|
</$set>
|
||||||
|
</div>
|
||||||
|
<div class="rid">
|
||||||
|
[$id$]
|
||||||
|
</div>
|
||||||
|
<div class="tr-reference">
|
||||||
|
<$text text=<<__reference__>>/>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
\end
|
@ -0,0 +1,12 @@
|
|||||||
|
title: $:/plugins/sobjornstad/TiddlyRemember/readme
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
TiddlyRemember is a tool that integrates TiddlyWiki with Anki.
|
||||||
|
You can interleave questions with your notes in TiddlyWiki,
|
||||||
|
then sync them into Anki notes with one click.
|
||||||
|
You can edit and move the questions around your TiddlyWiki,
|
||||||
|
and they will stay connected to the Anki notes.
|
||||||
|
Scheduling information in Anki is preserved when editing notes in TiddlyWiki.
|
||||||
|
|
||||||
|
* [[Documentation|https://sobjornstad.github.io/TiddlyRemember/]]
|
||||||
|
* [[GitHub|https://github.com/sobjornstad/TiddlyRemember]]
|
@ -0,0 +1,53 @@
|
|||||||
|
created: 20200510004425508
|
||||||
|
modified: 20200517155210548
|
||||||
|
tags: $:/tags/Stylesheet
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyRemember/stylesheets/remember
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
div.remembertwo {
|
||||||
|
border-left: 3px solid <<colour tag-background>>;
|
||||||
|
padding-left: 0.5em;
|
||||||
|
margin-bottom: 22px; /* line-height of the selfidentification block */
|
||||||
|
}
|
||||||
|
|
||||||
|
div.remembertwo .tr-ritem p {
|
||||||
|
margin-top: 0px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
margin-left: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.remembertwo .tr-ritem div {
|
||||||
|
font-weight: bold;
|
||||||
|
color: <<colour primary>>;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.remembertwo div.tr-selfidentification {
|
||||||
|
float: right;
|
||||||
|
color: <<colour muted-foreground>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.remembercz {
|
||||||
|
border-left: 3px solid <<colour tag-background>>;
|
||||||
|
padding-left: 0.5em;
|
||||||
|
line-height: 22px; /* default; setting explicitly */
|
||||||
|
}
|
||||||
|
|
||||||
|
.remembercz > span.cloze-identifier {
|
||||||
|
color: <<colour tag-background>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remembercz div.tr-selfidentification {
|
||||||
|
float: right;
|
||||||
|
margin-left: 0.5em;
|
||||||
|
color: <<colour muted-foreground>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* the separate reference and ID fields are only for TR's benefit */
|
||||||
|
div.remembertwo div.tr-reference, .remembercz div.tr-reference {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.remembertwo div.rid, .remembercz div.rid {
|
||||||
|
display: none;
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
created: 20200516223716380
|
||||||
|
modified: 20200516232507031
|
||||||
|
revision: 7
|
||||||
|
tags:
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyRemember/templates/AnkiDecks
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
<ul id="anki-decks">
|
||||||
|
<$list
|
||||||
|
filter="[[$:/config/TiddlyRemember/DeckMapping]get[text]splitregexp[\n]!is[blank]]"
|
||||||
|
variable="subfilter">
|
||||||
|
<$list filter="[<currentTiddler>subfilter<subfilter>]">
|
||||||
|
<li><<currentTiddler>></li>
|
||||||
|
</$list>
|
||||||
|
</$list>
|
||||||
|
</ul>
|
@ -0,0 +1,16 @@
|
|||||||
|
created: 20200516191131056
|
||||||
|
modified: 20200516232427612
|
||||||
|
revision: 174
|
||||||
|
tags:
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyRemember/templates/AnkiTags
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
<ul id="anki-tags">
|
||||||
|
<$list
|
||||||
|
filter="[[$:/config/TiddlyRemember/TagMapping]get[text]splitregexp[\n]!is[blank]]"
|
||||||
|
variable="subfilter">
|
||||||
|
<$list filter="[<currentTiddler>subfilter<subfilter>]">
|
||||||
|
<li><<currentTiddler>></li>
|
||||||
|
</$list>
|
||||||
|
</$list>
|
||||||
|
</ul>
|
@ -0,0 +1,14 @@
|
|||||||
|
created: 20200510211830000
|
||||||
|
modified: 20200516223853339
|
||||||
|
tags:
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyRemember/templates/TiddlyRememberParseable
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
|
||||||
|
|
||||||
|
<span id="tr-version">1.2.2</span>
|
||||||
|
|
||||||
|
{{||$:/plugins/sobjornstad/TiddlyRemember/templates/AnkiDecks}}
|
||||||
|
{{||$:/plugins/sobjornstad/TiddlyRemember/templates/AnkiTags}}
|
||||||
|
|
||||||
|
<$transclude mode="block" />
|
@ -0,0 +1,30 @@
|
|||||||
|
caption: RememberCz
|
||||||
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
||||||
|
created: 20200517155905263
|
||||||
|
description: Remember Cloze Deletion
|
||||||
|
icon: $:/plugins/sobjornstad/TiddlyRemember/icons/lightbulb-black.svg
|
||||||
|
list-after: $:/plugins/sobjornstad/TiddlyRemember/toolbar/rememberq
|
||||||
|
modified: 20200517162124307
|
||||||
|
shortcuts: ((remembercz))
|
||||||
|
tags: $:/tags/EditorToolbar
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyRemember/toolbar/remembercz
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\define getMacro()
|
||||||
|
<<remembercz "$(clozeid)$"
|
||||||
|
"Cloze">>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define prefixId() $(theprefix)$$(thetime)$
|
||||||
|
|
||||||
|
<$set name=thetime value=<<now "[UTC]YYYY0MM0DD0hh0mm0ss0XXX">> >
|
||||||
|
<$set name=theprefix value={{$:/config/TiddlyRemember/IdPrefix}}>
|
||||||
|
<$set name=clozeid value=<<prefixId>> >
|
||||||
|
<$action-sendmessage
|
||||||
|
$message="tm-edit-text-operation"
|
||||||
|
$param="replace-selection"
|
||||||
|
text=<<getMacro>>
|
||||||
|
/>
|
||||||
|
</$set>
|
||||||
|
</$set>
|
||||||
|
</$set>
|
@ -0,0 +1,30 @@
|
|||||||
|
caption: RememberQ
|
||||||
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
||||||
|
created: 20161118171456554
|
||||||
|
description: Remember Question/Answer
|
||||||
|
icon: $:/plugins/sobjornstad/TiddlyRemember/icons/lightbulb-white.svg
|
||||||
|
modified: 20200517161709608
|
||||||
|
shortcuts: ((rememberq))
|
||||||
|
tags: $:/tags/EditorToolbar
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyRemember/toolbar/rememberq
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\define getMacro()
|
||||||
|
<<rememberq "$(questionid)$"
|
||||||
|
"Q"
|
||||||
|
"A">>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define prefixId() $(theprefix)$$(thetime)$
|
||||||
|
|
||||||
|
<$set name=thetime value=<<now "[UTC]YYYY0MM0DD0hh0mm0ss0XXX">> >
|
||||||
|
<$set name=theprefix value={{$:/config/TiddlyRemember/IdPrefix}}>
|
||||||
|
<$set name=questionid value=<<prefixId>> >
|
||||||
|
<$action-sendmessage
|
||||||
|
$message="tm-edit-text-operation"
|
||||||
|
$param="replace-selection"
|
||||||
|
text=<<getMacro>>
|
||||||
|
/>
|
||||||
|
</$set>
|
||||||
|
</$set>
|
||||||
|
</$set>
|
11
tzk/editions/tzk/plugins/TiddlyRemember/plugin.info
Normal file
11
tzk/editions/tzk/plugins/TiddlyRemember/plugin.info
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"title": "$:/plugins/sobjornstad/TiddlyRemember",
|
||||||
|
"description": "TiddlyRemember: Embed Anki notes in your TiddlyWiki",
|
||||||
|
"author": "Soren Bjornstad",
|
||||||
|
"version": "1.2.2",
|
||||||
|
"core-version": ">=5.1.21",
|
||||||
|
"source": "https://github.com/sobjornstad/TiddlyRemember",
|
||||||
|
"list": "readme license",
|
||||||
|
"dependents": "",
|
||||||
|
"plugin-type": "plugin"
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
created: 20210304022132594
|
||||||
|
description: TiddlyStretch provides four macros for creating stretchtext: `stretch`, `stretch-template`, `stretch-links`, and `stretch-template-links`.
|
||||||
|
modified: 20210304032037222
|
||||||
|
tags:
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/TiddlyStretch Macros
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
The following four macros are used to create expandos:
|
||||||
|
|
||||||
|
<<stretch-template-links "[all[tiddlers+shadows]tag[$:/plugins/sobjornstad/TiddlyStretch/doc/Macro]]" "$:/plugins/sobjornstad/TiddlyStretch/doc/st/MacroSummary" "$:/plugins/sobjornstad/TiddlyStretch/doc/st/Identity">>
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20210304024358659
|
||||||
|
description: Optional wikitext to display if the filter yields no result.
|
||||||
|
modified: 20210306022349423
|
||||||
|
name: emptyMessage
|
||||||
|
tags: $:/plugins/sobjornstad/TiddlyStretch/doc/Parameter
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/EmptyMessage
|
||||||
|
type: text/vnd.tiddlywiki
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20210304024354323
|
||||||
|
description: A filter expression describing the tiddlers to list.
|
||||||
|
modified: 20210306022349455
|
||||||
|
name: filter
|
||||||
|
tags: $:/plugins/sobjornstad/TiddlyStretch/doc/Parameter
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/Filter
|
||||||
|
type: text/vnd.tiddlywiki
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20210304024150673
|
||||||
|
description: The field to display (in block mode) when the expando is expanded. Defaults to `text`.
|
||||||
|
modified: 20210306022349461
|
||||||
|
name: largeField
|
||||||
|
tags: $:/plugins/sobjornstad/TiddlyStretch/doc/Parameter
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/LargeField
|
||||||
|
type: text/vnd.tiddlywiki
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20210304024317434
|
||||||
|
description: Whether to render the expanded template in `block` or `inline` mode (default: block).
|
||||||
|
modified: 20210306022349464
|
||||||
|
name: largeMode
|
||||||
|
tags: $:/plugins/sobjornstad/TiddlyStretch/doc/Parameter
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/LargeMode
|
||||||
|
type: text/vnd.tiddlywiki
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20210304024308673
|
||||||
|
description: The template tiddler to use when the expando is expanded.
|
||||||
|
modified: 20210306022349466
|
||||||
|
name: largeTemplate
|
||||||
|
tags: $:/plugins/sobjornstad/TiddlyStretch/doc/Parameter
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/LargeTemplate
|
||||||
|
type: text/vnd.tiddlywiki
|
@ -0,0 +1,5 @@
|
|||||||
|
created: 20210304032156159
|
||||||
|
list: $:/plugins/sobjornstad/TiddlyStretch/doc/stretch $:/plugins/sobjornstad/TiddlyStretch/doc/stretch-template $:/plugins/sobjornstad/TiddlyStretch/doc/stretch-links $:/plugins/sobjornstad/TiddlyStretch/doc/stretch-template-links
|
||||||
|
modified: 20210306022058465
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/Macro
|
||||||
|
type: text/vnd.tiddlywiki
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20210304025753399
|
||||||
|
modified: 20210306022549030
|
||||||
|
tags:
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/MacroInfoTemplate
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
<$macrocall $name="stretch-template" tiddler=<<currentTiddler>> smallTemplate="$:/plugins/sobjornstad/TiddlyStretch/doc/ParameterListingTemplate" largeTemplate="$:/plugins/sobjornstad/TiddlyStretch/doc/ParametersTemplate"/>
|
@ -0,0 +1,10 @@
|
|||||||
|
created: 20210304025229965
|
||||||
|
modified: 20210306022014774
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/ParameterListingTemplate
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
<$wikify name="w" mode="inline" output="html" text={{{ [enlist{!!parameters}join[</code>, <code>]addprefix[<code>]addsuffix[</code>]] }}}>
|
||||||
|
<<w>>
|
||||||
|
</$wikify>
|
@ -0,0 +1,16 @@
|
|||||||
|
created: 20210304024810329
|
||||||
|
modified: 20210306022349469
|
||||||
|
tags:
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/ParametersTemplate
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<$list filter={{!!parameters}}>
|
||||||
|
<$tiddler tiddler={{{ [all[tiddlers+shadows]tag[$:/plugins/sobjornstad/TiddlyStretch/doc/Parameter]name<currentTiddler>] }}}>
|
||||||
|
<dt><code>{{!!name}}</code></dt>
|
||||||
|
<dd>{{!!description}}</dd>
|
||||||
|
</$tiddler>
|
||||||
|
</$list>
|
||||||
|
</dl>
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20210304024141880
|
||||||
|
description: The field to display (in inline mode) when the expando is contracted. Defaults to `description`.
|
||||||
|
modified: 20210306022830648
|
||||||
|
name: smallField
|
||||||
|
tags: $:/plugins/sobjornstad/TiddlyStretch/doc/Parameter
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/SmallField
|
||||||
|
type: text/vnd.tiddlywiki
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20210304024312605
|
||||||
|
description: Whether to render the contracted template in `block` or `inline` mode (default: inline).
|
||||||
|
modified: 20210306022349474
|
||||||
|
name: smallMode
|
||||||
|
tags: $:/plugins/sobjornstad/TiddlyStretch/doc/Parameter
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/SmallMode
|
||||||
|
type: text/vnd.tiddlywiki
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20210304024303208
|
||||||
|
description: The template tiddler to use when the expando is contracted.
|
||||||
|
modified: 20210306022807061
|
||||||
|
name: smallTemplate
|
||||||
|
tags: $:/plugins/sobjornstad/TiddlyStretch/doc/Parameter
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/SmallTemplate
|
||||||
|
type: text/vnd.tiddlywiki
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20210304024157079
|
||||||
|
description: Name of the tiddler to stretch. This tiddler will become the current tiddler when transcluded in either the small or large form.
|
||||||
|
modified: 20210306022349481
|
||||||
|
name: tiddler
|
||||||
|
tags: $:/plugins/sobjornstad/TiddlyStretch/doc/Parameter
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/Tiddler
|
||||||
|
type: text/vnd.tiddlywiki
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20210304023945301
|
||||||
|
modified: 20210306022158599
|
||||||
|
tags:
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/st/Identity
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
{{!!text}}
|
@ -0,0 +1,7 @@
|
|||||||
|
created: 20210304023959526
|
||||||
|
modified: 20210306022211394
|
||||||
|
tags:
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/st/MacroSummary
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
<code>{{!!name}}</code>: {{!!description}}
|
@ -0,0 +1,12 @@
|
|||||||
|
created: 20210304023056728
|
||||||
|
description: Create a bulleted list of expandos from the tiddlers that match a filter, displaying one of two fields on each tiddler.
|
||||||
|
modified: 20210306022047185
|
||||||
|
name: stretch-links
|
||||||
|
parameters: filter smallField largeField emptyMessage
|
||||||
|
tags: $:/plugins/sobjornstad/TiddlyStretch/doc/Macro
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/stretch-links
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
The `stretch-links` macro creates a bulleted list where each item is an expando. It is a cross between TiddlyStretch's `stretch` macro and the built-in `list-links` macro.
|
||||||
|
|
||||||
|
{{||$:/plugins/sobjornstad/TiddlyStretch/doc/MacroInfoTemplate}}
|
@ -0,0 +1,12 @@
|
|||||||
|
created: 20210304023737915
|
||||||
|
description: Create a bulleted list of expandos from the tiddlers that match a filter, rendering each tiddler through one of two templates.
|
||||||
|
modified: 20210306023011647
|
||||||
|
name: stretch-template-links
|
||||||
|
parameters: filter smallTemplate largeTemplate smallMode largeMode emptyMessage
|
||||||
|
tags: $:/plugins/sobjornstad/TiddlyStretch/doc/Macro
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/stretch-template-links
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
The `stretch-template-links` macro works just like the [[stretch-links|$:/plugins/sobjornstad/TiddlyStretch/doc/stretch-links]] macro, but instead of directly rendering one of two fields of each tiddler to be stretched, it renders the tiddler through one of two templates.
|
||||||
|
|
||||||
|
{{||$:/plugins/sobjornstad/TiddlyStretch/doc/MacroInfoTemplate}}
|
@ -0,0 +1,12 @@
|
|||||||
|
created: 20210304022640887
|
||||||
|
description: Create an expando from a tiddler, rendering the tiddler through one of two templates.
|
||||||
|
modified: 20210306022706090
|
||||||
|
name: stretch-template
|
||||||
|
parameters: tiddler smallTemplate largeTemplate smallMode largeMode
|
||||||
|
tags: $:/plugins/sobjornstad/TiddlyStretch/doc/Macro
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/stretch-template
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
The `stretch-template` macro works just like the [[stretch|$:/plugins/sobjornstad/TiddlyStretch/doc/stretch]] macro, but instead of directly rendering one of two fields of the tiddler to be stretched, it renders the tiddler through one of two templates.
|
||||||
|
|
||||||
|
{{||$:/plugins/sobjornstad/TiddlyStretch/doc/MacroInfoTemplate}}
|
@ -0,0 +1,12 @@
|
|||||||
|
created: 20210304022329779
|
||||||
|
description: Create an expando from a tiddler, displaying one of two fields on the tiddler.
|
||||||
|
modified: 20210306022740596
|
||||||
|
name: stretch
|
||||||
|
parameters: tiddler smallField largeField
|
||||||
|
tags: $:/plugins/sobjornstad/TiddlyStretch/doc/Macro
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/doc/stretch
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
The `stretch` macro creates an expando out of a single tiddler. The `smallField` is shown when contracted, and the `largeField` is shown when expanded.
|
||||||
|
|
||||||
|
{{||$:/plugins/sobjornstad/TiddlyStretch/doc/MacroInfoTemplate}}
|
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2021 Soren Bjornstad.
|
||||||
|
|
||||||
|
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.
|
@ -0,0 +1,2 @@
|
|||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/license
|
||||||
|
type: text/plain
|
@ -0,0 +1,106 @@
|
|||||||
|
created: 20210304002537855
|
||||||
|
modified: 20210304014023505
|
||||||
|
tags: $:/tags/Macro
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/macros/stretch
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\define stretchtext-tools(tiddler)
|
||||||
|
<$button class="tc-btn-invisible tc-tiddlylink" to=<<__tiddler__>>>
|
||||||
|
<i class="fa fa-expand"/>
|
||||||
|
</$button>
|
||||||
|
<$button class="tc-btn-invisible tc-tiddlylink" message="tm-edit-tiddler" param=<<__tiddler__>>>
|
||||||
|
<i class="fa fa-pen"/>
|
||||||
|
</$button>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define stretchtext-missing-tiddler(tiddler, descr: "tiddler")
|
||||||
|
<$list filter="[<__tiddler__>!is[tiddler]!is[shadow]]" variable=_>
|
||||||
|
//Missing $descr$ <$link to=<<__tiddler__>>/>//
|
||||||
|
</$list>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define stretchtext-missing(tiddler, field)
|
||||||
|
<$macrocall $name="stretchtext-missing-tiddler" tiddler=<<__tiddler__>>/>
|
||||||
|
<$list filter="[<__tiddler__>is[tiddler]!is[shadow]!has<__field__>]" variable=_>
|
||||||
|
//Missing field '$field$' on existing tiddler <$link to=<<__tiddler__>>/>//
|
||||||
|
</$list>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define stretch(tiddler, smallField: "description", largeField: "text")
|
||||||
|
<$set name="stateTiddler" value=<<qualify """$:/state/stretchtext/$tiddler$""">>>
|
||||||
|
<$reveal stateTitle=<<stateTiddler>> stateIndex=<<__tiddler__>> type="match" text="hide" default="hide">
|
||||||
|
<div class="st-closed">
|
||||||
|
<$button setTitle=<<stateTiddler>> setIndex=<<__tiddler__>> setTo="show" class="tc-btn-invisible tc-tiddlylink">
|
||||||
|
<i class="fa fa-search-plus"/>
|
||||||
|
</$button>
|
||||||
|
<$macrocall $name="stretchtext-tools" tiddler=<<__tiddler__>>/>
|
||||||
|
<$macrocall $name="stretchtext-missing" tiddler=<<__tiddler__>> field=<<__smallField__>>/>
|
||||||
|
<$tiddler tiddler=<<__tiddler__>>>
|
||||||
|
<$transclude tiddler=<<__tiddler__>> field=<<__smallField__>> />
|
||||||
|
</$tiddler>
|
||||||
|
</div>
|
||||||
|
</$reveal>
|
||||||
|
<$reveal stateTitle=<<stateTiddler>> stateIndex=<<__tiddler__>> type="match" text="show" default="hide">
|
||||||
|
<div class="st-open">
|
||||||
|
<$button setTitle=<<stateTiddler>> setIndex=<<__tiddler__>> setTo="hide" class="tc-btn-invisible tc-tiddlylink">
|
||||||
|
<i class="fa fa-search-minus st-expanded-colorize"/>
|
||||||
|
</$button>
|
||||||
|
<$macrocall $name="stretchtext-tools" tiddler=<<__tiddler__>>/>
|
||||||
|
[<$link to=<<__tiddler__>>/>]
|
||||||
|
|
||||||
|
<$macrocall $name="stretchtext-missing" tiddler=<<__tiddler__>> field=<<__largeField__>>/>
|
||||||
|
<$tiddler tiddler=<<__tiddler__>>>
|
||||||
|
<$transclude mode="block" field=<<__largeField__>> tiddler=<<__tiddler__>>/>
|
||||||
|
</$tiddler>
|
||||||
|
</div>
|
||||||
|
</$reveal>
|
||||||
|
</$set>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define stretch-template(tiddler, smallTemplate, largeTemplate, smallMode: "inline", largeMode: "block")
|
||||||
|
<$set name="stateTiddler" value=<<qualify """$:/state/stretchtext/$tiddler$""">>>
|
||||||
|
<$reveal stateTitle=<<stateTiddler>> stateIndex=<<__tiddler__>> type="match" text="hide" default="hide">
|
||||||
|
<div class="st-closed">
|
||||||
|
<$button setTitle=<<stateTiddler>> setIndex=<<__tiddler__>> setTo="show" class="tc-btn-invisible tc-tiddlylink">
|
||||||
|
<i class="fa fa-search-plus"/>
|
||||||
|
</$button>
|
||||||
|
<$macrocall $name="stretchtext-tools" tiddler=<<__tiddler__>>/>
|
||||||
|
<$macrocall $name="stretchtext-missing-tiddler" tiddler=<<__smallTemplate__>> descr="template"/>
|
||||||
|
<$tiddler tiddler=<<__tiddler__>>>
|
||||||
|
<$transclude mode=<<__smallMode__>> tiddler=<<__smallTemplate__>>/>
|
||||||
|
</$tiddler>
|
||||||
|
</div>
|
||||||
|
</$reveal>
|
||||||
|
<$reveal stateTitle=<<stateTiddler>> stateIndex=<<__tiddler__>> type="match" text="show" default="hide">
|
||||||
|
<div class="st-open">
|
||||||
|
<$button setTitle=<<stateTiddler>> setIndex=<<__tiddler__>> setTo="hide" class="tc-btn-invisible tc-tiddlylink">
|
||||||
|
<i class="fa fa-search-minus st-expanded-colorize"/>
|
||||||
|
</$button>
|
||||||
|
<$macrocall $name="stretchtext-tools" tiddler=<<__tiddler__>>/>
|
||||||
|
[<$link to=<<__tiddler__>>/>]
|
||||||
|
|
||||||
|
<$macrocall $name="stretchtext-missing-tiddler" tiddler=<<__tiddler__>>/>
|
||||||
|
<$macrocall $name="stretchtext-missing-tiddler" tiddler=<<__largeTemplate__>> descr="template"/>
|
||||||
|
<$tiddler tiddler=<<__tiddler__>>>
|
||||||
|
<$transclude mode=<<__largeMode__>> tiddler=<<__largeTemplate__>>/>
|
||||||
|
</$tiddler>
|
||||||
|
</div>
|
||||||
|
</$reveal>
|
||||||
|
</$set>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define stretch-links(filter, smallField: "description", largeField: "text", emptyMessage: "")
|
||||||
|
<ul>
|
||||||
|
<$list filter=<<__filter__>> emptyMessage=<<__emptyMessage__>>>
|
||||||
|
<li><$macrocall $name="stretch" tiddler=<<currentTiddler>> smallField=<<__smallField__>> largeField=<<__largeField__>>/></li>
|
||||||
|
</$list>
|
||||||
|
</ul>
|
||||||
|
\end
|
||||||
|
|
||||||
|
\define stretch-template-links(filter, smallTemplate, largeTemplate, smallMode: "inline", largeMode: "block", emptyMessage: "")
|
||||||
|
<ul>
|
||||||
|
<$list filter=<<__filter__>> emptyMessage=<<__emptyMessage__>>>
|
||||||
|
<li><$macrocall $name="stretch-template" tiddler=<<currentTiddler>> smallTemplate=<<__smallTemplate__>> largeTemplate=<<__largeTemplate__>> smallMode=<<__smallMode__>> largeMode=<<__largeMode__>>/></li>
|
||||||
|
</$list>
|
||||||
|
</ul>
|
||||||
|
\end
|
@ -0,0 +1,8 @@
|
|||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/readme
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
TiddlyStretch allows you to conveniently write
|
||||||
|
[[stretchtext|https://en.wikipedia.org/wiki/StretchText]] in TiddlyWiki.
|
||||||
|
|
||||||
|
* [[Documentation|https://sobjornstad.github.io/TiddlyStretch/]]
|
||||||
|
* [[GitHub|https://github.com/sobjornstad/TiddlyStretch]]
|
@ -0,0 +1,19 @@
|
|||||||
|
created: 20210304003038202
|
||||||
|
modified: 20210304003233865
|
||||||
|
tags: $:/tags/Stylesheet
|
||||||
|
title: $:/plugins/sobjornstad/TiddlyStretch/styles/stretch
|
||||||
|
|
||||||
|
.st-open {
|
||||||
|
border-left: 3px solid <<colour muted-foreground>>;
|
||||||
|
padding-left: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.st-open p {
|
||||||
|
margin-block-start: 0em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.st-closed { }
|
||||||
|
|
||||||
|
i.st-expanded-colorize {
|
||||||
|
color: <<colour tag-background>>;
|
||||||
|
}
|
11
tzk/editions/tzk/plugins/TiddlyStretch/plugin.info
Normal file
11
tzk/editions/tzk/plugins/TiddlyStretch/plugin.info
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"title": "$:/plugins/sobjornstad/TiddlyStretch",
|
||||||
|
"description": "Stretchtext in TiddlyWiki",
|
||||||
|
"author": "Soren Bjornstad",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"core-version": ">=5.1.21",
|
||||||
|
"source": "https://github.com/sobjornstad/TiddlyStretch",
|
||||||
|
"list": "readme license [[TiddlyStretch Macros]]",
|
||||||
|
"dependents": "$:/plugins/TheDiveO/FontAwesome",
|
||||||
|
"plugin-type": "plugin"
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"Ctrl-Space": "autocomplete"
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
created: 20210328004023360
|
||||||
|
extend: extraKeys
|
||||||
|
modified: 20210328004023360
|
||||||
|
title: $:/config/codemirror/autocomplete
|
||||||
|
type: json
|
@ -0,0 +1,9 @@
|
|||||||
|
created: 20210328020051916
|
||||||
|
modified: 20210328053732117
|
||||||
|
tags: $:/tags/Macro
|
||||||
|
title: $:/plugins/adithyab/cmplus/macros
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\define cmcolour(name)
|
||||||
|
{{$:/plugins/adithyab/cmplus/settings##$name$}}
|
||||||
|
\end
|
@ -0,0 +1,8 @@
|
|||||||
|
created: 20210328060842133
|
||||||
|
modified: 20210328060929665
|
||||||
|
tags:
|
||||||
|
title: $:/plugins/adithyab/cmplus/readme
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
!! TW5 CodeMirrorPlus
|
||||||
|
Towards making a better editor for TiddlyWiki5.
|
@ -0,0 +1,25 @@
|
|||||||
|
monospace-font:monospace,"Courier New"
|
||||||
|
selected:rgba(100,100,100,0.3)
|
||||||
|
linenumber:<<colour primary>>
|
||||||
|
keyword:<<colour code-foreground>>
|
||||||
|
macro:<<colour code-foreground>>
|
||||||
|
quote:<<colour primary>>
|
||||||
|
pre:<<colour foreground>>
|
||||||
|
externallink:<<colour external-link-foreground>>
|
||||||
|
internallink:<<colour tiddler-title-foreground>>
|
||||||
|
link:<<colour tiddler-title-foreground>>
|
||||||
|
transclude:<<colour tiddler-title-foreground>>
|
||||||
|
monospace:<<colour foreground>>
|
||||||
|
list1:<<colour primary>>
|
||||||
|
list2:<<colour primary>>
|
||||||
|
list3:<<colour primary>>
|
||||||
|
list4:<<colour primary>>
|
||||||
|
list5:<<colour primary>>
|
||||||
|
list6:<<colour primary>>
|
||||||
|
h1:<<colour primary>>
|
||||||
|
h2:<<colour primary>>
|
||||||
|
h3:<<colour primary>>
|
||||||
|
h4:<<colour primary>>
|
||||||
|
h5:<<colour primary>>
|
||||||
|
h6:<<colour primary>>
|
||||||
|
hr:<<colour primary>>
|
@ -0,0 +1,5 @@
|
|||||||
|
created: 20210328015904035
|
||||||
|
modified: 20210328054754059
|
||||||
|
tags:
|
||||||
|
title: $:/plugins/adithyab/cmplus/settings
|
||||||
|
type: application/x-tiddler-dictionary
|
@ -0,0 +1,46 @@
|
|||||||
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
||||||
|
|
||||||
|
(function (mod) {
|
||||||
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
mod(require("../../lib/codemirror"));
|
||||||
|
else if (typeof define == "function" && define.amd) // AMD
|
||||||
|
define(["../../lib/codemirror"], mod);
|
||||||
|
else // Plain browser env
|
||||||
|
mod(CodeMirror);
|
||||||
|
})(function (CodeMirror) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
CodeMirror.registerHelper('hint', 'anyword', function (editor) {
|
||||||
|
var cur = editor.getCursor();
|
||||||
|
var curLine = editor.getLine(cur.line);
|
||||||
|
var start = cur.ch;
|
||||||
|
var end = start;
|
||||||
|
var max_length = 30
|
||||||
|
while (start) {
|
||||||
|
if (end - start > max_length) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var ch = curLine.charAt(start - 1)
|
||||||
|
if (!(ch == '[' || ch == '{' || ch == "|")) {
|
||||||
|
start--;
|
||||||
|
} else {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var curWord = start !== end && curLine.slice(start, end);
|
||||||
|
if (curLine.charAt(start) == '$') {
|
||||||
|
return {
|
||||||
|
list: $tw.wiki.filterTiddlers(`[all[tiddlers]search:title:literal[${curWord}]!prefix[$:/state]]`),
|
||||||
|
from: CodeMirror.Pos(cur.line, start),
|
||||||
|
to: CodeMirror.Pos(cur.line, end)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return {
|
||||||
|
list: $tw.wiki.filterTiddlers(`[all[tiddlers]!is[system]!is[shadow]search:title:literal[${curWord}]!prefix[$:/state]]`),
|
||||||
|
from: CodeMirror.Pos(cur.line, start),
|
||||||
|
to: CodeMirror.Pos(cur.line, end)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
});
|
@ -0,0 +1,5 @@
|
|||||||
|
created: 20210328004232522
|
||||||
|
modified: 20210328010801763
|
||||||
|
module-type: codemirror
|
||||||
|
title: $:/plugins/tiddlywiki/codemirror/addon/hint/anyword-hint.js
|
||||||
|
type: application/javascript
|
@ -0,0 +1,36 @@
|
|||||||
|
.CodeMirror-hints {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 10;
|
||||||
|
overflow: hidden;
|
||||||
|
list-style: none;
|
||||||
|
|
||||||
|
margin: 0;
|
||||||
|
padding: 2px;
|
||||||
|
|
||||||
|
-webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
||||||
|
-moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
||||||
|
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
||||||
|
border-radius: 3px;
|
||||||
|
border: 1px solid silver;
|
||||||
|
|
||||||
|
background: white;
|
||||||
|
font-size: 90%;
|
||||||
|
font-family: monospace;
|
||||||
|
|
||||||
|
max-height: 20em;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.CodeMirror-hint {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 4px;
|
||||||
|
border-radius: 2px;
|
||||||
|
white-space: pre;
|
||||||
|
color: black;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
li.CodeMirror-hint-active {
|
||||||
|
background: #08f;
|
||||||
|
color: white;
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
created: 20210328012141944
|
||||||
|
modified: 20210328012141944
|
||||||
|
tags: $:/tags/Stylesheet
|
||||||
|
title: $:/plugins/tiddlywiki/codemirror/addon/hint/show-hint.css
|
||||||
|
type: text/css
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@
|
|||||||
|
created: 20210328012150088
|
||||||
|
modified: 20210328012150088
|
||||||
|
module-type: codemirror
|
||||||
|
title: $:/plugins/tiddlywiki/codemirror/addon/hint/show-hint.js
|
||||||
|
type: application/javascript
|
@ -0,0 +1,209 @@
|
|||||||
|
created: 20200815103937889
|
||||||
|
modified: 20210328054714579
|
||||||
|
module-type: codemirror-theme
|
||||||
|
name: cmplus
|
||||||
|
tags: $:/tags/Stylesheet
|
||||||
|
title: $:/plugins/tiddlywiki/codemirror/mode/tw5/tw5.css
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
```
|
||||||
|
/*
|
||||||
|
Tiddlywiki Metadata
|
||||||
|
----
|
||||||
|
Name: $:/plugins/tiddlywiki/codemirror/mode/tw5/tw5.css
|
||||||
|
|
||||||
|
Additional Fields -
|
||||||
|
module-type: codemirror-theme
|
||||||
|
name: cmplus
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
|
||||||
|
.cm-s-cmplus{
|
||||||
|
line-height: 1.5em;
|
||||||
|
background: <<colour tiddler-editor-background>> !important;
|
||||||
|
color: <<colour foreground>> !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .CodeMirror-lines {
|
||||||
|
padding: 8px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .CodeMirror-linenumber {
|
||||||
|
color: <<cmcolour linenumber>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .CodeMirror-gutters {
|
||||||
|
background-color: <<colour page-background>>;
|
||||||
|
padding-right: 10px;
|
||||||
|
z-index: 3;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus div.CodeMirror-cursor {
|
||||||
|
border-left: 3px solid <<colour very-muted-foreground>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .CodeMirror-activeline-background {
|
||||||
|
background: <<colour tiddler-editor-fields-even>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .CodeMirror-selected {
|
||||||
|
background: <<cmcolour selected>> !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-comment {
|
||||||
|
font-style: italic;
|
||||||
|
color: <<colour muted-foreground>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .CodeMirror-matchingbracket {
|
||||||
|
text-decoration: underline;
|
||||||
|
color: <<cmcolour matching-bracket>> !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-strikethrough {
|
||||||
|
text-decoration-color: <<colour very-muted-foreground>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-underlined {
|
||||||
|
text-decoration-line: underline;
|
||||||
|
text-decoration-style: solid;
|
||||||
|
text-decoration-color: <<colour very-muted-foreground>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-superscript {
|
||||||
|
vertical-align: super;
|
||||||
|
font-size: 0.7em;
|
||||||
|
line-height: 0.1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-subscript {
|
||||||
|
font-size: 0.7em;
|
||||||
|
line-height: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-macro {
|
||||||
|
color: <<cmcolour macro>>;
|
||||||
|
font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-keyword {
|
||||||
|
color: <<cmcolour keyword>>;
|
||||||
|
font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-quote {
|
||||||
|
font-style: italic;
|
||||||
|
padding-left: 0.6em;
|
||||||
|
border-left: <<cmcolour quote>> solid 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-hr {
|
||||||
|
color: <<cmcolour hr>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-h1 {
|
||||||
|
color: <<cmcolour h1>>;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 1.383em;
|
||||||
|
line-height: 1.802em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-h2 {
|
||||||
|
color: <<cmcolour h2>>;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 1.296em;
|
||||||
|
line-height: 1.602em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-h3 {
|
||||||
|
color: <<cmcolour h3>>;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 1.215em;
|
||||||
|
line-height: 1.424em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-h4 {
|
||||||
|
color: <<cmcolour h4>>;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 1.138em;
|
||||||
|
line-height: 1.266em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-h5 {
|
||||||
|
color: <<cmcolour h5>>;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 1.067em;
|
||||||
|
line-height: 1.125em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-h6 {
|
||||||
|
color: <<cmcolour h6>>;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-link {
|
||||||
|
color: <<cmcolour link>>;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-internallink {
|
||||||
|
color: <<cmcolour internallink>>;
|
||||||
|
font-weight:600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-externallink {
|
||||||
|
color: <<cmcolour externallink>>;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-transclude {
|
||||||
|
color: <<cmcolour transclude>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-pre {
|
||||||
|
color: <<cmcolour pre>>;
|
||||||
|
font-family: {{$:/plugins/adithyab/cmplus/settings##monospace-font}};
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-monospace {
|
||||||
|
color: <<cmcolour monospace>>;
|
||||||
|
font-family: {{$:/plugins/adithyab/cmplus/settings##monospace-font}};
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-list1 {
|
||||||
|
color: <<cmcolour list1>>;
|
||||||
|
padding-left: 1em;
|
||||||
|
padding-right: 0.5em;
|
||||||
|
font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-list2 {
|
||||||
|
color: <<cmcolour list2>>;
|
||||||
|
padding-left: 2em;
|
||||||
|
padding-right: 0.5em;
|
||||||
|
font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-list3 {
|
||||||
|
color: <<cmcolour list3>>;
|
||||||
|
padding-left: 3em;
|
||||||
|
padding-right: 0.5em;
|
||||||
|
font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-list4 {
|
||||||
|
color: <<cmcolour list4>>;
|
||||||
|
padding-left: 4em;
|
||||||
|
padding-right: 0.5em;
|
||||||
|
font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};
|
||||||
|
}
|
||||||
|
|
||||||
|
.cm-s-cmplus .cm-list5 {
|
||||||
|
color: <<cmcolour list5>>;
|
||||||
|
padding-left: 5em;
|
||||||
|
padding-right: 0.5em;
|
||||||
|
font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};
|
||||||
|
}
|
@ -0,0 +1,395 @@
|
|||||||
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||||
|
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
||||||
|
|
||||||
|
/***
|
||||||
|
|
||||||
|
|''Name''|tw5.js|
|
||||||
|
|''Description''|Enables TiddlyWikiy syntax highlighting using CodeMirror|
|
||||||
|
|''Original Contributor''|PMario|
|
||||||
|
|''Author''|[[adithya-badidey|https://github.com/adithya-badidey]]|
|
||||||
|
|''Version''|0.1.8|
|
||||||
|
|''Status''|''stable''|
|
||||||
|
|''Source''|[[GitHub|https://github.com/adithya-badidey/TW5-codemirror-plus]]|
|
||||||
|
|''Documentation''|https://codemirror.tiddlyspace.com/|
|
||||||
|
|''License''|[[MIT License|http://www.opensource.org/licenses/mit-license.php]]|
|
||||||
|
|''Requires''|codemirror.js|
|
||||||
|
|''Keywords''|syntax highlighting color code mirror codemirror|
|
||||||
|
|
||||||
|
!! Tiddlywiki Metadata
|
||||||
|
Name: $:/plugins/tiddlywiki/codemirror/mode/tw5/tw5.js
|
||||||
|
Type: application/javascript
|
||||||
|
Additional Field:
|
||||||
|
module-type: codemirror
|
||||||
|
|
||||||
|
Info: CoreVersion parameter is needed for TiddlyWiki only!
|
||||||
|
|
||||||
|
***/
|
||||||
|
|
||||||
|
(function (mod) {
|
||||||
|
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
||||||
|
mod(require("../../lib/codemirror"));
|
||||||
|
else if (typeof define == "function" && define.amd) // AMD
|
||||||
|
define(["../../lib/codemirror"], mod);
|
||||||
|
else // Plain browser env
|
||||||
|
mod(CodeMirror);
|
||||||
|
})(function (CodeMirror) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
CodeMirror.defineMode("tiddlywiki5", function () {
|
||||||
|
// Tokenizer
|
||||||
|
var textwords = {};
|
||||||
|
|
||||||
|
var keywords = {
|
||||||
|
"changecount": true, "colour": true,
|
||||||
|
"colour-picker": true, "contrastcolour": true,
|
||||||
|
"copy-to-clipboard": true, "csvtiddlers": true,
|
||||||
|
"datauri": true, "dumpvariables": true,
|
||||||
|
"image-picker": true, "jsontiddler": true,
|
||||||
|
"jsontiddlers": true, "lingo": true,
|
||||||
|
"list-links": true, "list-links-draggable": true,
|
||||||
|
"list-tagged-draggable": true, "list-thumbnails": true,
|
||||||
|
"makedatauri": true, "now": true,
|
||||||
|
"qualify": true, "resolvepath": true,
|
||||||
|
"box-shadow": true, "filter": true,
|
||||||
|
"transition": true, "background-linear-gradient": true,
|
||||||
|
"transform-origin": true, "toc": true,
|
||||||
|
"toc-expandable": true, "toc-selective-expandable": true,
|
||||||
|
"toc-tabbed-internal-nav": true, "toc-tabbed-external-nav": true,
|
||||||
|
"tabs": true, "tag": true,
|
||||||
|
"tag-picker": true, "tag-pill": true,
|
||||||
|
"thumbnail": true, "timeline": true,
|
||||||
|
"tree": true, "unusedtitle": true,
|
||||||
|
"version": true
|
||||||
|
};
|
||||||
|
|
||||||
|
var isSpaceName = /[\w_\-]/i,
|
||||||
|
reHR = /^\-\-\-\-+$/, // <hr>
|
||||||
|
reBlockQuote = /^<<</,
|
||||||
|
rePreStart = /^```$/;
|
||||||
|
|
||||||
|
function chain(stream, state, f) {
|
||||||
|
state.tokenize = f;
|
||||||
|
return f(stream, state);
|
||||||
|
}
|
||||||
|
|
||||||
|
function tokenBase(stream, state) {
|
||||||
|
var sol = stream.sol(), // sol() -> Returns true only if the stream is at the start of the line.
|
||||||
|
ch = stream.peek(); // Returns the next character in the stream without advancing it. Will return a null at the end of the line.
|
||||||
|
|
||||||
|
// check start of blocks
|
||||||
|
if (sol && /[<\/\*{}\-`]/.test(ch)) { //is at the start of a line and the next char is not
|
||||||
|
if (stream.match(reBlockQuote)) {
|
||||||
|
return chain(stream, state, twTokenQuote);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (stream.match(reHR))
|
||||||
|
return 'hr';
|
||||||
|
|
||||||
|
if (stream.match(rePreStart))
|
||||||
|
return chain(stream, state, twTokenPre);
|
||||||
|
}
|
||||||
|
|
||||||
|
stream.next();
|
||||||
|
if (sol && /[\/\*!#;:>|]/.test(ch)) {
|
||||||
|
if (ch == "!") { // tw header
|
||||||
|
var count = 1;
|
||||||
|
while (stream.eat('!'))
|
||||||
|
count++;
|
||||||
|
stream.skipToEnd();
|
||||||
|
return "h" + count;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ch == "*" || ch == "#") { // tw list
|
||||||
|
var count = 1;
|
||||||
|
while (stream.eat('*') || stream.eat('#'))
|
||||||
|
count++;
|
||||||
|
return "list" + count;
|
||||||
|
}
|
||||||
|
if (ch == ";") { // definition list, term
|
||||||
|
stream.eatWhile(';');
|
||||||
|
return "list1";
|
||||||
|
}
|
||||||
|
if (ch == ":") { // definition list, description
|
||||||
|
stream.eatWhile(':');
|
||||||
|
return "list2";
|
||||||
|
}
|
||||||
|
if (ch == ">") { // single line quote
|
||||||
|
stream.eatWhile(">");
|
||||||
|
return "quote";
|
||||||
|
}
|
||||||
|
if (ch == '|')
|
||||||
|
return 'header';
|
||||||
|
}
|
||||||
|
|
||||||
|
// rudimentary html:// file:// link matching. TW knows much more ...
|
||||||
|
if (/[hf]/i.test(ch) &&
|
||||||
|
/[ti]/i.test(stream.peek()) &&
|
||||||
|
stream.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i, true))
|
||||||
|
return "externallink";
|
||||||
|
|
||||||
|
if (ch == '`') { //
|
||||||
|
return chain(stream, state, twTokenMonospace);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ch == "/" && stream.eat("/")) { //
|
||||||
|
return chain(stream, state, twTokenEm);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ch == "{" && stream.eat("{"))
|
||||||
|
return chain(stream, state, twTranslclude);
|
||||||
|
|
||||||
|
if (ch == "[" && stream.eat("[")) // tw InternalLink
|
||||||
|
return chain(stream, state, twInternalLink);
|
||||||
|
|
||||||
|
if (ch == "_" && stream.eat("_")) // tw underline
|
||||||
|
return chain(stream, state, twTokenUnderline);
|
||||||
|
|
||||||
|
if (ch == "^" && stream.eat("^"))
|
||||||
|
return chain(stream, state, twSuperscript);
|
||||||
|
|
||||||
|
if (ch == "," && stream.eat(",")) // tw underline
|
||||||
|
return chain(stream, state, twSubscript);
|
||||||
|
|
||||||
|
// tw strikethrough
|
||||||
|
if (ch == "~" && stream.eat("~")) {
|
||||||
|
return chain(stream, state, twTokenStrike);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ch == "'" && stream.eat("'")) // tw bold
|
||||||
|
return chain(stream, state, twTokenStrong);
|
||||||
|
|
||||||
|
if (ch == "<" && stream.eat("<")) // tw macro
|
||||||
|
return chain(stream, state, twTokenMacro);
|
||||||
|
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
|
// // tw invisible comment
|
||||||
|
// function twTokenComment(stream, state) {
|
||||||
|
// var maybeEnd = false, ch;
|
||||||
|
// while (ch = stream.next()) {
|
||||||
|
// if (ch == "/" && maybeEnd) {
|
||||||
|
// state.tokenize = tokenBase;
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
// maybeEnd = (ch == "%");
|
||||||
|
// }
|
||||||
|
// return "comment";
|
||||||
|
// }
|
||||||
|
|
||||||
|
// tw strong / bold
|
||||||
|
function twTokenStrong(stream, state) {
|
||||||
|
var maybeEnd = false,
|
||||||
|
ch;
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == "'" && maybeEnd) {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
maybeEnd = (ch == "'");
|
||||||
|
}
|
||||||
|
return "strong";
|
||||||
|
}
|
||||||
|
|
||||||
|
function twTokenMonospace(stream, state) {
|
||||||
|
var ch;
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == "`") {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "monospace";
|
||||||
|
}
|
||||||
|
|
||||||
|
// tw em / italic
|
||||||
|
function twTokenEm(stream, state) {
|
||||||
|
var maybeEnd = false,
|
||||||
|
ch;
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == "/" && maybeEnd) {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
maybeEnd = (ch == "/");
|
||||||
|
}
|
||||||
|
return "em";
|
||||||
|
}
|
||||||
|
|
||||||
|
// tw transclusions
|
||||||
|
function twTranslclude(stream, state) {
|
||||||
|
var maybeEnd = false,
|
||||||
|
ch;
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == "}" && maybeEnd) {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
maybeEnd = (ch == "}");
|
||||||
|
}
|
||||||
|
return "transclude";
|
||||||
|
}
|
||||||
|
|
||||||
|
// tw internal links
|
||||||
|
function twInternalLink(stream, state) {
|
||||||
|
if (stream.current() == '[[') {
|
||||||
|
state.pastDivider = false;
|
||||||
|
// console.log("Start of link");
|
||||||
|
return 'link';
|
||||||
|
}
|
||||||
|
if (stream.peek() == ']') {
|
||||||
|
stream.next()
|
||||||
|
if(stream.next() == ']') {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
// console.log("End of link");
|
||||||
|
return 'link';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var pastDivider = state.pastDivider,
|
||||||
|
ch;
|
||||||
|
while (ch = stream.peek()) {
|
||||||
|
// console.log("Peeking :" + ch);
|
||||||
|
if (!pastDivider && ch=='|') {
|
||||||
|
stream.next();
|
||||||
|
state.pastDivider = true;
|
||||||
|
// console.log("Past the divider");
|
||||||
|
return 'link';
|
||||||
|
}
|
||||||
|
if (ch == "]" && stream.peek() == "]") {
|
||||||
|
// console.log("Found end of link");
|
||||||
|
return "internallink";
|
||||||
|
}
|
||||||
|
ch = stream.next();
|
||||||
|
if (/[hf]/i.test(ch) &&
|
||||||
|
/[ti]/i.test(stream.peek()) &&
|
||||||
|
stream.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i, true)) {
|
||||||
|
// console.log("Found external link");
|
||||||
|
return "externallink";
|
||||||
|
}
|
||||||
|
stream.eatWhile(/[^|\]]/);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// tw underlined text
|
||||||
|
function twTokenUnderline(stream, state) {
|
||||||
|
var maybeEnd = false,
|
||||||
|
ch;
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == "_" && maybeEnd) {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
maybeEnd = (ch == "_");
|
||||||
|
}
|
||||||
|
return "underlined";
|
||||||
|
}
|
||||||
|
|
||||||
|
function twSubscript(stream, state) {
|
||||||
|
var maybeEnd = false, ch;
|
||||||
|
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == "," && maybeEnd) {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
maybeEnd = (ch == ",");
|
||||||
|
}
|
||||||
|
return "subscript";
|
||||||
|
}
|
||||||
|
|
||||||
|
function twSuperscript(stream, state) {
|
||||||
|
var maybeEnd = false, ch;
|
||||||
|
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == "^" && maybeEnd) {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
maybeEnd = (ch == "^");
|
||||||
|
}
|
||||||
|
return "superscript";
|
||||||
|
}
|
||||||
|
|
||||||
|
function twTokenStrike(stream, state) {
|
||||||
|
var maybeEnd = false, ch;
|
||||||
|
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == "~" && maybeEnd) {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
maybeEnd = (ch == "~");
|
||||||
|
}
|
||||||
|
return "strikethrough";
|
||||||
|
}
|
||||||
|
|
||||||
|
function twTokenPre(stream, state) {
|
||||||
|
var sol = stream.sol(), maybeEnd = false, surelyend = false, ch;
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == '`' && surelyend && stream.eol()) {
|
||||||
|
stream.next();
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
return "pre";
|
||||||
|
}
|
||||||
|
surelyend = (maybeEnd && (ch == '`'));
|
||||||
|
maybeEnd = (sol && ch == '`');
|
||||||
|
sol = stream.sol();
|
||||||
|
}
|
||||||
|
return "pre";
|
||||||
|
}
|
||||||
|
|
||||||
|
function twTokenQuote(stream, state) {
|
||||||
|
var sol = stream.sol(), maybeEnd = false, surelyend = false, ch;
|
||||||
|
while (ch = stream.next()) {
|
||||||
|
if (ch == '<' && surelyend) {
|
||||||
|
stream.skipToEnd();
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
return "quote";
|
||||||
|
}
|
||||||
|
surelyend = (maybeEnd && (ch == '<'));
|
||||||
|
maybeEnd = (sol && ch == '<');
|
||||||
|
sol = stream.sol();
|
||||||
|
}
|
||||||
|
return "quote";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function twTokenMacro(stream, state) {
|
||||||
|
if (stream.current() == '<<') {
|
||||||
|
return 'macro';
|
||||||
|
}
|
||||||
|
|
||||||
|
var ch = stream.next();
|
||||||
|
if (!ch) {
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (ch == ">") {
|
||||||
|
if (stream.peek() == '>') {
|
||||||
|
stream.next();
|
||||||
|
state.tokenize = tokenBase;
|
||||||
|
return "macro";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stream.eatWhile(/[\w\$_]/);
|
||||||
|
return keywords.propertyIsEnumerable(stream.current()) ? "keyword" : "macro"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Interface
|
||||||
|
return {
|
||||||
|
startState: function () {
|
||||||
|
return { tokenize: tokenBase };
|
||||||
|
},
|
||||||
|
|
||||||
|
token: function (stream, state) {
|
||||||
|
if (stream.eatSpace()) return null;
|
||||||
|
var style = state.tokenize(stream, state);
|
||||||
|
return style;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
CodeMirror.defineMIME("text/vnd.tiddlywiki", "tiddlywiki5");
|
||||||
|
});
|
@ -0,0 +1,6 @@
|
|||||||
|
created: 20200818164318584
|
||||||
|
modified: 20210327052450347
|
||||||
|
module-type: codemirror
|
||||||
|
revision: 1
|
||||||
|
title: $:/plugins/tiddlywiki/codemirror/mode/tw5/tw5.js
|
||||||
|
type: application/javascript
|
11
tzk/editions/tzk/plugins/cmplus/plugin.info
Normal file
11
tzk/editions/tzk/plugins/cmplus/plugin.info
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"created": "20210327052508762",
|
||||||
|
"dependents": "$:/plugins/tiddlywiki/codemirror",
|
||||||
|
"description": "A better editor for TW5 - built on the Official CodeMirror Plugin",
|
||||||
|
"modified": "20210510224047195",
|
||||||
|
"name": "CMPlus",
|
||||||
|
"plugin-type": "plugin",
|
||||||
|
"tags": "",
|
||||||
|
"title": "$:/plugins/adithyab/cmplus",
|
||||||
|
"version": "0.2.1"
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
tags: $:/tags/Image
|
||||||
|
title: $:/plugins/kixam/datepicker/icon
|
||||||
|
|
||||||
|
<svg height="22pt" width="22pt" viewBox="0 0 128 128">
|
||||||
|
<path d="M 13.775391 0 L 2.0664062 6.8671875 L 2.0664062 20.599609 L 13.775391 27.464844 L 25.484375 20.599609 L 25.484375 6.8671875 L 13.775391 0 z M 9.6582031 3.6230469 L 10.292969 3.6230469 C 10.728856 3.6230469 11.101705 3.7794391 11.412109 4.0898438 C 11.722514 4.4002483 11.876953 4.7730982 11.876953 5.2089844 L 11.876953 6.1601562 L 15.681641 6.1601562 L 15.681641 5.2089844 C 15.681641 4.7730982 15.83608 4.4002483 16.146484 4.0898438 C 16.456889 3.7794391 16.829738 3.6230469 17.265625 3.6230469 L 17.900391 3.6230469 C 18.336278 3.6230469 18.709127 3.7794391 19.019531 4.0898438 C 19.329936 4.4002483 19.484375 4.7730982 19.484375 5.2089844 L 19.484375 6.1601562 L 20.753906 6.1601562 C 21.097333 6.1601562 21.393566 6.284192 21.644531 6.5351562 C 21.895499 6.7861224 22.021484 7.0843085 22.021484 7.4277344 L 22.021484 20.107422 C 22.021484 20.450848 21.895499 20.749034 21.644531 21 C 21.393566 21.250966 21.097333 21.375 20.753906 21.375 L 6.8046875 21.375 C 6.4612605 21.375 6.1650274 21.250966 5.9140625 21 C 5.6630976 20.749034 5.5371094 20.450848 5.5371094 20.107422 L 5.5371094 7.4277344 C 5.5371094 7.0843085 5.6630976 6.7861224 5.9140625 6.5351562 C 6.1650274 6.284192 6.4612605 6.1601563 6.8046875 6.1601562 L 8.0722656 6.1601562 L 8.0722656 5.2089844 C 8.0722656 4.7730982 8.2286584 4.4002483 8.5390625 4.0898438 C 8.8494667 3.7794391 9.2223157 3.6230469 9.6582031 3.6230469 z M 9.6582031 4.890625 C 9.5723471 4.890625 9.4982891 4.923586 9.4355469 4.9863281 C 9.3728059 5.0490687 9.3417969 5.1231279 9.3417969 5.2089844 L 9.3417969 8.0605469 C 9.3417969 8.1464033 9.3728059 8.222414 9.4355469 8.2851562 C 9.4982891 8.3478969 9.5723471 8.3789062 9.6582031 8.3789062 L 10.292969 8.3789062 C 10.378825 8.3789062 10.452884 8.3478969 10.515625 8.2851562 C 10.578367 8.222414 10.609375 8.1464033 10.609375 8.0605469 L 10.609375 5.2089844 C 10.609375 5.1231279 10.578367 5.0490687 10.515625 4.9863281 C 10.452884 4.923586 10.378825 4.890625 10.292969 4.890625 L 9.6582031 4.890625 z M 17.265625 4.890625 C 17.179769 4.890625 17.105711 4.923586 17.042969 4.9863281 C 16.980227 5.0490687 16.949219 5.1231279 16.949219 5.2089844 L 16.949219 8.0605469 C 16.949219 8.1464033 16.980227 8.222414 17.042969 8.2851562 C 17.105711 8.3478969 17.179769 8.3789062 17.265625 8.3789062 L 17.900391 8.3789062 C 17.986247 8.3789062 18.060305 8.3478969 18.123047 8.2851562 C 18.185788 8.222414 18.216797 8.1464033 18.216797 8.0605469 L 18.216797 5.2089844 C 18.216797 5.1231279 18.185788 5.0490687 18.123047 4.9863281 C 18.060305 4.923586 17.986247 4.890625 17.900391 4.890625 L 17.265625 4.890625 z M 6.8046875 9.9628906 L 6.8046875 12.816406 L 9.6582031 12.816406 L 9.6582031 9.9628906 L 6.8046875 9.9628906 z M 10.292969 9.9628906 L 10.292969 12.816406 L 13.462891 12.816406 L 13.462891 9.9628906 L 10.292969 9.9628906 z M 14.095703 9.9628906 L 14.095703 12.816406 L 17.265625 12.816406 L 17.265625 9.9628906 L 14.095703 9.9628906 z M 17.900391 9.9628906 L 17.900391 12.816406 L 20.753906 12.816406 L 20.753906 9.9628906 L 17.900391 9.9628906 z M 6.8046875 13.451172 L 6.8046875 16.621094 L 9.6582031 16.621094 L 9.6582031 13.451172 L 6.8046875 13.451172 z M 10.292969 13.451172 L 10.292969 16.621094 L 13.462891 16.621094 L 13.462891 13.451172 L 10.292969 13.451172 z M 14.095703 13.451172 L 14.095703 16.621094 L 17.265625 16.621094 L 17.265625 13.451172 L 14.095703 13.451172 z M 17.900391 13.451172 L 17.900391 16.621094 L 20.753906 16.621094 L 20.753906 13.451172 L 17.900391 13.451172 z M 6.8046875 17.253906 L 6.8046875 20.107422 L 9.6582031 20.107422 L 9.6582031 17.253906 L 6.8046875 17.253906 z M 10.292969 17.253906 L 10.292969 20.107422 L 13.462891 20.107422 L 13.462891 17.253906 L 10.292969 17.253906 z M 14.095703 17.253906 L 14.095703 20.107422 L 17.265625 20.107422 L 17.265625 17.253906 L 14.095703 17.253906 z M 17.900391 17.253906 L 17.900391 20.107422 L 20.753906 20.107422 L 20.753906 17.253906 L 17.900391 17.253906 z" transform="scale(4.6545455,4.6545455)" />
|
||||||
|
</svg>
|
@ -0,0 +1,68 @@
|
|||||||
|
title: $:/plugins/kixam/datepicker/license
|
||||||
|
|
||||||
|
!! Pikaday licence: [[BSD 2-clause simplified license|http://www.freebsd.org/copyright/freebsd-license.html]] and [[MIT|http://mit-license.org/]]
|
||||||
|
```
|
||||||
|
Copyright (c) 2014 David Bushell BSD & MIT license
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2014 David Bushell
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
The BSD License
|
||||||
|
|
||||||
|
Copyright (c) 2014 David Bushell
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
```
|
||||||
|
|
||||||
|
!! Plugin license: [[BSD 2-clause simplified license|http://www.freebsd.org/copyright/freebsd-license.html]]
|
||||||
|
```
|
||||||
|
Copyright (c) 2015, kixam
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
```
|
@ -0,0 +1,4 @@
|
|||||||
|
@charset "UTF-8";/*!
|
||||||
|
* Pikaday
|
||||||
|
* Copyright © 2014 David Bushell | BSD & MIT license | http://dbushell.com/
|
||||||
|
*/.pika-single{z-index:9999;display:block;position:relative;color:#333;background:#fff;border:1px solid #ccc;border-bottom-color:#bbb;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}.pika-single:before,.pika-single:after{content:" ";display:table}.pika-single:after{clear:both}.pika-single{*zoom:1}.pika-single.is-hidden{display:none}.pika-single.is-bound{position:absolute;box-shadow:0 5px 15px -5px rgba(0,0,0,.5)}.pika-lendar{float:left;width:240px;margin:8px}.pika-title{position:relative;text-align:center}.pika-label{display:inline-block;*display:inline;position:relative;z-index:9999;overflow:hidden;margin:0;padding:5px 3px;font-size:14px;line-height:20px;font-weight:bold;background-color:#fff}.pika-title select{cursor:pointer;position:absolute;z-index:9998;margin:0;left:0;top:5px;filter:alpha(opacity=0);opacity:0}.pika-prev,.pika-next{display:block;cursor:pointer;position:relative;outline:0;border:0;padding:0;width:20px;height:30px;color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;background-color:transparent;background-position:center center;background-repeat:no-repeat;background-size:75% 75%;opacity:.5;*position:absolute;*top:0}.pika-prev:hover,.pika-next:hover{opacity:1}.pika-prev,.is-rtl .pika-next{float:left;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==');*left:0}.pika-next,.is-rtl .pika-prev{float:right;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=');*right:0}.pika-prev.is-disabled,.pika-next.is-disabled{cursor:default;opacity:.2}.pika-select{display:inline-block;*display:inline}.pika-table{width:100%;border-collapse:collapse;border-spacing:0;border:0}.pika-table th,.pika-table td{width:14.285714285714286%;padding:0}.pika-table th{color:#999;font-size:12px;line-height:25px;font-weight:bold;text-align:center}.pika-button{cursor:pointer;display:block;box-sizing:border-box;-moz-box-sizing:border-box;outline:0;border:0;margin:0;width:100%;padding:5px;color:#666;font-size:12px;line-height:15px;text-align:right;background:#f5f5f5}.pika-week{font-size:11px;color:#999}.is-today .pika-button{color:#3af;font-weight:bold}.is-selected .pika-button,.has-event .pika-button{color:#fff;font-weight:bold;background:#3af;box-shadow:inset 0 1px 3px #178fe5;border-radius:3px}.has-event .pika-button{background:#005da9;box-shadow:inset 0 1px 3px #0076c9}.is-disabled .pika-button,.is-inrange .pika-button{background:#d5e9f7}.is-startrange .pika-button{color:#fff;background:#6cb31d;box-shadow:none;border-radius:3px}.is-endrange .pika-button{color:#fff;background:#3af;box-shadow:none;border-radius:3px}.is-disabled .pika-button{pointer-events:none;cursor:default;color:#999;opacity:.3}.is-outside-current-month .pika-button{color:#999;opacity:.3}.is-selection-disabled{pointer-events:none;cursor:default}.pika-button:hover,.pika-row.pick-whole-week:hover .pika-button{color:#fff;background:#ff8000;box-shadow:none;border-radius:3px}.pika-table abbr{border-bottom:0;cursor:help}.pika-time-container{clear:both}.pika-time{margin:7px auto 7px}.pika-time .pika-time-label{font-weight:bold;font-size:11px;color:#666;padding-right:.33em}
|
@ -0,0 +1,3 @@
|
|||||||
|
tags: $:/tags/Stylesheet
|
||||||
|
title: $:/plugins/kixam/datepicker/pikaday.css
|
||||||
|
type: text/css
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,3 @@
|
|||||||
|
module-type: library
|
||||||
|
title: $:/plugins/kixam/datepicker/pikaday.js
|
||||||
|
type: application/javascript
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user