Lokyr
Documentation

core-actions: copy, paste, scrolling and the text's size

lokyr/core-actions · bundled · source

The terminal's everyday actions: copy and paste, select all, clear, a command's output copied or selected, the scrolling of the view through the scrollback, and the size of the text. Its keys are keymap-macos's.

Commands

CommandMenuDefault keysWhat it does
pane.copyEdit › Copy⌘CCopies the selection; of none, the block that you selected, its command line and its output · Since 1.4
pane.pasteEdit › Paste⌘VPastes the clipboard's text, asking you first when confirm-paste says so
pane.select-allEdit › Select All⌘ASelects the scrollback and the screen
pane.copy-outputEdit › Copy Command Output⌥⇧⌘CCopies the output of the last command that ended, or, from the pane's context menu, of the command under the pointer, without its prompt and its command line, its wrapped rows joined, 100 000 rows at most; of the commands that the shell marks, as shell-integration has it
pane.select-outputEdit › Select Command Output⇧⌘ASelects that output, as a drag would
pane.clearEdit › Clear⌘KClears the scrollback and the screen but the prompt, which goes to the top
font.biggerView › Bigger⌘=, ⌘+Makes the text a point larger, in every window
font.smallerView › Smaller⌘-Makes the text a point smaller
font.resetView › Default Size⌘0Gives the text the size of your config again
pane.scroll-line-up, pane.scroll-line-downView › Scroll Up a Line, Scroll Down a Line⇧⌘↑, ⇧⌘↓Scrolls the view a line
pane.prompt-previous, pane.prompt-nextView › Jump to Previous Prompt, Jump to Next Prompt⌘↑, ⌘↓Scrolls the view to the prompt above its top, or below it, of the commands that the shell marks, as shell-integration has it; past the last, to the screen. ⌘↑ and ⌘↓ run them while Blocks is off, which takes them to select a block · Since 1.4
pane.scroll-page-up, pane.scroll-page-downView › Scroll Up a Page, Scroll Down a Page⌘Page Up, ⇧Page Up, ⌘Page Down, ⇧Page DownScrolls the view a page
pane.scroll-top, pane.scroll-bottomView › Scroll to the Top, Scroll to the Bottom⌘Home, ⌘EndScrolls the view to the scrollback's first row, or back to the screen
pane.send-textSends its text to the program, as keys that typed it would: for your own bindings, as it needs its text

pane.send-text gives your keys the line editing of macOS's text fields, as the configuration guide shows:

[keys]
"alt+left" = { command = "pane.send-text", args = { text = "\u001bb" } }   # a word back
"alt+right" = { command = "pane.send-text", args = { text = "\u001bf" } }  # a word on

Turning it off

[plugins.core-actions]
enabled = false

Copy, paste, select all, clear, a command's output, the scrolling commands and the text's size go, with their keys and their menu items. The selection with the mouse, and the scrolling with the wheel or the trackpad, stay: they are the terminal's own.

Permissions

It reads the terminal's text, for the selection that it copies; reads and writes the clipboard; and writes to the program, the text that it pastes or sends.