spine-tools / Spine-Toolbox

Spine Toolbox is an open source Python package to manage data, scenarios and workflows for modelling and simulation. You can have your local workflow, but work as a team through version control and SQL databases.
https://www.tools-for-energy-system-modelling.org/
GNU Lesser General Public License v3.0
70 stars 17 forks source link

DB editor sticky selection #2140

Open PiispaH opened 1 year ago

PiispaH commented 1 year ago

In the toolbox settings there is an option under the DB editor setting named Sticky selection in Entity trees. Enabling this option reverses the functionality of pressing down ctrl when making selections. Currently the sticky selection setting affects only object- and relationship trees. This is a little confusing when making multiple selections from those trees and also the scenario/alternative trees at the same time. Should the sticky selection setting be renamed and extended to work also in scenario/alternative trees or is the whole sticky selection setting obsolete?

ptsavol commented 1 year ago

This was a requested feature back in the day so I guess somebody uses it. If that is still the case, it should be extended to work throughout Spine DB Editor.

manuelma commented 1 year ago

I wouldn't mind dropping it - I don't know if anybody uses it now.

It was in the early days of the graph view that we thought it could help to extend the selection with normal click. I don't know if it makes sense to extend the functionality it to other views in DB editor though...

jkiviluo commented 1 year ago

I guess it was me who wanted it back then. I haven't been using it though. CTRL-select works nicely enough. In some circumstances it could be nice to have sticky, but I guess it's not worth trying to keep around. If we would keep it, there should be easy and visible way to turn it on/off. Button in the toolbar plus keyboard shortcut that is revealed by the button tooltip.