OcttKB Cross-Repo Sync (HTML to Raw)

This commit is contained in:
2023-11-03 22:50:08 +00:00
parent 8a859c31c8
commit 7d6eb126e8
25 changed files with 144 additions and 33 deletions

View File

@@ -1,7 +1,7 @@
Enabled: 0
created: 20231103212710757
creator: Octt
modified: 20231103220127382
modified: 20231103222606894
modifier: Octt
tags: $:/GlobalOption
title: $:/OcttKB/Config/TripleClickEdit

View File

@@ -1,5 +1,5 @@
created: 20231103221004887
created: 20231103225001941
current-tiddler: GettingStarted
modified: 20231103221004887
modified: 20231103225001941
title: $:/HistoryList
type: application/json

View File

@@ -1,6 +1,6 @@
created: 20231103210837078
created: 20231103222031777
creator: Octt
list:
modified: 20231103215300411
modified: 20231103224853079
modifier: Octt
title: $:/StoryList

View File

@@ -0,0 +1,64 @@
/*\
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.*/
/* OcttKB: edit this to work with 3 clicks instead of 2 */
window.addEventListener('click', function(ev){
if (ev.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.tripleclickedit = ClickListener;
})();

View File

@@ -0,0 +1,7 @@
created: 20231103222110593
creator: Octt
modified: 20231103222326612
modifier: Octt
module-type: widget
title: $:/plugins/danielo515/2click2edit/ClickListener.js
type: application/javascript

View File

@@ -0,0 +1,15 @@
created: 20231103222340488
creator: Octt
modified: 20231103222502294
modifier: Octt
title: $:/plugins/danielo515/2click2edit/readme
Edited for the [[OcttKB]], to work with 3 clicks instead of 2.
Original readme below:
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.

View File

@@ -1,7 +1,7 @@
created: 20231103214254057
creator: Octt
modified: 20231103214304154
modified: 20231103222509045
modifier: Octt
title: $:/state/plugin-info--565893350-$:/plugins/danielo515/2click2edit---843390625
readme
contents

View File

@@ -1,7 +1,7 @@
created: 20231103214306224
creator: Octt
modified: 20231103214306224
modified: 20231103221319201
modifier: Octt
title: $:/state/plugin-info--565893350-$:/plugins/danielo515/2click2edit
no
yes

View File

@@ -1,6 +1,6 @@
created: 20230501095944427
creator: Octt
modified: 20231102102537089
modified: 20231103223316838
modifier: Octt
title: $:/state/search/currentTab

View File

@@ -1,6 +1,6 @@
created: 20220920092307479
creator: Octt
modified: 20231103220155941
modified: 20231103222616958
modifier: Octt
title: $:/state/tab/sidebar--595412856

View File

@@ -1,6 +1,6 @@
created: 20230501095944427
creator: Octt
modified: 20231102102537090
modified: 20231103223316838
modifier: Octt
title: $:/state/tab/search-results/sidebar

View File

@@ -1,7 +1,7 @@
created: 20230225225512618
creator: Octt
modified: 20231103215247266
modified: 20231103222549893
modifier: Octt
title: $:/state/tree/$:/OcttKB/Config/
hide
show

View File

@@ -1,7 +1,7 @@
created: 20230219190716748
creator: Octt
modified: 20230929095018016
modified: 20231103222548896
modifier: Octt
title: $:/state/tree/$:/OcttKB/Repo/
show
hide

View File

@@ -1,7 +1,7 @@
created: 20230111084703963
creator: Octt
modified: 20231103215253891
modified: 20231103222528368
modifier: Octt
title: $:/state/tree/$:/OcttKB/
hide
show

View File

@@ -1,7 +1,7 @@
created: 20230108193801573
creator: Octt
modified: 20231103215258587
modified: 20231103222035312
modifier: Octt
title: $:/state/tree/$:/Styles/
show
hide

View File

@@ -1,6 +1,6 @@
created: 20221108100116751
creator: Octt
modified: 20231103215252579
modified: 20231103222526205
modifier: Octt
title: $:/state/tree/$:/plugins/

View File

@@ -0,0 +1,7 @@
created: 20231103222045256
creator: Octt
modified: 20231103222045256
modifier: Octt
title: $:/state/tree/$:/plugins/danielo515/2click2edit/
show

View File

@@ -1,6 +1,6 @@
created: 20231103214243736
creator: Octt
modified: 20231103214244792
modified: 20231103222041344
modifier: Octt
title: $:/state/tree/$:/plugins/danielo515/

View File

@@ -1,6 +1,6 @@
created: 20230127160143605
creator: Octt
modified: 20231103214243200
modified: 20231103222040160
modifier: Octt
title: $:/state/tree/$:/plugins/felixhayashi/