You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I imagine that an important use case for uproot-browser browse might be quick checks of a produced ROOT file, where the user already knows fairly well what they are looking for. In that context, here are a few navigation ideas hat may help users get to their goal even more quickly.
Filtering
When browsing a tree with hundreds of branches, some type of filter functionality could be useful to find branches of interest more efficiently. I am imagining perhaps a text field that may e.g. take a regular expression, and then only show objects that match in the sidebar. Filtering could either happen at the current "level" of indentation (e.g. in a file with many trees, work on the trees, but then if the user already has entered a tree, work on the level of branches in that tree). Presumably it could also be possible to match multiple levels via something like treename/branchname.
Jump to matching object
Slightly related to this would be a way to jump to the nearest matching branch when starting to type the corresponding letters with which its name starts. In a tree full of branches, typing el could jump the cursor to branches that start with that. Given that some letters already correspond to some functionality, perhaps this would need to be escaped to be useful (e.g. similar to other functionality, j for "jump" to enter "jump mode", followed by the desired letters, even though vim fans may intuitively use j differently).
Scrolloff & multi-line scroll
When clicking a branch, the up/down arrows do seem to work for navigating through the structure in the tree to some extent, but I am not sure whether this is on purpose or not. The highlighted entry scrolls off-screen for me with iTerm2 sometimes when doing a combination of click + up/down arrow navigation. Clicking on an entry also does not highlight it in the same way as scrolling does (which changes background color). To make scrolling more efficient, a non-zero vim-like scrolloff (to see what comes up next below the current branch), and the possibility to do multi-line skips by entering a number and then up/down arrow could both be convenient.
Navigating folder structure
It is possible to "enter" a lower level of a structure (e.g. go from a tree to its branches) via return, but I am not aware of a way to quickly get back to a higher level again. Left/right arrow (or h/l) could serve the purpose of entering/exiting a lower level.
The text was updated successfully, but these errors were encountered:
I imagine that an important use case for
uproot-browser browse
might be quick checks of a produced ROOT file, where the user already knows fairly well what they are looking for. In that context, here are a few navigation ideas hat may help users get to their goal even more quickly.Filtering
When browsing a tree with hundreds of branches, some type of filter functionality could be useful to find branches of interest more efficiently. I am imagining perhaps a text field that may e.g. take a regular expression, and then only show objects that match in the sidebar. Filtering could either happen at the current "level" of indentation (e.g. in a file with many trees, work on the trees, but then if the user already has entered a tree, work on the level of branches in that tree). Presumably it could also be possible to match multiple levels via something like
treename/branchname
.Jump to matching object
Slightly related to this would be a way to jump to the nearest matching branch when starting to type the corresponding letters with which its name starts. In a tree full of branches, typing
el
could jump the cursor to branches that start with that. Given that some letters already correspond to some functionality, perhaps this would need to be escaped to be useful (e.g. similar to other functionality,j
for "jump" to enter "jump mode", followed by the desired letters, even though vim fans may intuitively usej
differently).Scrolloff & multi-line scroll
When clicking a branch, the up/down arrows do seem to work for navigating through the structure in the tree to some extent, but I am not sure whether this is on purpose or not. The highlighted entry scrolls off-screen for me with iTerm2 sometimes when doing a combination of click + up/down arrow navigation. Clicking on an entry also does not highlight it in the same way as scrolling does (which changes background color). To make scrolling more efficient, a non-zero vim-like
scrolloff
(to see what comes up next below the current branch), and the possibility to do multi-line skips by entering a number and then up/down arrow could both be convenient.Navigating folder structure
It is possible to "enter" a lower level of a structure (e.g. go from a tree to its branches) via
return
, but I am not aware of a way to quickly get back to a higher level again. Left/right arrow (orh
/l
) could serve the purpose of entering/exiting a lower level.The text was updated successfully, but these errors were encountered: