Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
formeo14 opened this issue Dec 18, 2024 · 3 comments

Comments

@formeo14
Copy link

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).
@azukaar
Copy link
Owner

azukaar commented Dec 18, 2024

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

@formeo14
Copy link
Author

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.

@madejackson
Copy link
Contributor

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants