! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Adding a space after drag and drop pasting of text or urls
Status:
RESOLVED: WONTFIX
Severity:
enhancement
Product:
Xfce4-terminal
Component:
General

Comments

Description Raj Kiran Grandhi 2011-08-18 03:18:26 CEST
Hi,

Currently, when something is pasted in the terminal window by dragging and dropping content from another application(for example, a url from a web browser), the cursor is positioned right after the pasted material. When pasting something else after that, one would first have to focus the terminal, insert a space, and then go back to the original application to copy more material. It would be nice if a space was automatically added at the end of such pasted material to make it easier to paste multiple pieces of data.

Thank you,
Raj Kiran
Comment 1 Daniel Le 2011-08-26 14:08:45 CEST
Could someone please advise whether this is desirable in Terminal? 'gnome-terminal' does not do this.
Comment 2 Raj Kiran Grandhi 2011-08-28 04:55:42 CEST
(In reply to comment #1)
> Could someone please advise whether this is desirable in Terminal?
> 'gnome-terminal' does not do this.

gnome-terminal does indeed insert a space. Drag any link from a web browser into the terminal window and it will insert a space. But only for a link that is dragged and dropped, not if it is copy pasted. Sorry for not mentioning this before.

gnome-terminal was where I found out about this behavior. It is convenient to quickly make a list of links without repeatedly switching focus between the terminal and the browser.

Thank you,
Raj Kiran
Comment 3 Daniel Le 2011-08-28 21:08:32 CEST
(In reply to comment #2)
> (In reply to comment #1)
> > Could someone please advise whether this is desirable in Terminal?
> > 'gnome-terminal' does not do this.
> 
> gnome-terminal does indeed insert a space. Drag any link from a web browser
> into the terminal window and it will insert a space. But only for a link that
> is dragged and dropped, not if it is copy pasted. Sorry for not mentioning this
> before.
> 
> gnome-terminal was where I found out about this behavior. It is convenient to
> quickly make a list of links without repeatedly switching focus between the
> terminal and the browser.
> 
> Thank you,
> Raj Kiran

I believe gnome-terminal increments the cursor position one column to the right of the last character of the drag-and-dropped content, instead of inserting a space.
Comment 4 Daniel Le 2011-08-28 21:11:27 CEST
You will still need to press spacebar after that in order to get a real 'space'.
Comment 5 Raj Kiran Grandhi 2011-08-29 15:03:38 CEST
(In reply to comment #3)

> I believe gnome-terminal increments the cursor position one column to the right
> of the last character of the drag-and-dropped content, instead of inserting a
> space.

(In reply to comment #4)
> You will still need to press spacebar after that in order to get a real
> 'space'.

I don't think it works that way. If I open vim inside gnome-terminal and drag-and-drop a link while in insert mode, then a space gets inserted at the end.

Similarly for just "cat > links.txt" followed by drag-drop. The created file does contain spaces.

Cursor re-positioning would not work for these cases, would it?

Thank you,
Raj Kiran
Comment 6 Nick Schermer editbugs 2012-12-25 16:23:59 CET
No desirable. How does the terminal know if you like a space after the text? Maybe its a comment for a commit, maybe an url.. Who knows?

Bug #7905

Reported by:
Raj Kiran Grandhi
Reported on: 2011-08-18
Last modified on: 2012-12-25

People

Assignee:
Nick Schermer
CC List:
2 users

Version

Attachments

Additional information