Skip to content

Commit

Permalink
OcttKB Cross-Repo Sync (HTML to Raw)
Browse files Browse the repository at this point in the history
  • Loading branch information
octospacc committed Jan 30, 2024
1 parent c6b7dd6 commit 3e8e23f
Show file tree
Hide file tree
Showing 39 changed files with 190 additions and 79 deletions.
3 changes: 2 additions & 1 deletion Wiki-OcttKB/tiddlers/Normal/TiddlyWiki/_ThirdParty.tid
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
created: 20230206113426599
creator: Octt
modified: 20240129140045004
modified: 20240129233143233
modifier: Octt
tags:
title: TiddlyWiki/ThirdParty
Expand Down Expand Up @@ -58,6 +58,7 @@ title: TiddlyWiki/ThirdParty
* <<linkdescgit Relink "https://flibbles.github.io/tw5-relink" "flexibility when relinking renamed tiddlers" "https://github.com/flibbles/tw5-relink">>
* [[Section Editor|https://kookma.github.io/TW-Section]] --- //create, edit, fold, manage sections// --- [[Git|https://github.com/kookma/TW-Section]] | [[Prototype discussion|https://talk.tiddlywiki.org/t/section-editor-prototype/951]]
* <<link+desc+git Streams "https://saqimtiaz.github.io/streams/" "Streams is a keyboard friendly way to write and easily divide your text into separate tiddlers while writing." "https://github.com/saqimtiaz/streams">> --- Adds a structural-visual hierarchy system to TiddlyWiki like Notion/Logseq.
* [[NotoWritey|https://marxsal.github.io/various/notowritey.html]] --- //text editor and outliner for ~TiddlyWiki that allows you to concentrate on writing documents one section (tiddler) at a time//
* [[Syntax-Highlighting Tiny Editor|https://talk.tiddlywiki.org/t/tw5-ready-to-play-prototype-syntax-highlighting-tiny-editor/4569]] (Ready-to-play prototype) --- [[Download|https://talk.tiddlywiki.org/uploads/short-url/853ile3OvoeJ9uowpv0YYXnKhSe.json]]

* [[Keyboard Navigation|https://keynav.tiddlyhost.com/]] --- //A plugin to add keyboard navigation of TiddlyWiki's Story River.//
Expand Down
6 changes: 5 additions & 1 deletion Wiki-OcttKB/tiddlers/Normal/_CSS.tid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
created: 20230209150101862
creator: Octt
icon: 💅
modified: 20240107152919931
modified: 20240130004423944
modifier: Octt
page-cover: https://images.unsplash.com/photo-1523437113738-bbd3cc89fb19
tags: Web Frontend
Expand All @@ -15,6 +15,10 @@ title: CSS
* [[CSS Borders [w3s]|https://www.w3schools.com/css/css_border.asp]]
** <<MDNLink Web/CSS/border-style border-style>> --- all ways to style a border, not only colors

!!! ''Tips''

* [[How to disable a link using only CSS|https://stackoverflow.com/questions/2091168/how-to-disable-a-link-using-only-css]] --- essentially, `pointer-events: none;` for the functional side, + other rules for styling

!!! ''Frameworks''

* [[Bulma|https://bulma.io/]] --- //modern CSS framework that just works//
Expand Down
4 changes: 3 additions & 1 deletion Wiki-OcttKB/tiddlers/Normal/_Homebrew.tid
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
created: 20231102231258441
creator: Octt
modified: 20240107114852326
modified: 20240130003805680
modifier: Octt
tags:
title: Homebrew
Expand All @@ -12,3 +12,5 @@ title: Homebrew

* ''[[Homebrew Hub|https://hh.gbdev.io/]]'' is a community-led initiative to collect, archive and preserve homebrew software developed for Game Boy (Color) and the Game Boy Advance. --- <<[# Git"https://github.com/gbdev/homebrewhub">>
* [[Universal-Team|https://universal-team.net/]] --- //We make homebrew apps for the DS(i) and 3DS. We hope you find them useful! 😄// --- <<[# Git"https://github.com/Universal-Team">>

* [[Rinnegatamante's Archive|https://rinnegatamante.it/]]
3 changes: 2 additions & 1 deletion Wiki-OcttKB/tiddlers/Normal/_MIPS.tid
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
created: 20231123184226189
creator: Octt
modified: 20231224154946990
modified: 20240130004109754
modifier: Octt
tags:
title: MIPS
Expand All @@ -19,3 +19,4 @@ title: MIPS
.space 16 # Size of struct`, then use with `la $register,theStruct`
* [[MIPS - Call C function in Assembly code|https://stackoverflow.com/questions/36980971/mips-call-c-function-in-assembly-code]] --- write values to stack if necessary, declare `.extern CFunctionName` in the ASM, use `jal CFunctionName` to call
* [[MIPS function call with more than four arguments|https://stackoverflow.com/questions/2298838/mips-function-call-with-more-than-four-arguments]] --- first allocate stack memory (subtract 4*numberOfArguments to `sp`), then load the first 4 arguments normally in `$a#` registers, and store the others in `4*argumentNumber($sp)`
* [[Why shift a bit using sll and such in MIPs Assembly?|https://stackoverflow.com/questions/32487502/why-shift-a-bit-using-sll-and-such-in-mips-assembly]] (and what actually shifting does)
4 changes: 3 additions & 1 deletion Wiki-OcttKB/tiddlers/Normal/_TiddlyWiki.tid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
created: 20220924193842295
creator: Octt
icon: 🐈
modified: 20240129135830800
modified: 20240130003932997
modifier: Octt
page-cover: https://source.unsplash.com/random/?computer-cat
tags: TiddlyWiki Wiki Zettelkasten Libre
Expand Down Expand Up @@ -65,6 +65,8 @@ It is a libre, JavaScript-rich, non-linear notebook, that can well adapt to anyo
* <<TwL " DateFormat ">>
* <<TwL " [[Filter Operators]] ">>
** <<TwLL "search Operator">>: uses the inbuilt search engine to retrieve data
** <<TwLL "contains Operator">>: checks if some name is contained in a list-formatted field (`list` by default)
* <<TwLL "DraggableWidget">> --- to create custom draggables, for copying specific data to other wikis by drag-n-drop
* <<TwL " MacroCallWidget SetWidget VarsWidget">>
* <<TwL " EditTextWidget RangeWidget CheckboxWidget">>
* <<TwL " [[Table-of-Contents Macros (Examples)]] ">>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
created: 20240129160009781
creator: Octt
list-before: $:/core/ui/Buttons/more-page-actions
modified: 20240129223619782
modifier: Octt
tags: $:/tags/PageControls
title: $:/Apps/MagicBox/Buttons/Toggle-MagicBox

\define label() Toggle MagicBox
\whitespace trim
<$button tooltip=<<label>> class=<<tv-config-toolbar-class>>>
<$if value=<<tv-config-toolbar-icons>> match="yes">
🪟️
</$if>
<$if value=<<tv-config-toolbar-text>> match="yes">
<span class="tc-btn-text">
<$text text=<<label>>/>
</span>
</$if>
{{$:/Apps/MagicBox/Shortcuts/Toggle-MagicBox}}
</$button>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
created: 20240129163942191
creator: Octt
key: ((Toggle-MagicBox))
modified: 20240129232038489
modifier: Octt
tags: $:/tags/KeyboardShortcut
title: $:/Apps/MagicBox/Shortcuts/Toggle-MagicBox

\define appTiddler() $:/Apps/MagicBox/Overlay
\whitespace trim
<$navigator story="$:/StoryList" history="$:/HistoryList">
<$if not value={{{[[$:/StoryList]contains<appTiddler>]}}}>
<$action-navigate $to=<<appTiddler>> $scroll="yes"/>
</$if><$else>
<$action-sendmessage $message="tm-close-tiddler" $param=<<appTiddler>>/>
</$else>
<!--<$action-sendmessage $message="tm-focus-selector" $param="""[data-tiddler-title="$:/Apps/MagicBox/Overlay"] ._input""" preventScroll="true"/>-->
</$navigator>
24 changes: 24 additions & 0 deletions Wiki-OcttKB/tiddlers/System/Apps/MagicBox/_readme.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
created: 20240129220613684
creator: Octt
modified: 20240129225200513
modifier: Octt
tags:
title: $:/Apps/MagicBox/readme

This currently work-in-progress, experimental applet provides a "magic box", allowing for wiki content to be searched in a visually effective way: a full-screen interface complete with previews and covers.

* Thread: [[https://talk.tiddlywiki.org/t/wiki-search-grid-with-covers-and-content-preview-prototype/9003]]

Install in other wiki by drag-and-drop:

# <$draggable tag="button" filter="[[$:/Apps/MagicBox]] [prefix[$:/Apps/MagicBox/]] [tag[$:/Apps/MagicBox]] [tag[$:/Apps/MagicBox/Attached]]">
All applet files
</$draggable>

# (Required dependency) <$draggable tag="button" filter="[[$:/plugins/ebalster/condition]]">
`ebalster/condition` plugin
</$draggable>

# (Optional dependency, required to show content) <$draggable tag="button" filter="[[$:/plugins/danielo515/ContextPlugin/Stylesheet/results]] [[$:/plugins/danielo515/ContextPlugin/widgets/context.js]]">
Core files of `danielo515/ContextPlugin` plugin, modified to allow `tabindex=-1`
</$draggable>
29 changes: 24 additions & 5 deletions Wiki-OcttKB/tiddlers/System/Apps/_MagicBox.tid
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
.width: 33
created: 20240129095948486
creator: Octt
modified: 20240129171354932
modified: 20240129234018781
modifier: Octt
tags: $:/Apps
title: $:/Apps/MagicBox

\define SearchResults(fields)
<$list filter="[!is[system]search:$fields${$:/temp/MagicBox!!.input}sort[title]limit[150]]">
<$list filter="[!is[system]search:$fields${$:/temp/MagicBox!!.input}sort[title]limit[100]]">
<div class=`MagicBoxApplet result ${[{$:/Apps/MagicBox!!.type}]}$` style=`background-image: url("${[{!!page-cover}]}$");`>
<$button class="tc-btn-invisible">
<$action-sendmessage $message="tm-close-tiddler" $param=<<closeOnChoose>>/>
Expand All @@ -19,7 +19,7 @@ title: $:/Apps/MagicBox
<$link to={{!!title}} tabindex="-1"/>
</h3>
<$if value={{$:/Apps/MagicBox!!.context}}>
<$context term={{$:/temp/MagicBox!!.input}} $tabindex="-1"/>
<$context term={{$:/temp/MagicBox!!.input}} tabindex="-1"/>
</$if>
<!--</$link>-->
</$button>
Expand All @@ -28,11 +28,14 @@ title: $:/Apps/MagicBox
\end

<div class="MagicBoxApplet options">
<$edit-text tiddler="$:/temp/MagicBox" field=".input" class="_input" placeholder="Search..." tabindex="0"/>
<$checkbox field=".context" checked="1">Context</$checkbox>
&nbsp;
<!--<$edit-text field=".type" placeholder="Display Type"/>-->
<$checkbox field=".type" checked="grid" unchecked="masonry">Fixed Grid</$checkbox>
<$range field=".width" min="24" max="49"/>{{!!.width}}%
&nbsp;
<$range field=".width" min="19" max="49"/>{{!!.width}}
&nbsp;
<$edit-text tiddler="$:/temp/MagicBox" field=".input" class="_input" placeholder="Search..." tabindex="0"/>
</div>

<$action-sendmessage $message="tm-focus-selector" $param=".MagicBoxApplet.options > ._input"/>
Expand All @@ -42,6 +45,12 @@ title: $:/Apps/MagicBox
} catch(e) { $OcttKB.ErrAtLine(e) }'>><<script off>>

<style>
@media (max-width: 500px) {
.MagicBoxApplet.result {
min-width: calc(({{!!.width}}% * 2) - 16px) !important;
max-width: calc(({{!!.width}}% * 3) - 16px) !important;
}
}
.MagicBoxApplet.result {
margin: 8px;
display: inline-block;
Expand Down Expand Up @@ -87,6 +96,16 @@ title: $:/Apps/MagicBox
</style>

<$if value={{{ [{$:/temp/MagicBox!!.input}split[]count[]compare:integer:gteq[3]then[1]] }}}>
<$if value={{{ [!is[system]search:title{$:/temp/MagicBox!!.input}then[]else[1]] }}}>
<$button>
<$action-sendmessage $message="tm-close-tiddler" $param=<<closeOnChoose>>/>
<$action-sendmessage $message="tm-new-tiddler" title={{$:/temp/MagicBox!!.input}} />
Create as New Tiddler
</$button>
</$if>

<div><br/><hr/><br/></div>

Title or Caption matches:
<br/><<SearchResults "title,caption">>

Expand Down
4 changes: 2 additions & 2 deletions Wiki-OcttKB/tiddlers/System/_HistoryList.json.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
created: 20240129171445021
created: 20240130004734701
current-tiddler: GettingStarted
modified: 20240129171445021
modified: 20240130004734701
title: $:/HistoryList
type: application/json
7 changes: 0 additions & 7 deletions Wiki-OcttKB/tiddlers/System/_Import.tid

This file was deleted.

4 changes: 2 additions & 2 deletions Wiki-OcttKB/tiddlers/System/_StoryList.tid
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
created: 20240129132106430
created: 20240129215525933
creator: Octt
list:
modified: 20240129171406542
modified: 20240130004259074
modifier: Octt
title: $:/StoryList
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
created: 20240129223645518
creator: Octt
modified: 20240129223645518
modifier: Octt
title: $:/config/PageControlButtons/Visibility/$:/plugins/tiddlywiki/markdown/new-markdown-button

hide

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
created: 20240129164312864
creator: Octt
modified: 20240129225034425
modifier: Octt
tags: $:/Apps/MagicBox/Attached
title: $:/config/ShortcutInfo/Toggle-MagicBox
4 changes: 2 additions & 2 deletions Wiki-OcttKB/tiddlers/System/config/_AnimationDuration.tid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
created: 20220920161126651
creator: Octt
modified: 20231110115023937
modified: 20240129184006474
modifier: Octt
title: $:/config/AnimationDuration

80
60

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
created: 20240129165246939
creator: Octt
modified: 20240129183740425
modifier: Octt
title: $:/config/shortcuts/Toggle-MagicBox

ctrl-O
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: $:/core/modules/widgets/danielo/context-widget.js
type: application/javascript
module-type: widget
OcttKB-Note: added tabindex attribute.
Edit-text widget
Expand Down Expand Up @@ -39,13 +40,13 @@ contextWidget.prototype.render = function(parent,nextSibling) {
var matches = this.executeRegexp();
if(matches.length > 0){
this.domNode = this.document.createElement(this.element);
this.domNode.tabindex = this.tabindex;
this.domNode.setAttribute("tabindex", this.tabindex);
this.domNode.className="tw-context";
this.composeResults( matches ); //this appends to domNode
// Insert element
parent.insertBefore(this.domNode,nextSibling);
this.renderChildren(this.domNode,null);
this.domNodes.push(this.domNode);
this.domNodes.push(this.domNode);
}
}

Expand All @@ -64,7 +65,7 @@ contextWidget.prototype.execute = function() {
this.after = this.getAttribute("after",this.contextLength);
this.maxMatches = this.getAttribute("maxMatches",10);
this.element = this.getAttribute("element","pre");
this.tabindex = this.getAttribute("tabindex");
this.tabindex = this.getAttribute("tabindex");
this.makeChildWidgets();
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
created: 20140418153435777
creator: danielo
modified: 20240129171317600
modified: 20240129224755106
modifier: Octt
module-type: widget
title: $:/plugins/danielo515/ContextPlugin/widgets/context.js
Expand Down
2 changes: 1 addition & 1 deletion Wiki-OcttKB/tiddlers/System/state/_showeditpreview.tid
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
created: 20220920140732083
creator: Octt
modified: 20240129100429521
modified: 20240129223326435
modifier: Octt
title: $:/state/showeditpreview

Expand Down
4 changes: 2 additions & 2 deletions Wiki-OcttKB/tiddlers/System/state/_tab--1498284803.tid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
created: 20230109143853256
creator: Octt
modified: 20240129010520350
modified: 20240129215548628
modifier: Octt
title: $:/state/tab--1498284803

$:/core/ui/AdvancedSearch/Shadows
$:/core/ui/AdvancedSearch/Filter
Loading

0 comments on commit 3e8e23f

Please sign in to comment.