Show Next/Previous cycling through tabs inside of panes


I have keybindings for the ‘pane:show-previous-item’ and ‘pane:show-next-item’. I want to use these to step through tabs inside of a pane, but I don’t want to loop around when i reach the end. In fact, I would like to be able to skip to the next frame on the left or right, if one is available, when i reach the end of the tabs in the current frame. Is it possible to implement this given the current behaviours of these commands, or would I need a new package to do it?


You would need some sort of code to do it. Whether you would need a package or if it could be done in the is another question.