Lokyr
Documentation

command-header: the command's header

On this page

lokyr/command-header · bundled · source

The command whose output you are looking at, at the top of its pane, once its line has scrolled above the view: a pill of the command as you typed it, in the terminal's font, on a thin line across the pane.

Note

Blocks, off by default, replaces this plugin while it runs: it shows the block's own prompt rows at the pane's top, or the same header with an arrow to the end of the command's output, and its keys are in [plugins.blocks]. The command header comes back when you turn Blocks off, with the keys of [plugins.command-header] · Since 1.4

The header

It needs your shell to mark its commands, as Lokyr's shell integration has zsh, bash and fish do.

Configuration

Its keys go in [plugins.command-header]:

KeyValuesDefaultWhat it does
background, text, border, line, hovera theme's token, by its name"panel.bg", "text", "panel.border", "panel.border", "button.hover.bg"The pill's background, its text, its border, the line across the pane, and the color over the pill's background under the pointer
font-sizepoints, 0 to 2000The text's size, in the terminal's font; 0 for the terminal's own size
font-weight"light", "regular", "medium", "semibold", "bold", "heavy""regular"The text's weight, the terminal's font's face nearest to it; regular the terminal's own face
padding-x, padding-ypoints, 0 to 40 and 0 to 208, 1The room in the pill left and right of the text, and above and below it
align"left", "center", "right""left"Where the pill sits along the line across the pane
max-lengthcharacters, 1 to 100080The most characters of the line that the pill shows, cut of an ellipsis past them · Since 1.4
[plugins.command-header]
border = "accent"
font-size = 12
font-weight = "semibold"
padding-x = 10
align = "center"

Colors

The header's colors are the theme's tokens that its keys name, so that they follow the light and the dark appearance, and a theme's colors: by default the pill takes the panels' background and border and the interface's text, and the line the border's color. Any token of the theme goes, as accent, field.bg, text.secondary or tabs.active.bg, as a theme's [interface] lists them.

Turning it off

[plugins.command-header]
enabled = false

While Blocks runs, the command header is off already, and the Plugins page of the settings window shows it as replaced by Blocks · Since 1.4.

Permissions

history-read, to read the commands that the shell marked, and terminal-read, to read a command's line.