Skip to content

Enabling text selection #137

Description

@rifatsahiner

Dear Markus,
First of all thanks for the amazing library.
I have made myself a log viewer with finalcut for my server side project. Here is a screenshot;

logger

Everything is great but its currently lacking text selection, which is crucial for a log viewer. I should be able to copy log text and paste to editor search during development. What is the best way you can think of for doing this? These are what I think possible;

  • There can be a "selection mode" which gives mouse control back to terminal for native text selection. I have checked for such an action but couldn't find any on the class methods
  • I can make a right click menu that copies the text of the log that is pointed by cursor to clipboard. I don't know if the line number can be deducted from cursor position
  • I can show a unique id for each log line and user can copy the text of the log via this id on a separate dialog (which would be ugly)

Log-view test code is here if you want to check;
https://github.com/rifatsahiner/tui-logger

Thanks in advance
Rıfat

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions