unisonweb/ui-core

Should opening a definition focus it in the namespace tree?

ceedubs opened this issue · 2 comments

A common occurrence for me is that I want a method for say Map that I assume already exists but I don't know what it's called. I search for Map and see ~10 results but none of them are the function that I'm looking for. It feels like I should be able to accept the top Map data type result and then scroll down in the left pane to look at the rest of the methods under the Map namespace. But the left pane isn't actually focused on Map, so I scroll down to M, realize that it's not there, scroll to data, click it, and then scroll to Map.

What would "focus" mean in this suggestion? That data is open and Map has a visual indicator? Or were you thinking that we should open data and scroll to it? (I think this latter option might be a bit too much in other cases than the scenario you're describing).

@hojberg yeah, I was talking about scrolling to it. In general as I switch between definitions I find that I expect the left side to scroll to the one that I'm on (though I still want to be able to scroll it manually; I just want it to line up when I shift focus in the right pane). But I don't know the rules of UI - maybe this would be bad.