1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 20:52:26 +01:00

Add tab{next,previous}visible to jump over folds

Required since tab{next,previous} open closed folds
This commit is contained in:
Nelo Wallus
2016-01-15 14:19:39 +01:00
parent dfdc45ec54
commit 2a5f1fe30e

View File

@@ -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);
},
""
)