kookma / TW-Commander

A tiddler toolkit for Tiddlywiki 5. Batch operations on bulk of tiddlers. Create, delete, add fields, tags, search and replace and inspect tiddlers.
https://kookma.github.io/TW-Commander/
49 stars 6 forks source link

[Feature request] Allow TC to modify/create non-existent tiddlers #17

Open Marxsal opened 3 years ago

Marxsal commented 3 years ago

Currently you can only apply batch changes to tiddlers that actually exist. So, for instance, if you wanted to add color to a set of tags that aren't represented by tiddlers, you couldn't do it with TC. Having an option to allow adding new fields to also create new tiddlers would be useful in many such cases.

Thanks!

kookma commented 3 years ago

Hi Mark! I don't know how to do this while keep other operations intact. Do you think we need to add an extra tab processing non-existing tiddlers?

Marxsal commented 3 years ago

Could it be an option that only shows up when the "fields" tab is selected?

kookma commented 3 years ago

May be! commander create tiddlers, so that part actually works on non-existent tiddler, but here we need to select a batch of tiddler which are not existed and then add some fields and values! I have created a development branch to give a try! So, please let me know how your idea works.

See development branch!

Marxsal commented 3 years ago

When you set a field on a non-existent tiddler, TW creates the tiddler for you automatically. It's one of 3 ways you can create new tiddlers.

kookma commented 3 years ago

@Marxsal - At this weekend I am trying to see how to implement your idea. I think the safest one is to create those tiddlers using the create tiddler UI. The problem is the current UI creates tiddlers using a base name and sequential numbers if we add an input box to accept a filter then one create non-existing tiddlers. Please let me know your opinion.

Marxsal commented 3 years ago

I think using createTiddlers will cause many headaches. What I would do is have a checkbox like [ ] Show Non-existent tiddlers If checked, then TC would show those tiddlers along with the others. They will be in italics showing that they do not exist. I would just use action-setfield, since it will not change the title, which will cause those headaches I mentioned. 

On Saturday, December 19, 2020, 07:29:23 AM PST, Mohammad Rahmani <notifications@github.com> wrote:  

@Marxsal - At this weekend I am trying to see how to implement your idea. I think the safest one is to create those tiddlers using the create tiddler UI. The problem is the current UI creates tiddlers using a base name and sequential numbers if we add an input box to accept a filter then one create non-existing tiddlers. Please let me know your opinion.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

kookma commented 3 years ago

@Marxsal - Your suggestion seem reasonable, lets give a try!

kookma commented 1 year ago

idea: you can have a button create from missings and include in text the backlinks