Rename a file or directory shortcut in jupyter lab?

Viewed 3962

I'm using jupyter lab.but everytime when i touch a new file or directory it default names Untitle.I have to click it and select "rename".

Is there a shortcut to rename a file or a directory? i have search this question in google but i didn't find what i want. Thanks!

3 Answers

You don't need to select the file and rename it.

You can give desired name just after a notebook it created or while it's open.Right Click on the tab where Untitled(in my case it is Untitled1) is written, in top left corner and select Rename Notebook.

enter image description here

It will open a popup text box.

enter image description here

change the name and click on RENAME.

I managed to enable the shortcut by going Settings > Keyboard Shortcuts and add descriptions as below (and hit the save button at the upper right).

"command": "docmanager:rename",
"keys": [
    "Ctrl R"
],
"selector": "body"

Image

I am also having the same problem. I found the settings in using my jupyter-themer from the Menu: Help-> Edit Keyboard Shortcuts -> rename notebook. see image description

Related