SillyTavern icon indicating copy to clipboard operation
SillyTavern copied to clipboard

Enable auto-select of input field on popups + Add "auto-select" utility class

Open Wolfsblvt opened this issue 1 year ago • 2 comments

Always got a bit annoyed with this. If a popup provides a default value for the input field, it's either a default that is supposed to be changed anyway (Rename Char/Chat, etc) and you wanna clean the existing value of of the text area, or you can simple hit enter to confirm the default value if you don't care. (Like the new WI custom sort order thingy popup)

So it was a bit tedious to manually press CTRL+A or double-click the input, to actually select the text to remove. Think this is much more intuitive.

I did not provide an option to turn it off for the popup, on purpose. If there are use-cases where it would be really important do not auto-select the default input, then let me know.

Besides that, this PR also adds the general CSS utility class auto-select, which can be used for other or

Note: It'll auto select the full text on every control focus.

Checklist:

Wolfsblvt avatar Jul 23 '24 19:07 Wolfsblvt

I'm sure this breaks muscle memory of users built over the year, so I require a toggle for that.

Cohee1207 avatar Jul 23 '24 21:07 Cohee1207

I love me some more schmoggles - who doesn't like them. Under "Miscellaneous"?

Can do that.

Wolfsblvt avatar Jul 24 '24 00:07 Wolfsblvt

There is your schmoggle. Disabled by default. People gonna miss it, but well. I am happy not having to press CTRL+A for every single "Rename" or "Duplicate" Popup I am opening.

Wolfsblvt avatar Aug 18 '24 01:08 Wolfsblvt

There is your schmoggle

Dankeschön. It's perfect now.

Cohee1207 avatar Aug 18 '24 10:08 Cohee1207