refactor: reduce tree specific complexity in commands.py
#8077
Labels
component: tree tabs
Issues related to tree tabs functionality
commands.py
#8077
Several commands related to manipulating tabs now have duplicate logic paths that have to be maintained. For contributors who want to change, or add, commands it would be great if they didn't have to think about tree traversal. It would be great if we could push logic down into the tabbed browser or even the notree data structure.
There are some places where this might not be possible, or some places where we think there is existing non-tree related code that should get the same treatment.
Some ideas:
--sibling
) this isn't so bad because it isn't a new logic path just to handle tabs, but even then there might be stuff that we could move out to reduce the line noise.The text was updated successfully, but these errors were encountered: