swiftDialog icon indicating copy to clipboard operation
swiftDialog copied to clipboard

More options for --textfield

Open wakco opened this issue 1 year ago • 2 comments

Essentially this is similar to the now closed feature request #432.

When looking at #432 and:

--textfield <text>[,required,secure,prompt="<text>",name="<text>"]
    Enable a textfield with the specified label

I realized it would be nice to have a width option there as well to deal with longer input, on larger dialogs, and perhaps a height option to handle multi-line input.

Not including these options would default to existing behaviour.

I understood why #432, was closed, but still felt having these options would still be useful.

wakco avatar Sep 02 '24 00:09 wakco

I'm open to that.

Will probably add to a later release (2.6+) - I have another patch release I want to put out. After that I'm wanting to do a complete overhaul of the command line and json processing. Hopefully with 0 breaking changes but if there are it'll probably constitute a 3.0 release. that would be a good opportunity to chuck something like this in.

bartreardon avatar Sep 02 '24 01:09 bartreardon

That's great news that this might be added as an enhancement to a future update. FWIW, I've included below a related example of where this might be of benefit--it would seem helpful to view more of the actual file path without having to make the dialog wider than is necessary.

File Compare

peavine avatar Sep 02 '24 14:09 peavine