[FEAT]: Add Keyboard Shortcuts or Alternative Copy/Paste Options in Container Terminal
Feature Description
Currently, the container terminal in Cosmos only supports copy and paste functionality via the right-click context menu. This can be inconvenient and annoying for users who are accustomed to using keyboard shortcuts like Ctrl + C (copy) and Ctrl + V (paste) or other common shortcuts for text manipulation. A feature to enable keyboard shortcuts or alternative methods for copy and paste in the terminal would improve usability and streamline the user experience.
Current Behavior:
- Copy and paste in the container terminal can only be performed using the right-click context menu.
- Keyboard shortcuts like
Ctrl + CandCtrl + Vdo not work for copy and paste operations in the terminal.
Desired Behavior:
- Enable keyboard shortcuts for copy and paste in the container terminal, such as:
-
Ctrl + Cfor copy -
Ctrl + Vfor paste
-
- Alternatively, provide additional buttons or options for copy and paste (e.g., toolbar buttons or keyboard shortcuts specific to the terminal).
- Allow users to copy and paste text without relying solely on the right-click context menu.
Use Case:
- A user who prefers to use keyboard shortcuts for efficiency while working in the container terminal.
- A user who finds the right-click context menu for copy and paste inconvenient or annoying.
- A user who wants to streamline their workflow by using familiar keyboard shortcuts.
Solution:
- Enable standard keyboard shortcuts for copy and paste in the terminal:
-
Ctrl + Cfor copy -
Ctrl + Vfor paste
-
- Alternatively, add dedicated buttons for copy and paste in the terminal interface (e.g., a toolbar or context menu).
the thing is, CTRL+C/V are already commands in the terminal (like in the normal Linux terminal) I could add new custom shortcut to do it, but then no users would find those so it would be as if they didnt exist Using right click for copy/paste is the expected behaviour in any terminal AFAIK But happy to hear how some others apps might have solved this
For pasting, you could create a button, which would still help a bit. I'm not sure which keys are free, but if they are, you could use the Emacs shortcuts: press Alt-w to copy, move to the desired position, and then press Ctrl-y to paste.
You could use either... puttys behaviour: copy: marking something with the mouse, paste: right click OR modern Linux behaviour: copy: ctrl+shift+c, paste: ctrl+shift+v
Personally I prefer the latter.