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 option to print full paths (would be especially useful with exa --tree) #754

Open
favetelinguis opened this issue Oct 19, 2020 · 4 comments

Comments

@favetelinguis
Copy link

When you run tree -f you get the full path, this is very handy when searching for files with tree -f | grep <file>. Would be nice to have the same with exa.

@wsb1994
Copy link

wsb1994 commented Dec 2, 2020

@favetilinguis Hey bud, good news. You can already. Pass the -T argument with tree. :)

@veged
Copy link

veged commented May 16, 2022

@wsb1994 exa -T will show tree output similar to simple tree, but the issue (which I personally +1) is about tree -f for print full paths

BTW -f argument is unused and could be useful even for run without -T for printing full paths relatively to current working directory:

cd ~
exa -f ~/Music
Music/GarageBand
Music/Music

@veged
Copy link

veged commented May 16, 2022

cc @ogham

@ariasuni ariasuni changed the title Adding exa --tree -f Add option to print full paths (would be especially useful with exa --tree) May 16, 2022
@Shuraken007
Copy link

Shuraken007 commented Aug 23, 2023

@favetelinguis @veged

I made this option at mine fork.
f5417f9

image

perfectly combined with fzf
it's possible to make nice file browser

exa -L2 --long \
   --add-path \
   --no-filesize \
   --no-permissions \
   --no-time \
   --no-user \
   --git \
   --tree \
   --icons \
   --all \
   --group-directories-first \
   --color=always \
    -I '.git|.vscode' \
| fzf -d: --with-nth 2 --ansi \
   --no-preview \
   --multi \
| cut -f1 -d: | perl -pe 's/^\s+//'

image

image

./src/main.rs
./src/logger.rs

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

4 participants