[Intro] Multiline Field Editor Plugin

Hi Folks,
I did just publish a new plugin that can be imported from the standard plugin import dialogue, if you use the configuration tiddler from: at wikilabs.github.io

Direct link to the demo edition: Field Editor — multiline field editing

A video how it is used in combination with the Field Visibility Plugin can be found at YouTube: Field Editor & Field Visibility Plugin

It allows you to edit 2 fields side by side. eg: text - myField as shown in the image below.

There is a new Page-Button, that allows you to switch the field, that is shown in the tiddler view.

It’s also possible to edit the same field 2 times from different positions for long tiddlers.

Have fun!
Mario
PS - If you use it: Support it!

6 Likes

Great stuff Mario!

Very clever concept to adapt the main editor. I’m pretty sure I would not have come up with this but instead fumbled around to try to expand the various fields where they reside but that would of course be a problem with the hidden fields, etc. Good thinking on your part!

I watched the video last night so maybe I’m forgetting something you showed, but now that I am testing it on your demo site, I was expecting all fields - or at least all custom fields - or at the very least all hidden custom fields - to be listed in the little dropdown. But they are not. How does a field “make it” to the dropdown list? IMO it would be neat if I could use this to turn any single-line input field into a multiline field for editing.

I also really like the Field Visibility plugin. I was not expecting you, of all tiddlywikians, to create it though :wink: :wink:

Thx, … The main problem is, that I needed to heavily modify the core EditTemplate. But I thought it would be a good exercise in the light of the upcoming “cascade filters”.

I hope they will make it easier to add content to the View- and EditTemplates without modifying the core stuff that much.

With the page-button definition. The plugin readme has a button to create a new “field switcher”. Atm only those fields make it to the dropdown.

I did not show hidden-fields by design at the moment, because they are used by core js-functions. If users change them it may cause unwanted side effects.

My first iteration had a filter that showed all “user defined” fields, but some of them may be needed as single-line fields, so I did make it more strict for the beginning

Yea, I wanted to have a possibility like this for quite some time. … But I also think the next version will be a bit different. … Especially the “edit mode” info button needs some more work. … I’ll probably create a completely new view, with less tabs, since not all tabs make sense in edit-mode.

Very clever solution!
Thank you Mario!

Specially the edit possibility for long tiddler is a useful feature here!
and the multiline fields :wink:

Yea, a “happy accident”. … I usually don’t have very long tiddlers but from time to time, it would have been nice to go back up to have a closer look, how I did exactly phrase something, without leafing the current cursor position.

Much better solution than my current approach (displaying an editor below the main editor when the field “comment” is there). I’ll be using this, thanks a lot :grin:

You are welcome! … I did think about different layouts … But this will need the upcoming TW v5.2.1 …

Be aware that the plugin at the moment, does modify several core tiddlers, which isn’t optimal. The plugin readme shows a list of tiddlers that it modifies.

1 Like

An update to the Multiline Field Editor Plugin has just been published to work with TW v5.2.5

What’s New

V 0.2.0 2022.12.29

  • fix preview - new option in preview output dropdown
  • adjust EditTemplate to use cascade filters
  • fix problem with field switcher
  • Update to TW v5.2.5
1 Like

An update to the Multiline Field Editor Plugin has just been published to fix a minor bug.

What’s New

V 0.2.1 2023.03.14

  • enable tiddler (i)nfo button in edit-mode again. I has been disabled by accident.
  • Add more info to readme … See Important section!
1 Like

I found this very useful when editing SuperTag plugin, auto-generate a field editor on view template

I had a question or two about the Multiline Field Editor :grin:

  1. Would it be possible to turn the dropdown into a dropdown toolbar button, like the ‘choose preview’ button?
  2. Could it be modified to get any of the current fields of the target tiddler, rather than just specific preselected ones?
  3. could it change what field displays in the view template as well?

Sorry if I’m asking a lot of it, but It looks like it would be really really useful for instances like if someone wants to use the main text body for just macros and such, while having the ability to use a multi-line editor for fields like description, for instance.

I do not see the advantage. There needs to be a visual indication, which field is edited at the moment. If I would remove the select element I would need to add a text field and create a new button. Toolbar buttons only have an SVG icon and no text. … IMO you need to be more specific why this would be an advantage.

I think so, I’ll have a look.

There already is a page button, which allows to select which field is shown by default. It’s described in the video

If you need a per tiddler configuration based on the existence of a field or a tag it should be done the conventional way. Create a tiddler tagged [tag[$:/tags/ViewTemplate]] which contains a list, that shows additional info on demand.

eg: https://tiddlywiki.com/#%24%3A%2Feditions%2Ftw5.com%2Foperator-template

I did create a new issue: [new feature] field-editor some user requests · Issue #137 · wikilabs/plugins · GitHub

1 Like

Ah, sorry to clarify I just meant copying the css style of the button, and making it inline with the other buttons, I like how it is otherwise, it works perfectly.

Ah, I’ll have to give that a watch, I had previously checked it out just on my phone and didn’t have a strong enough reception for video playback haha

2 posts were split to a new topic: Problem with Node.js configuration, multiline-fields and .meta file

Came looking for how to adjust the size of the editor of tiddler fields and found a solution that does more instead. Thanks for creating this plugin @pmario!