Lokyr plugins

sephiroth74/snap

An image of a terminal's text, of the selection, the screen or a command and its output, in a frame as a macOS window's, to copy or to save

Version
0.3.0
License
MIT
Repository
https://github.com/sephiroth74/sleip-snap
Install
sleip add sephiroth74/snap

Capabilities

clipboard-write history-read process-read terminal-read

Versions

VersionCapabilitiesChecksum
0.3.0clipboard-write history-read process-read terminal-readsha256:f639f6a1cec4…
0.2.0clipboard-write process-read terminal-readsha256:bdf84c3c9bf7…
0.1.0clipboard-write process-read terminal-readsha256:4fc918a86f33…

README

snap

A plugin of Lokyr: an image of a terminal's text, in a frame as a macOS window's, of its three buttons and the pane's title, with rounded corners, a shadow and room around it, to copy or to save, as code-snippet tools make of code.

Use

Install

Of Lokyr 1.4 or later, of the plugin API 0.1.6:

sleip add sephiroth74/snap

Config

In Lokyr's config.toml, under [plugins.snap]:

KeyValuesDefaultWhat it does
background#rrggbbthe theme's background, darkerThe color around the window
transparent-backgroundtrue, falsefalseNo background around the window
shadowtrue, falsetrueA shadow under the window
paddingpoints, 0 to 25632The room around the window
rounded-cornerstrue, falsetrueThe window's corners rounded, or square
window-controlstrue, falsetrueThe window's three buttons
titletrue, falsetrueThe pane's title in the window's bar, as its tab shows it
title-texta textthe pane'sThe window's title, in place of the pane's
targetcontainer, windowcontainerThe window with what is around it, or the window alone
min-columns1 to 1000the selection'sThe least columns of a selection's window
min-rows1 to 1000the selection'sThe least rows of a selection's window
actioncopy, save, bothcopyWhat the shutter does
scale1, 2, 3the display'sThe pixels of a point

Capabilities

A save goes through the save panel, where you choose the file: it needs no capability.

Develop

sleip check checks the plugin, sleip test runs its tests, and sleip dev links it into Lokyr, which reloads it at each save.

License

MIT, see LICENSE.