Cosmos-Server icon indicating copy to clipboard operation
Cosmos-Server copied to clipboard

[FEAT]: Add Keyboard Shortcuts or Alternative Copy/Paste Options in Container Terminal

Open formeo14 opened this issue 1 year ago • 3 comments

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 + C and Ctrl + V do 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 + C for copy
    • Ctrl + V for 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:

  1. Enable standard keyboard shortcuts for copy and paste in the terminal:
    • Ctrl + C for copy
    • Ctrl + V for paste
  2. Alternatively, add dedicated buttons for copy and paste in the terminal interface (e.g., a toolbar or context menu).

formeo14 avatar Dec 18 '24 07:12 formeo14

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

azukaar avatar Dec 18 '24 22:12 azukaar

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.

formeo14 avatar Dec 20 '24 09:12 formeo14

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.

madejackson avatar Jan 02 '25 11:01 madejackson