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

Auto-complete datatree paths containing . or ../ #9440

Open
eni-awowale opened this issue Sep 7, 2024 · 1 comment
Open

Auto-complete datatree paths containing . or ../ #9440

eni-awowale opened this issue Sep 7, 2024 · 1 comment
Labels
enhancement topic-DataTree Related to the implementation of a DataTree class upstream issue

Comments

@eni-awowale
Copy link
Collaborator

What is your issue?

Copying over from xarray-contrib/datatree#189

Feature Request: Some form of path auto-completion

The more I play with datatree, the more I realize the huge potential of this package. Amazing work @TomNicholas.

I have been using dt for CMIP6 analysis and one of the things that is still fairly slow for me is to navigate into different specific leaves of the tree. Having some sort of incremental auto-complete of the path like this:

dt.['model/<click tab> --> dt.['model/experiment_a/]

similar to what happens in the bash shell with tab completion would be an absolute killer feature. Most users already know how to navigate this (from their terminal). For massive trees this would speed up the workflow tremendously.

On the other hand I have no idea how complex this is to implement. Just wanted to suggest this feature.

@TomNicholas
Copy link
Member

To clarify what's said in xarray-contrib/datatree#189 - autocompletion is already implemented, what is not implemented is autocompletion of any path containing a . or ../.

In other words this issue now tracks this ToDo in the code:

# TODO allow auto-completing relative string paths, e.g. `dt['path/to/../ <tab> node'`

@TomNicholas TomNicholas changed the title Feature Request: Some form of path auto-completion Auto-complete datatree paths containing . or ../ Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement topic-DataTree Related to the implementation of a DataTree class upstream issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants