jupyterlab / jupyterlab

JupyterLab computational environment.
https://jupyterlab.readthedocs.io/
Other
13.81k stars 3.12k forks source link

Allow to select the path in debugger source component #16246

Open krassowski opened 2 weeks ago

krassowski commented 2 weeks ago

References

Fixes #16235

Code changes

  1. Make the source path user-selectable
  2. Do not open the read-only editor on click as it steals focus and removes selection; instead make it open on Ctrl + click

User-facing changes

Clicking on the source path now allows selection and thus copying the file

image

Ctrl + click will open the main area widget:

image

Note: user can still click on the button next to the path to open the source without holding Ctrl:

image

Backwards-incompatible changes

None

jupyterlab-probot[bot] commented 2 weeks ago

Thanks for making a pull request to jupyterlab! To try out this branch on binder, follow this link: Binder

jtpio commented 1 week ago

Adding to 4.3.0 since it's tagged as https://github.com/jupyterlab/jupyterlab/labels/enhancement

krassowski commented 1 week ago

Looks like its passing after restart :) Let's hold of with merging here until we release 4.2.0 (today!)