Is it possible to add a new entry in filebrowser's context menu?

I have made changes to a jupyterlab extension (jupyterlab-s3-browser) . To make uploading files to S3 bucket easier , I would like to add a new entry in the context menu called “Upload to S3 Bucket” right below “Copy Shareable Link” . How do I get started with this ?

2 Likes

Yes, there is a dedicated example in in the extension-examples repository - I would recommend to start there.

Context menu example preview

If this is not enough you could take a look at jupyter-archive and if you want more advanced menu with sub-menus see how it is implemented in jupyterlab-git (initially added in jupyterlab/jupyterlab-git#877 but since then it has changed quite a bit).

2 Likes