Ticket #1275 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

Update newTiddler paramifier to take arguments

Reported by: jdlrobson Owned by: MartinBudden
Priority: undefined Milestone: 2.6.3
Component: core Version:
Severity: undefined Keywords:
Cc:

Description

In certain cases it is useful to be able to generate a link to a new tiddler with some prefilled tags/custom fields.

This could be achieved by modifying the newTiddler paramifier to treat the string as a parameter string when a title keyword is used.

#newTiddler:[[title:"hello world" tag:foo tag:bar fields:"color:red"]]

would create a new tiddler called "hello world" tagged with foo and bar and the custom field color set to red.

#newTiddler:[["hello world" tag:foo tag:bar fields:"color:red"]]

however would create a tiddler called "hello world" tag:foo tag:bar fields:"color:red"

This would increase the power of the existing mechanism. Suggested patch attached.

Attachments

p.diff Download (0.8 KB) - added by jdlrobson 3 years ago.

Change History

Changed 3 years ago by jdlrobson

Changed 3 years ago by FND

  • type changed from defect to enhancement
  • milestone changed from 2.6.2 to 2.6.3

As discussed elsewhere, I disagree with the second example: If you want to use the parameterized version, the title parameter should be mandatory to avoid ambiguity.

Changed 2 years ago by MartinBudden

  • owner changed from JeremyRuston to MartinBudden

Changed 2 years ago by MartinBudden

  • status changed from new to closed
  • resolution set to fixed

Fixed in changeset:12734

Note: See TracTickets for help on using tickets.