On Sat, Jan 26, 2019 at 02:14:28PM +1100, Cameron Simpson wrote: > On 25Jan2019 18:14, Jon LaBadie <jonfu@xxxxxxxxxx> wrote: > > When selection a multi-line URI in a terminal window > > I've noticed two behaviors. Some will ?ignore? the > > extra lines and only select to the end of the first > > line. Others will select the entire URI, typically > > to an ending ">". Obviously I would prefer the latter. > > > > Is this behavior terminal specific, i.e. gnome-terminal > > vs mate-terminal vs xterm. Or is it a configuration > > parameter that I've not found? > > Well, selection is definitely per terminal emulator. That said, each > terminal may indeed have configuration to tune it. To take a non-X11 > example, my iterm3 config has a bunch of options around selection, including > things like "double click performs smart selection" and "triple click > selects entire wrapped lines" and "trim whitespace when copying to > pasteboard". > > But it can also very a bit with the source of the text. Text just echoed to > the terminal (i.e. a very long URL) will hit the edge of the terminal and > wrap onto the next line, and thus the leading lines do not have an "end" > indication: if you widen the terminal the URL will flow back onto the > earlier wider lines. Versus doing a few echoes of shorter strings: they end > in a newline and the terminal knows the next line is distinct. The lines are definitely "wrapped". I regularly widen my terminal as you suggest to flow it all on to one line. Does not help with really long addresses (which are all too common). > > In a curses app, such as mutt or vim or tmux or screen, whether there are > end of line indications depends somewhat on the app, and that can affect > whether a URL gets broken up and whether it gets embedded whitespace in it > etc. > > What's you terminal and selection gesture? Mate-terminal and some gnome-terminal (basically the same). When a URL is hovered over, the terminal underlines the text. Typically I then click button 3 which presents a menu including "Open Link" and "Copy Link Address". With some long URIs, I'll manually highlight/select the URI by holding button 1 and copying it to the clipboard. > > Cheers, > Cameron Simpson <cs@xxxxxxxxxx> > _______________________________________________ > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx >>> End of included message <<< -- Jon H. LaBadie jonfu@xxxxxxxxxx _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx