[konsole] [Bug 424279] Add bookmarking of typed commands to Konsole

medin bugzilla_noreply at kde.org
Thu Jul 16 15:05:23 BST 2020


https://bugs.kde.org/show_bug.cgi?id=424279

--- Comment #4 from medin <med.medin.2014 at gmail.com> ---
(In reply to tcanabrava from comment #3)
> but you do know the commands that you need to type, adding a menu that
> executes arbitrary shell commands is a security risk - think for instance
> that someone changed the `copy` action on your menu to `rm -rf /*`
> 
> I won't implement such feature, if you want to run commands on the command
> line you can implement the functions that will run the commands in the
> correct file, ~/.bashrc for instance.
> 
> The reasons:
> - It's easier to verify what's the function you are calling (just look at
> the source of ~/.bashrc and you have your function)
> - I won't add a security risk to konsole
> - Users should be expected to learn the tool that they are using, creating a
> function in shell is the proper way to add "typing a repeated commands"
> 
> But thinking a bit on this, we can actually make this userfull:
> - A side panel with "shortcuts" that do show what the command is and a title
> / comment for it.
> - a way to verify for errors (running shellsheck on the file?)
> 
> are you willing to help develop such feature?

I wish I could, I know only some Java/JavaFX/C# basics.

I think you didn't understand well what I meant, What I mean not creating a
menu with list of commands, I said to have a separate window with search bar at
top and list of commands at center, the list contains only commands content as
texts, so when user type something in the search bar the commands that
correspond to entered text appear bellow, then user selects the correct item by
pressing enter or double click with mouse which will just copy the content of
the command to the terminal then the user executes the command in the terminal
by pressing enter.

I demonstrated what I meant with Copyq and Konsole in the attached video.
(unfortunately Copyq saves all copied texts from desktop in one list and does
not have specific list for only commands)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list