Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tiddler templates #57

Open
tobibeer opened this issue Sep 7, 2013 · 0 comments
Open

tiddler templates #57

tobibeer opened this issue Sep 7, 2013 · 0 comments

Comments

@tobibeer
Copy link
Owner

tobibeer commented Sep 7, 2013

Idea

As a better newTiddler alternative Implement <<get template:foo>> in GetPlugin.

Allow the user to specify a template from which to create a new tiddler and placeholders that start like...

<<get template:Fancy##Template
edit
$foo:Foo
$bar:Fancy##Bar
$baz:Fancy::baz
$mumble:Fancy??mumble
$frotz:_
?field1:val
?field2:
?field3:_
tag:foo
tag:bar
tags:"[[foo bar]] baz mumble"
tags:_
focus: text
quickedit
>>

Either the user is prompted for any $placeholders, fields, tags with value _, given a generic input panel, or the fields are highlighted when the tiddler is opened in edit mode. While highlighting in-tiddler content is not an option, it may not be needed. Perhaps a default input for hidden text may be good?

  • $foo, $bar, $baz
    • in-text placeholders replaced as is
  • ?field
    • defines a tiddler field as ?key => val
  • tag and tags
    • tiddler tag(s)
  • focus
    • the field to focus as in newTiddler
  • edit
    • tiddler opened in edit mode
  • quickedit or perhaps <no flag>
    • just an input-panel is offered with save, edit, cancel

References

Displaying field inputs on the fly in either of...

http://geoplugins.tiddlyspace.com
http://openlayers.tiddlyspace.com

Templating inspiration...

NewTemplateTiddlerMacro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant