diff --git a/core/ui/EditTemplate/fields.tid b/core/ui/EditTemplate/fields.tid index aa8a87b46..2197aae2b 100644 --- a/core/ui/EditTemplate/fields.tid +++ b/core/ui/EditTemplate/fields.tid @@ -21,6 +21,14 @@ $:/config/EditTemplateFields/Visibility/$(currentField)$ <$action-sendmessage $message="tm-focus-selector" $param=<>/> \end +\define delete-state-tiddlers() <$action-deletetiddler $filter="[] [] []"/> + +\define cancel-search-actions() +<$list filter="[<__storeTitle__>has[text]] [<__tiddler__>has[text]]" variable="ignore" emptyMessage="""<><$action-sendmessage $message="tm-cancel-tiddler"/>"""> +<> + +\end + \define new-field() <$vars name={{{ [get[text]] }}}> <$reveal type="nomatch" text="" default=<>> @@ -72,7 +80,12 @@ $value={{{ [get[text]] }}}/> <>  
-<$edit-text tiddler=<> tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} focusPopup=<> class="tc-edit-texteditor tc-popup-handle" tabindex={{$:/config/EditTabIndex}} focus={{{ [{$:/config/AutoFocus}match[fields]then[true]] ~[[false]] }}} cancelPopups="yes"/> +<$vars refreshTitle=<> storeTitle=<> searchListState=<>> +<$macrocall $name="keyboard-driven-input" tiddler=<> storeTitle=<> refreshTitle=<> + selectionStateTitle=<> tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} + focusPopup=<> class="tc-edit-texteditor tc-popup-handle" tabindex={{$:/config/EditTabIndex}} + focus={{{ [{$:/config/AutoFocus}match[fields]then[true]] ~[[false]] }}} cancelPopups="yes" + configTiddlerFilter="[[$:/config/EditMode/fieldname-filter]]" inputCancelActions=<> />   <$button popup=<> class="tc-btn-invisible tc-btn-dropdown" tooltip={{$:/language/EditTemplate/Field/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Field/Dropdown/Caption}}>{{$:/core/images/down-arrow}}  <$reveal state=<> type="nomatch" text="" default=""> @@ -82,25 +95,30 @@ $value={{{ [get[text]] }}}/>
<>
-<$set name="newFieldName" value={{{ [get[text]] }}}> +<$set name="newFieldName" value={{{ [get[text]] }}}> <$list filter="[!is[shadow]!is[system]fields[]search:titlesort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type" variable="currentField"> +<$list filter="[addsuffix[-primaryList]] -[get[text]]" emptyMessage="""<$link to=<> class="tc-list-item-selected"><$text text=<>/>"""> <$link to=<>> <$text text=<>/> +
<>
<$list filter="[fields[]search:titlesort[]] -[!is[shadow]!is[system]fields[]]" variable="currentField"> +<$list filter="[addsuffix[-secondaryList]] -[get[text]]" emptyMessage="""<$link to=<> class="tc-list-item-selected"><$text text=<>/>"""> <$link to=<>> <$text text=<>/> +
+ <$set name="currentTiddlerCSSescaped" value={{{ [escapecss[]] }}}> diff --git a/core/wiki/config/EditModeFieldnameFilter.tid b/core/wiki/config/EditModeFieldnameFilter.tid new file mode 100644 index 000000000..be7d2f586 --- /dev/null +++ b/core/wiki/config/EditModeFieldnameFilter.tid @@ -0,0 +1,3 @@ +title: $:/config/EditMode/fieldname-filter +first-search-filter: [!is[shadow]!is[system]fields[]search:titlesort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type +second-search-filter: [fields[]search:titlesort[]] -[!is[shadow]!is[system]fields[]] diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index d6c287c47..5c112c3ab 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -721,7 +721,7 @@ button.tc-btn-invisible.tc-remove-tag-button { } .tc-tag-button-selected, -.tc-list-item-selected a.tc-tiddlylink { +.tc-list-item-selected a.tc-tiddlylink, a.tc-list-item-selected { background-color: <>; color: <>; }