1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

New image shortcut should not add journal tags

Fixes #6968
This commit is contained in:
jeremy@jermolene.com 2022-10-02 18:55:26 +01:00
parent 36896c3db8
commit fb34df84ed

View File

@ -2,11 +2,5 @@ title: $:/core/ui/Actions/new-image
tags: $:/tags/Actions tags: $:/tags/Actions
description: create a new image tiddler description: create a new image tiddler
\define get-type()
image/$(imageType)$
\end
\define get-tags() $(textFieldTags)$ $(tagsFieldTags)$
\whitespace trim \whitespace trim
<$vars imageType={{$:/config/NewImageType}} textFieldTags={{$:/config/NewJournal/Tags}} tagsFieldTags={{$:/config/NewJournal/Tags!!tags}}> <$action-sendmessage $message="tm-new-tiddler" type={{{ [{$:/config/NewImageType}addprefix[image/]] }}}/>
<$action-sendmessage $message="tm-new-tiddler" type=<<get-type>> tags=<<get-tags>>/>
</$vars>