! 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 !
xfce4-terminal Click and Edit
Status:
RESOLVED: MOVED
Product:
Xfce4-terminal
Component:
General

Comments

Description podcast 2019-12-15 22:48:27 CET
Hello. I don't know it it is the correct place for suggesting a feature but I couldn't find better option.

I spent time looking for a terminal that allow the user click by mouse and move the cursor and edit the command without using arrow keys. 
This is really helpful when there are many parameters. 
But I couldn't find any terminal emulator app that suits me.

Recently I noticed "Unsafe Paste" dialog box in xfce-terminal, and it made me think about what I was looking for.
It would be really exciting, if we can click on the active command line (or use some shortcut) to show like "Unsafe Paste" dialog window and see the active command and parameters in the text box so that we can move the cursor by mouse. Then we can edit the command and run it directly.

Thanks.
Comment 1 Frash 2019-12-16 10:17:19 CET
Hi,
The terminal already supports this functionality. I am able to set the cursor in vim with xfce4-terminal though a mouse click.
The problem is that the shell isn't able to handle the event:
https://superuser.com/questions/1081310/how-to-move-the-commandline-cursor-on-bash-using-the-mouse

I use this shortcuts to move the cursor and delete a char in bash:
Ctrl+a
Ctrl+e
Ctrl+f
Ctrl+b
Ctrl+d

But there are also other shortcuts that allow you to move word wise and so on.
Comment 2 podcast 2019-12-16 17:12:17 CET
Created attachment 9314 
unsafe paste dialog box
Comment 3 podcast 2019-12-16 17:13:13 CET
Hi,

I know there are some limitations to use the mouse in terminal.

I also know about some of those shortcuts. But they are not like switching the cursor to a specific point in the text.

what I am suggesting here, it would be very nice if we can use a shortcut to open the "Unsafe Paste" dialog box and see the active commands and parameters in it. 

Let's say I am typing some command like:

$ command1 -parameter1 value1 -parameter2 value2 -parmater3 value3 -parameter4 -value4 -parameter5 -value5

By using a shortcut, I want to see the "Unsafe Paste" dialog box with the following text in it:
"command1 -parameter1 value1 -parameter2 value2 -parmater3 value3 -parameter4 -value4 -parameter5 -value5"

After I editing the text in the dialog box I should be able to run it directly.
I attached a screenshot for the dialog box I am tying to tell.
Comment 4 Git Bot editbugs 2020-05-24 23:46:14 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/apps/xfce4-terminal/-/issues/43.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #16278

Reported by:
podcast
Reported on: 2019-12-15
Last modified on: 2020-05-24

People

CC List:
2 users

Version

Version:
unspecified

Attachments

unsafe paste dialog box (28.76 KB, image/png)
2019-12-16 17:12 CET , podcast
no flags

Additional information