Repository navigation
move tab left/right start/end? #364
aidancz
started this conversation in
Feature requests / ideas
Replies: 1 comment
|
Can use browser api. async function move_active_tab(direction: -1 | 1): Promise<void> {
const current = await glide.tabs.active();
if (current.pinned) return;
const index = (current.index ?? 0) + direction;
if (index < 0) return;
await browser.tabs.move(current.id!, { index });
}
glide.excmds.create(
{ name: "tab_move_left", description: "Move current tab one position left" },
async () => move_active_tab(-1)
);
glide.excmds.create(
{ name: "tab_move_right", description: "Move current tab one position right" },
async () => move_active_tab(1)
);
glide.keymaps.set(["normal", "insert"], "<A-S-p>", "tab_move_left");
glide.keymaps.set(["normal", "insert"], "<A-S-n>", "tab_move_right"); |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Currently, there are no key mappings or excmds available for moving tabs. Please consider adding them.
Firefox default:
Move tab left:Ctrl + Shift + PageUp
Move tab right:Ctrl + Shift + PageDown
All reactions