MCPcopy
hub / github.com/kimlimjustin/xplorer / goBack

Function goBack

src/Components/Layout/tab.ts:78–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 * @returns {Promise<void>}
77 */
78const goBack = async (): Promise<void> => {
79 const tabs = await Storage.get(`tabs-${windowName}`);
80 const _focusingTab = tabs.tabs[tabs.focus];
81 if (_focusingTab.currentIndex > 0) {
82 OpenDir(_focusingTab.history[_focusingTab.currentIndex - 1]);
83 }
84};
85
86/**
87 * Function to navigate forward

Callers 3

KeyUpShortcutsHandlerFunction · 0.90
MouseShortcutsHandlerFunction · 0.90
TabFunction · 0.85

Calls 2

OpenDirFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected