MCPcopy
hub / github.com/philc/vimium / visitPreviousTab

Function visitPreviousTab

background_scripts/main.js:412–420  ·  view source on GitHub ↗
({ count, tab })

Source from the content-addressed store, hash-verified

410 },
411
412 async visitPreviousTab({ count, tab }) {
413 await bgUtils.tabRecency.init();
414 let tabIds = bgUtils.tabRecency.getTabsByRecency();
415 tabIds = tabIds.filter((tabId) => tabId !== tab.id);
416 if (tabIds.length > 0) {
417 const id = tabIds[(count - 1) % tabIds.length];
418 selectSpecificTab({ id });
419 }
420 },
421
422 async reload({ count, tab, registryEntry }) {
423 const bypassCache = registryEntry.options.hard != null ? registryEntry.options.hard : false;

Callers

nothing calls this directly

Calls 4

selectSpecificTabFunction · 0.85
getTabsByRecencyMethod · 0.80
initMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected