adbenitez / deltachat-cursed

[WIP] Cursed Delta, a lightweight Delta Chat client for the command line
GNU General Public License v3.0
40 stars 2 forks source link

URL behaviour #42

Open fluxion-t opened 2 years ago

fluxion-t commented 2 years ago

1) Short URL's:

When having a short URL (meaning it fits in one line on the screen) and placing the cursor above, the URL becomes underlined and the cursor changes its icon suggesting that I can click on the URL. However, when I click on it, nothing happens.

Clicking with the right button does not give options either.

I cannot select its text either with the mouse. In fact, I cannot select any text, either from URL or not.

Fortunately, with a multiplexer, like Screen, I can easily select the text from the URL and paste it elsewhere.

2) Long URL's:

Long URL's (meaning they don't fit in one line) suffer from the same problems above, with one addition. When placing the cursor above, it underlines just the first line, ignoring what there is on the next line(s).

In this case, not even the text selection from the multiplexer will work, since Screen will select a lot of blank space between the two pieces.

My system is Ubuntu 21.04 with xfce4-terminal.

I would suggest a command-like approach, like /url with two arguments, the first could be "open" or "save", and the second could be the URL's present in the chat, with autocompletion when pressing TAB (as XMPP's Profanity client does).

Many thanks

adbenitez commented 2 years ago

I think the URL highlighting is a feature from your Terminal app, and to open them you just have to press Ctrl + clicking the URL

adbenitez commented 2 years ago

for example, opening a txt file with some long links inside Midnight Commander application, I can open the links with ctrl + click but for links that are truncated in the end of the screen and continue in the next line, are wrongly highlighted and when clicked the URL is truncated so that is a problem of the Terminal app not detecting them correctly,

to avoid this, a way to copy and open the links inside Cursed Delta must be implemented