Skip to content

Commit

Permalink
Added Editing component pruning filter
Browse files Browse the repository at this point in the history
  • Loading branch information
flibbles committed Jan 14, 2025
1 parent 8a1cea3 commit cbfd793
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 1 deletion.
78 changes: 78 additions & 0 deletions plugins/uglify/prune/editing.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
title: $:/plugins/flibbles/uglify/prune/editing
caption: Editing components

[prefix[$:/config/EditorToolbarButtons/]]
[prefix[$:/config/EditTemplateFields/]]
[prefix[$:/config/EditorToolbarButtons/]]
$:/config/FieldEditorFilters/default

"""Editor Types""" +[bl[]]
[prefix[$:/config/EditorTypeMappings/]]
$:/core/ui/ControlPanel/EditorTypes
[prefix[$:/language/ControlPanel/EditorTypes/]]

"""Miscellaneous """ +[bl[]]
$:/core/Filters/Drafts
$:/language/Filters/Drafts
$:/core/ui/MoreSideBar/Drafts
$:/language/SideBar/Drafts/Caption
$:/core/ui/PageTemplate/drafts

"""Bitmap content""" +[bl[]]
[module-type[bitmapeditoroperation]]
$:/language/Docs/ModuleTypes/bitmapeditoroperaton
[prefix[$:/config/BitmapEditor/]]

"""Text editor content""" +[bl[]]
[module-type[texteditoroperation]]
$:/language/Docs/ModuleTypes/texteditoroperation

"""Buttons and their associated language info""" +[bl[]]
[prefix[$:/language/EditTemplate/]]
$:/core/ui/Buttons/clone
$:/language/Buttons/Clone/Caption
$:/language/Buttons/Clone/Hint
$:/core/ui/Buttons/delete
$:/language/Buttons/Delete/Caption
$:/language/Buttons/Delete/Hint
$:/core/ui/Buttons/edit
$:/language/Buttons/Edit/Caption
$:/language/Buttons/Edit/Hint
$:/core/ui/Buttons/new-here
$:/language/Buttons/NewHere/Caption
$:/language/Buttons/NewHere/Hint
$:/core/ui/Buttons/new-journal-here
$:/language/Buttons/NewJournalHere/Caption
$:/language/Buttons/NewJournalHere/Hint
$:/core/ui/Buttons/new-tiddler
$:/language/Buttons/NewTiddler/Caption
$:/language/Buttons/NewTiddler/Hint
$:/core/ui/Buttons/new-journal
$:/language/Buttons/NewJournal/Caption
$:/language/Buttons/NewJournal/Hint
$:/core/ui/Buttons/new-image
$:/language/Buttons/NewImage/Caption
$:/language/Buttons/NewImage/Hint


"""Editor Toolbar configuration in settings""" +[bl[]]
[[$:/core/ui/ControlPanel/Settings/EditorToolbar]]
[[$:/config/TextEditor/EnableToolbar]]
[prefix[$:/language/ControlPanel/Settings/EditorToolbar/]]

"""Editor Toolbar configuration in toolbar""" +[bl[]]
[[$:/core/ui/ControlPanel/Toolbars/EditorToolbar]]
[prefix[$:/language/ControlPanel/Toolbars/EditorToolbar/]]
[[$:/core/ui/ControlPanel/Toolbars/EditToolbar]]
[prefix[$:/language/ControlPanel/Toolbars/EditToolbar/]]

"""EditTemplate""" +[bl[]]
[[$:/core/ui/EditTemplate]]
[[$:/tags/EditTemplate]]
[prefix[$:/core/ui/EditTemplate/]]
[tag[$:/tags/EditTemplate]]
[[$:/tags/EditToolbar]]
[tag[$:/tags/EditToolbar]]
[[$:/tags/EditorToolbar]]
[tag[$:/tags/EditorToolbar]]
[prefix[$:/core/ui/EditorToolbar/]]
9 changes: 9 additions & 0 deletions tiddlers/Pruning/editing.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: Pruning/editing
caption: editing
tags: Pruning

This pruning rule scraps everything concerning tiddler editing. This includes creating and deleting tiddlers as well. This rule is useful for tiddlywikis which are intended to be customer-facing or in some way "complete", and require no further editing.

Tiddlers can still be modified through actions and messages (such as through buttons or automated behavior).

Currently, this rule is somewhat conservative with what it removes to avoid over-pruning, but if you think any remaining shadow tiddlers can also be scrapped, please feel free to let me know.
2 changes: 1 addition & 1 deletion tiddlers/Templates/Prune.tid
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Templates/Prune

<$tiddler tiddler={{{ [<currentTab>split[/]last[]addprefix[$:/plugins/flibbles/uglify/prune/]] }}}>

!! <$text text={{!!name}} />
!! <$text text={{!!caption}} />

<$transclude $tiddler=<<currentTab>> />

Expand Down

0 comments on commit cbfd793

Please sign in to comment.