From 90a0eca2f5d56ec09eaf5fa4e09f450d9fdab0b3 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 18 Nov 2013 09:00:25 +0000 Subject: [PATCH] Add dropdown interface for setting the type of a tiddler --- core/docs/types/image_gif.tid | 3 +++ core/docs/types/image_jpeg.tid | 3 +++ core/docs/types/image_png.tid | 3 +++ core/docs/types/text_plain.tid | 3 +++ core/docs/types/text_vnd.tiddlywiki.tid | 3 +++ core/ui/EditTemplate/type.tid | 15 +++++++++++++++ .../tiddlywiki/markdown/docs_type_markdown.tid | 3 +++ 7 files changed, 33 insertions(+) create mode 100644 core/docs/types/image_gif.tid create mode 100644 core/docs/types/image_jpeg.tid create mode 100644 core/docs/types/image_png.tid create mode 100644 core/docs/types/text_plain.tid create mode 100644 core/docs/types/text_vnd.tiddlywiki.tid create mode 100644 core/ui/EditTemplate/type.tid create mode 100644 plugins/tiddlywiki/markdown/docs_type_markdown.tid diff --git a/core/docs/types/image_gif.tid b/core/docs/types/image_gif.tid new file mode 100644 index 000000000..95a1eb9d8 --- /dev/null +++ b/core/docs/types/image_gif.tid @@ -0,0 +1,3 @@ +title: $:/docs/types/image/gif +description: GIF image +name: image/gif diff --git a/core/docs/types/image_jpeg.tid b/core/docs/types/image_jpeg.tid new file mode 100644 index 000000000..473c95603 --- /dev/null +++ b/core/docs/types/image_jpeg.tid @@ -0,0 +1,3 @@ +title: $:/docs/types/image/jpeg +description: JPEG image +name: image/jpeg diff --git a/core/docs/types/image_png.tid b/core/docs/types/image_png.tid new file mode 100644 index 000000000..6428464ad --- /dev/null +++ b/core/docs/types/image_png.tid @@ -0,0 +1,3 @@ +title: $:/docs/types/image/png +description: PNG image +name: image/png diff --git a/core/docs/types/text_plain.tid b/core/docs/types/text_plain.tid new file mode 100644 index 000000000..4ae18de52 --- /dev/null +++ b/core/docs/types/text_plain.tid @@ -0,0 +1,3 @@ +title: $:/docs/types/text/plain +description: Plain text +name: text/plain diff --git a/core/docs/types/text_vnd.tiddlywiki.tid b/core/docs/types/text_vnd.tiddlywiki.tid new file mode 100644 index 000000000..e15d93c36 --- /dev/null +++ b/core/docs/types/text_vnd.tiddlywiki.tid @@ -0,0 +1,3 @@ +title: $:/docs/types/text/vnd.tiddlywiki +description: TW5 wikitext +name: text/vnd.tiddlywiki diff --git a/core/ui/EditTemplate/type.tid b/core/ui/EditTemplate/type.tid new file mode 100644 index 000000000..3edae2068 --- /dev/null +++ b/core/ui/EditTemplate/type.tid @@ -0,0 +1,15 @@ +title: $:/core/ui/EditTemplate/type +tags: $:/tags/EditTemplate + +

//Type:// <$edit-text field="type" tag="input" default="" placeholder="type" focusPopup=<> class="tw-edit-typeeditor"/> <$button popup=<> class="btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}

+ +
+<$reveal state=<> type="nomatch" text="" default=""> +
+<$linkcatcher to="!!type"> +<$list filter="[is[shadow]prefix[$:/docs/types/]] [!is[shadow]prefix[$:/docs/types/]] +[sort[description]]"><$link to={{!!name}}><$view field="description"/> (<$view field="name"/>) + + +
+ +
\ No newline at end of file diff --git a/plugins/tiddlywiki/markdown/docs_type_markdown.tid b/plugins/tiddlywiki/markdown/docs_type_markdown.tid new file mode 100644 index 000000000..f622de660 --- /dev/null +++ b/plugins/tiddlywiki/markdown/docs_type_markdown.tid @@ -0,0 +1,3 @@ +title: $:/docs/types/text/x-markdown +description: Markdown +name: text/x-markdown