Skip to content

Add clipboard copy for logs and main panel content (can help with issues like #167) - #837

Open
fatalitirar1 wants to merge 1 commit into
jesseduffield:masterfrom
fatalitirar1:copy-to-buffer
Open

Add clipboard copy for logs and main panel content (can help with issues like #167)#837
fatalitirar1 wants to merge 1 commit into
jesseduffield:masterfrom
fatalitirar1:copy-to-buffer

Conversation

@fatalitirar1

Copy link
Copy Markdown
  • Adds a C keybinding on the containers and services panels that grabs a
    snapshot of the recent logs (docker logs --tail=300 / the getServiceLogs command template) and copies it to the system clipboard.
  • Adds a C keybinding on the main panel that copies whatever content is currently displayed there (e.g. logs opened via m).
  • Clipboard access is implemented via OSCommand.CopyToClipboard, using
    pbcopy (macOS), clip (Windows), and wl-copy/xclip/xsel (Linux).

I hope this functionality will be useful for the project. This is the first time I'm contributing to open source, so I'd be happy to receive feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant