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

Feature request: make erdtree consume input from pipe #51

Closed
elkarouh opened this issue Mar 10, 2023 · 2 comments
Closed

Feature request: make erdtree consume input from pipe #51

elkarouh opened this issue Mar 10, 2023 · 2 comments
Labels
up for grabs Bug/Feature that has been approved that can be freely picked up by anyone if unassigned.

Comments

@elkarouh
Copy link

elkarouh commented Mar 10, 2023

Hi,
The glob option covers most cases but not all.
If i could use erdtree in combination with fd, the following would be possible
fd -e rs '^hel[lL]o' | et

Thanks for this great tool !!!

@solidiquis
Copy link
Owner

This can be done. I won't be able to include this in tomorrow's minor release but I'll aim to implement it and include it in next week's minor release (March 19th).

@solidiquis solidiquis added the up for grabs Bug/Feature that has been approved that can be freely picked up by anyone if unassigned. label Mar 20, 2023
jhscheer added a commit to jhscheer/erdtree that referenced this issue Apr 3, 2023
as requested in issue solidiquis#51

This adds a new (hidden) flag `--stdin` to indicate that `et` should
take input from stdin. Since the naming convention is to use `-` for
this, we replace the args `-` with `--stdin` before we hand them over
to Clap.

Example usage:
```shell
$ touch hello.rs helLo.rs HELlo.rs
$  fd -e rs '^hel[lL]o' | et -
           erdtree
     0   B ├─ hello.rs
     0   B └─ helLo.rs
```
@jnnnnn
Copy link

jnnnnn commented Apr 28, 2023

This feature is implemented by the above merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
up for grabs Bug/Feature that has been approved that can be freely picked up by anyone if unassigned.
Projects
None yet
Development

No branches or pull requests

3 participants