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

Support ~ in results (for --color) #1688

Open
rieje opened this issue Mar 8, 2025 · 0 comments
Open

Support ~ in results (for --color) #1688

rieje opened this issue Mar 8, 2025 · 0 comments

Comments

@rieje
Copy link

rieje commented Mar 8, 2025

Currently, to replace /home/$USER in results with ~, you need to do it externally, e.g. with sed, zsh's print -D, etc. However using these tools strips away colors from fd --color always, meaning you can either one of either ~ format or colors.

Feature request: support ~ format in results, which implicitly means colors also works. I find colors is essential to better context, but especially with fzf, being able to trim long filenames with ~ format is useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant