Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "file browser" sample #61

Closed
bitspittle opened this issue Sep 24, 2021 · 1 comment
Closed

Add a "file browser" sample #61

bitspittle opened this issue Sep 24, 2021 · 1 comment
Labels
enhancement New feature / functionality maybe Not sure if we're going to do this issue or not

Comments

@bitspittle
Copy link
Contributor

bitspittle commented Sep 24, 2021

This would show off autocompleting input() dynamically

Something like this:

Type a directory and press ENTER to accept it as the new active root:
> |subfolderA/
Active directory: ~/some/folder
subfolderA           
subfolderB
subfolderC
subfolderD
...

and if you type out subfolderC for example:

Type a directory and press ENTER to accept it as the new active root:
> subfolderC/|nestedFolderA
Active directory: ~/some/folder/subfolderC
nestedFolderA
nestedFolderB
...

You can of course use absolute and relative paths to escape from the active directory:

Type a directory and press ENTER to accept it as the new active root:
> ../..
Active directory: ~/
some
another

This example will also benefit from us adding keyboard shortcuts for clearing the full line and deleting last word (which eats up all letters and digits, dropping us as the previously typed "/". See also Bug #51

@bitspittle bitspittle added enhancement New feature / functionality maybe Not sure if we're going to do this issue or not labels Sep 24, 2021
@bitspittle
Copy link
Contributor Author

Decided against it, too many other things on my plate. The input example already shows off autocompletion so I think we're OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature / functionality maybe Not sure if we're going to do this issue or not
Projects
None yet
Development

No branches or pull requests

1 participant