Lokyr
Documentation

tabs: the tab bar

On this page

lokyr/tabs · bundled · source

Each window's tabs, in a bar at the top, at the bottom, or in a column on the left or the right, and the commands that open, close, select, move, rename and color them. Windows and tabs shows how to use them, with the windows they're in.

The bar

Commands

CommandMenuDefault keysWhat it does
tabs.newShell › New Tab⌘TOpens a tab after the others, its shell in the folder of the pane that has the keyboard
tabs.closeShell › Close Tab⌘WCloses the tab, or its pane while it has splits, asking you first while a program other than a shell runs there
tabs.next, tabs.prevShell › Select Next Tab, Select Previous Tab⇧⌘], ⇧⌘[Shows the next or the previous tab, around the ends
tabs.switch, tabs.switch-backShell › Switch Tab, Switch Tab Back⌃Tab, ⌃⇧TabShows the tab you used before. Press Tab again while you hold Control to go further back; the tab that shows when you release Control becomes the most recent. ⌃⇧Tab goes the other way. With control-tab = "order", they show the next and the previous tab instead · Since 1.3
tabs.goto⌘1 to ⌘9Shows the tab of that index, from 1 at the left
tabs.move⇧⌘←, ⇧⌘→Moves the tab a place, delta of -1 or 1
tabs.renameShell › Rename Tab…Gives the tab its title; without one, it asks you for it, and an empty one gives the tab its own back
tabs.set-colorGives the tab its color, such as "#ff8800" or "#f80"; an empty one gives the program's back
tabs.detachShell › Move Tab to New WindowMoves the tab out to a window of its own
tabs.toggle-pinShell › Pin TabPins the tab at the start of the bar, or unpins it. The tab's context menu has the same item · Since 1.3
tabs.reopenShell › Reopen Closed Tab⇧⌘TBrings back the tab you closed last, at its place, as you left it, what its programs printed meanwhile included; its find bar and copy mode stay closed. Press it again for the one before. A closed tab waits reopen-seconds, 10 by default, and 16 wait at most. A tab that you close while a program other than a shell runs there doesn't wait: Lokyr asks first, and closing it ends the program · Since 1.3
tabs.new-groupShell › New Group with TabStarts a group with the tab, of a color that the window's other groups don't have, and asks you for its name · Since 1.3
tabs.add-to-groupShell › Add Tab to GroupPuts the tab at the end of the group of its group id; without one, the nearest group before the tab, or after it · Since 1.3
tabs.remove-from-groupShell › Remove Tab from GroupTakes the tab out of its group, right after the group's tabs · Since 1.3
tabs.rename-groupShell › Rename Group…Gives the tab's group its title; without one, it asks you for it, and an empty one leaves the group of no name · Since 1.3
tabs.set-group-colorGives the tab's group its color, such as "#ff8800" or "#f80"; an empty one leaves it of none, gray · Since 1.3
tabs.fold-groupShell › Fold GroupFolds the tab's group, showing the tab after it · Since 1.3
tabs.ungroupShell › UngroupTakes the tab's group apart, its tabs staying where they are · Since 1.3

The commands without keys are there for your own bindings:

[keys]
"cmd+shift+r" = "tabs.rename"
"cmd+alt+r" = { command = "tabs.set-color", args = { color = "#d14" } }

Configuration

Its keys go in [plugins.tabs], each applied as you save the file:

KeyValuesDefaultWhat it does
position"top", "bottom", "left", "right""top"Where the bar goes; on the left, in the "unified" and "seamless" looks, the column runs up through the titlebar, as macOS's sidebars do
style"standard", "unified", "seamless""unified"The bar's look
hide-when-singletrue, falsetrueWhether the bar hides while the window has a single tab
show-indextrue, falsetrueWhether each of the first nine tabs shows the keys that select it
close-button"always", "hover", "never""hover"When a tab shows its close button
column-widthfrom 60 to 600200The column's width in points, on the left or the right, which a drag of its edge changes too
control-tab"recent", "order""recent"What ⌃Tab and ⌃⇧Tab step through: the tabs in the order you used them, or in the bar's order · Since 1.3
reopen-secondsfrom 0 to 8640010How many seconds a tab you close stays ready to come back with ⇧⌘T. Its programs keep running meanwhile and it keeps its memory; at most 16 closed tabs wait, the oldest closing for good past them; 0 keeps none · Since 1.3
[plugins.tabs]
position = "left"
style = "seamless"

Turning it off

[plugins.tabs]
enabled = false

The bar and the tabs' commands go, with their keys: no key opens a tab, and ⌘W closes the window.

Permissions

It reads the windows and the tabs. Its manifest asks to open, close and move them, workspace-write, to set the tabs' titles and colors, pane-view, and to read the processes, process-read, for the tabs' folders and programs in their titles, and for whether a program runs or prints, an AI agent's state and a program's session's status, which its marks show.