jupyterlab / jupyterlab

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

Add items into the right-click menu of the navigation panel #9055

Open dclong opened 4 years ago

dclong commented 4 years ago

Problem

As a JupyterLab user, I want to be able to open a terminal from the navigation panel. When the terminal is opened, its default path should the current path of the navigation file.

As a JupyterLab user, I want to be able to copy the current path of the navigation panel quickly.

Below is a screenshot of the current right-click menu. image

Proposed Solution

Add "Open terminal here" to the right-click menu of the navigation panel. And when clicked, a new terminal should be open and its working directory defaults to the current path of the navigation panel.

Add "Copy path" to the right-click menu of the navigation panel. And when clicked, the current path the navigation panel should be copied to the clipboard.

Additional context

mdavis-xyz commented 3 years ago

I think this section in the File Browser extension is the relevant one.

I see a "copy path" action. Perhaps this has been added recently?

I'm keen to see the "open terminal" option added. Unfortunately I'm not familiar with typescript. Could a regular contributor to this project give an estimate of whether this task is do-able by a typescript beginner with minimal front-end experience (i.e. me)?