Closed charulix closed 4 months ago
OK, I will try to answer:
A
for select All, then quit. This produces the output in your terminal, which can be copy-pasted (more easily than in the TUI.)ug -Q --sort=changed
. If you use this a lot, then perhaps define an alias such as alias uqc='ug -Q --sort-changed'
.Note that the TUI "quit & output" only outputs the selections you've made in "selection mode" with ENTER. Press ENTER to select a line and DEL to unselect.
Note that the TUI output can be redirected to a clipboard tool, like so with xclip
on Linux:
$ ug -Q --color=always | xclip -sel clip
On MacOS:
$ ug -Q --color=always | pbcopy
However, this may not preserve colors. Colors are ANSI escape SGR codes.
On the subject of converting terminal output with ANSI escapes to HTML, this ansi2html.sh script mentioned in this article looks useful.
Closing this as answered. I wish there were better tools to pass results to the clipboard, but it is what it is.
Question
ug -Q (interactive mode),
^Q quit and output but do not know how to use this if it can output in colour
thank you.