jupyterlab/jupyterlab

Add a button to file open dialog to convert backslashes to forward slashes

Open

#6,932 opened on Aug 2, 2019

View on GitHub
 (6 comments) (4 reactions) (0 assignees)TypeScript (2,937 forks)batch import
help wantedpkg:filebrowsertag:Design and UX

Repository metrics

Stars
 (13,454 stars)
PR merge metrics
 (Avg merge 16d 4h) (86 merged PRs in 30d)

Description

As noted in #5051 and #5626, windows users would sometimes like to type in paths that have backslashes in them. For example, a windows user might get such a path from an error message in the kernel, or from some other file browser in the operating system. It can be annoying for a windows user to convert a backslash-delimited path to the forward-slash delimited path JupyterLab (and the Jupyter server) expects.

One idea that came up in #5626 is a button in the file open dialog that simply replaces backslashes with forward slashes in the textbox. That way a user can easily normalize their path right in that dialog. Perhaps the button is only active if we detect a backslash in the path.

Contributor guide