oleg-shilo / PyMap.VSIX

CodeMap extension for Visual Studio 2017-2022
18 stars 3 forks source link

Display Regions somehow #9

Closed rsunde closed 1 year ago

rsunde commented 1 year ago

Is it possible to somehow show that things are inside a region in the outline?

Not as a tree,

but just possible draw thin lines above and under? color background? maybe even make a little collapsible box around ??

image

oleg-shilo commented 1 year ago

Can you elaborate on this? Do you mean selection in the document?

rsunde commented 1 year ago

Excuse the poor photoshop skills,

imagine like a bounding box for the items in the list, but the box is hardly noticeable, maybe with options the region title could be shown, or not, the region could just be a thin box or colored background, or something, I dunno really, just have an idea at the moment

image

rsunde commented 1 year ago

and also remember there can be subregions, however that gets displayed.

oleg-shilo commented 1 year ago

I see.

This is something that I am not sold on. I deliberately decided to avoid dealing with regions but instead provide heavy filtering and sorting of Type members, but not decorators.

I see regions in this case being a navigation antipattern. IE you sort all members by name, this action will spread the region fragments all over the type tree. CodeMaid faced the same problem and resorted to support regions if user disabled any sorting (e.g. order as in file).

I will consider this approach too. Interestingly enough the density of the nods there is identical to CodeMaid. I used it as a standard. But agree with you, it is a little wasteful.

rsunde commented 1 year ago

Sure, sorting by name would disable the region "decorator".

Yeah, I know regions are slightly annoying at times, I just felt that somehow showing the region in the list would help me find what I needed faster, I might not know the codebase yet, and the region title might be super great, but the vars not so much, then NO amount of filtering would help me.

oleg-shilo commented 1 year ago

Done. Release v2.1.3.0 It will look like this: image

rsunde commented 1 year ago

I F/&#"%NG LOVE IT!! ;)