mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:42:27 +01:00
Add tab{next,previous}visible to jump over folds
Required since tab{next,previous} open closed folds
This commit is contained in:
@@ -218,3 +218,23 @@ create_command_and_mapping(
|
||||
},
|
||||
""
|
||||
)
|
||||
|
||||
create_command_and_mapping(
|
||||
"tabnextvisible",
|
||||
"Switch to the next visible tab",
|
||||
function () {
|
||||
let tab = TreeStyleTabService.getNextVisibleTab(gBrowser.tabContainer.selectedItem);
|
||||
gBrowser.tabContainer.selectedIndex = gBrowser.tabContainer.getIndexOfItem(tab);
|
||||
},
|
||||
""
|
||||
)
|
||||
|
||||
create_command_and_mapping(
|
||||
"tabpreviousvisible",
|
||||
"Switch to the previous visible tab",
|
||||
function () {
|
||||
let tab = TreeStyleTabService.getPreviousVisibleTab(gBrowser.tabContainer.selectedItem);
|
||||
gBrowser.tabContainer.selectedIndex = gBrowser.tabContainer.getIndexOfItem(tab);
|
||||
},
|
||||
""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user