symbols-tree-view
symbols-tree-view copied to clipboard
abliti to configure func or var
I wish there would be one configure that can hide var(s) I have one php file with 1000 lines and 100+ vars(about 10+ for each function) witch makes tree-view too long to switch bwtween funcs.
@zzjin Good idea! Thank you, I will add this feature in next version.
Oh wow, fastest response ever, cool, thanks!
Just mentioning this as a temporary work around to prevent @xndcn rushing this in, I found this to work when you put it in your local styles.less
:
// Temporary workaround for https://github.com/xndcn/symbols-tree-view/issues/19
.symbols-tree-view .list-tree li:not(.list-nested-item) .icon-variable {
display: none;
}
You can substitute .icon-variable
with anything of these:
.icon-function
.icon-class
.icon-namespace
.icon-struct
.icon-variable
.icon-method
.icon-field
.icon-member
.icon-interface
.icon-enum
.icon-typedef
.icon-macro
.icon-union
Thanks again to @zzjin for making his already cool package, even better for us :)
Looking forward for this too.
@nielsvm Thanks for your hack, works like charm.
Fix in 615f933 Now you can hide the whole kind of symbols in context menu.
This is really awesome, works great... Thanks for this.
There are some bugs in the toggling what kind of symbol of shown and sorting in the context menu.
- If you turn off the 'variable' and click sort by name, and the variables are shown again, and toggling the 'variable' in context menu will found out the toggle is wrong, on => off, and off => on
- The config of which kind of symbol to hide/show are not saved, not for the file, neither for current language, nor the whole settings.
Also it would be useful to be able to hide variables by default, by adding option in settings page for example. I always have to set variables off in tree-view for every file to make it uncluttered.