commit | 802f59958213e2fe726dff681406a50f3ce35b00 | [log] [tgz] |
---|---|---|
author | Anthony DiGirolamo <tonymd@google.com> | Wed Jul 28 22:52:54 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Aug 04 00:15:13 2021 +0000 |
tree | 178f6cd013ffcbd1de2b1798fb99502de3c2478e | |
parent | 54db765cd295fc9bd905e54b148cc7c053844c3c [diff] |
pw_console: Copy paste functions - Add the pyperclip package to facilitate copy/paste from the host machine's clipboard. - Remove unused ipdb dep - Add a ctrl-c binding to copy the currently visible log lines in any log window. - Add a ctrl-v binding to paste text into the Python repl. This will bypass ptpython's auto-formatter. - Add a ctrl-alt-c binding to copy the python output text when the repl is in focus. - Above functions added as clickable buttons to all toolbars - Edit menu added with: - Copy visible lines from active window - Paste to Python Input - Python Output Changes: - Output is now focusable - Text can be selected with shift+arrows or mouse drag - Selected text can be copied with Ctrl-C - Line wrapping disabled since it breakes mouse wheel scrolling. Horizontal scrolling is possible my moving the cursor when the output is focused. Test: Copy/Paste tested on: Linux Test: Copy Paste Steps 1-9 Change-Id: Ifc44d2a4f2ba13146669dd63278fbae17a644c37 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/55080 Commit-Queue: Anthony DiGirolamo <tonymd@google.com> Reviewed-by: Keir Mierle <keir@google.com>
See our website: http://pigweed.dev