Skip to content

Terminal: keybinding and context menu for copy & select all#3360

Merged
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:3353-fix-terminal-copy
Sep 29, 2023
Merged

Terminal: keybinding and context menu for copy & select all#3360
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:3353-fix-terminal-copy

Conversation

@datho7561
Copy link
Copy Markdown
Contributor

Adds the following keybindings to the OpenShift terminal:

  • Ctrl+Shift+C: copy selection
  • Ctrl+Shift+A: select all text

Hide the existing broken context menu (provided by VS Code) and replace it with one with "Select All" and "Copy" items that actually work. This context menu imitates the style of VS Code's context menu.

Closes #3353, closes #3137

Signed-off-by: David Thompson davthomp@redhat.com

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 27, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (925263e) 36.96% compared to head (5f9f265) 36.97%.
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3360      +/-   ##
==========================================
+ Coverage   36.96%   36.97%   +0.01%     
==========================================
  Files          77       77              
  Lines        5367     5384      +17     
  Branches     1034     1034              
==========================================
+ Hits         1984     1991       +7     
- Misses       3383     3393      +10     

see 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@datho7561 datho7561 requested a review from vrubezhny September 28, 2023 13:30
vrubezhny
vrubezhny previously approved these changes Sep 29, 2023
Copy link
Copy Markdown
Contributor

@vrubezhny vrubezhny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me,

Please see the comment inline

Comment thread src/webview/openshift-terminal/app/terminalInstance.tsx
Adds the following keybindings to the OpenShift terminal:
- `Ctrl+Shift+C`: copy selection
- `Ctrl+Shift+A`: select all text

Hide the existing broken context menu (provided by VS Code)
and replace it with one with "Select All" and "Copy" items that
actually work.
This context menu imitates the style of VS Code's context menu.

Closes redhat-developer#3353, closes redhat-developer#3137

Signed-off-by: David Thompson <davthomp@redhat.com>
Copy link
Copy Markdown
Contributor

@vrubezhny vrubezhny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good and perfectly works!

Thanks!

@datho7561
Copy link
Copy Markdown
Contributor Author

Yay! Thanks for the review, Victor!

@datho7561 datho7561 merged commit 24e4830 into redhat-developer:main Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copying terminal text doesn't work on Linux "Select All" functionality for OpenShift Terminal

2 participants