danielo515 / tiddlypouch

Other
20 stars 9 forks source link

Faster database switching #55

Open danielo515 opened 7 years ago

danielo515 commented 7 years ago

Currently there is one shortcut to change the database under the subtitle. But this only opens the control panel to allow you to select a different one. If you switch often this is not comfortable. It would be better if it provides a drop-down that allows you to select another database and then automatically trigger a save config.

danielo515 commented 7 years ago

According to the select widget documentation this modification should be very straightforward. The select widget is able to trigger an action widget when selection changes, which we could use to trigger the save config message. Maybe @mauloop wants to give it a go?

mauloop commented 7 years ago

I just forked Tiddlypouch on my Github space. I'll try.

I have a question. I noticed that you don't use SelectWidget in code of database-name, but EditWidget + list of dropdown-menu-like styled buttons. Since the widget responsible for changing the config is a ButtonWidget, why not simply add an action to this one?

danielo515 commented 7 years ago

I will prefer to use a select widget because is what makes sense in this context. An edit widget does not make sense because you just want to switch databases, not to create a new one