Show basename in the title indicator

This commit is contained in:
Jeremy Tuloup 2020-12-15 10:19:16 +01:00
parent 6d173339fc
commit 8a21ef105e

View File

@ -317,7 +317,8 @@ const title: JupyterFrontEndPlugin<void> = {
widget.node.onclick = async () => {
const result = await renameDialog(docManager, current.context.path);
if (result) {
h.textContent = result.path;
const basename = PathExt.basename(result.path);
h.textContent = basename;
if (router) {
// TODO: better handle this
const encoded = encodeURIComponent(result.path);