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: Add option to not show folder contents when using stdin #921

Open
Myzel394 opened this issue Apr 5, 2024 · 1 comment
Open

feat: Add option to not show folder contents when using stdin #921

Myzel394 opened this issue Apr 5, 2024 · 1 comment

Comments

@Myzel394
Copy link

Myzel394 commented Apr 5, 2024

Sometimes I give some folder names over to eza using stdin and I don't want it to show the contents of the folder, but rather the folder itself.

Example:

echo '.git' | eza --stdin 

currently, this will result in something like this:

branches  COMMIT_EDITMSG  config  description  FETCH_HEAD  filter-repo  HEAD  hooks  index  info  logs  modules  objects  ORIG_HEAD  packed-refs  refs

However, I'd like to pass an option like: --stdin-no-dir-contents that will then show the folder itself like:

.git

To give you a more real life example; I'm using fselect to select files in a very easy way. fselect itself doesn't have support for icons, colors, etc. I'll then pipe the contents over to eza and then receive a nice output.
Here's an example:

fselect path FROM ./ WHERE name = '.*' AND directory = "." | la --stdin
@MartinFillon
Copy link
Contributor

Hey, have you tried using the -d option ? If yes then this is a bug and not expected.

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

No branches or pull requests

2 participants