Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copying out of tl #23

Open
kyrrigle opened this issue Feb 13, 2024 · 11 comments
Open

Copying out of tl #23

kyrrigle opened this issue Feb 13, 2024 · 11 comments

Comments

@kyrrigle
Copy link

I could see tl being super helpful but there's one thing missing that means I cannot use it for real.

Often the end result of searching for something in the logs is to copy the information out (share with coworker, create jira, etc)

It seems like there's no current way to do that?

Double clicking on a log line opens the detail.
Trying to click-drag select in detail does noting.
Ctrl-C does nothing.

If Ctrl-C could copy the current line that would be good enough but I would love to be able to copy all lines found by selection. And being able to click-drag in the detail to select part of the json would be nice.

@kyrrigle
Copy link
Author

I meant "Command-C" to copy (Ctrl-C exits of course). Maybe an function key to copy?

@mmoerdijk
Copy link

I agree that this would be very usefull

With gnome-terminal you can use CTRL+SHIFT+LMB to do a block select that way you can select the text from the detail view.

It will introduce line breaks though

@adrfantini
Copy link

Agreed that the ability to select/copy would be absolutely needed

@rhuygen
Copy link

rhuygen commented Mar 8, 2024

On macOS you can select text with the mouse while holding the Option key, then copy with CMD-C.

@spaceman7777
Copy link

Same problem here. I can't figure out any way to copy text from the terminal when using this...

it looks great, but not being able to copy a specific bit of log file to the clipboard is a major dealbreaker.

note: i'm using xfce4-terminal w/ zsh on xubuntu 23.10

@rhuygen
Copy link

rhuygen commented Mar 26, 2024

I didn't find a way to make it work in Ubuntu either....

@Stubatiger
Copy link

Yes copying line/block of lines would be very helpful :) I am on Ubuntu too

@cornel-masson
Copy link

+1 for a copy function - I'm on Ubuntu under Windows (WSL).

@gergo
Copy link

gergo commented Sep 3, 2024

+1. awsome tool so far but this would be a great addition

@anorm
Copy link

anorm commented Oct 25, 2024

+1

I would like to extend the request to copying multiple lines at once. I currently have a stack trace of ~30 lines with several lines wider than my terminal can display. So, for me, copying individual lines is tedious.

Hence, I propose to allow a range of lines to be selected in pointer mode, and a key to copy to the system clipboard. (Similar to the following in vim: Vjjj then "+y)

@anorm
Copy link

anorm commented Oct 25, 2024

I've created a pull request #62 which adds the single line copy function. Can be tested by installing from my branch:

pip install git+https://github.com/anorm/toolong.git@feature/yank-line

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

No branches or pull requests

9 participants