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

feat: a shorter alternative for "--stdin" #1326

Open
balta2ar opened this issue Jan 10, 2025 · 2 comments · May be fixed by #1336
Open

feat: a shorter alternative for "--stdin" #1326

balta2ar opened this issue Jan 10, 2025 · 2 comments · May be fixed by #1336

Comments

@balta2ar
Copy link

balta2ar commented Jan 10, 2025

I really love the "--stdin" option -- my use case is searching for files globally using plocate and then piping them into eza:

plocate some pattern | eza -l --sort=size --stdin

I was wondering if it could be possible to add a shortcut for --stdin option. I'm thinking two options:

  1. Determining whether stdin is there automatically, so that plocate something | eza would just automatically work.
  2. Or/and -, e.g.: plocate something | eza -

Thank you!

@tessus
Copy link

tessus commented Jan 18, 2025

This is pretty easy to do. If the devs are ok with this, I can create a PR. Btw, while looking into this, I think I found a logical bug in the current code.

@tessus
Copy link

tessus commented Jan 18, 2025

I'll open a PR to fix the stdin behavior. After that plocate something | eza will work as well.

@tessus tessus linked a pull request Jan 18, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants