Sample Header Ad - 728x90

Is there a way to format what fzf displays without formatting its output?

2 votes
1 answer
880 views
I'm currently trying to write a script that takes a list of filenames with their absolute paths as input and feeds them to fzf. After making a selection, they are passed as command-line arguments etc. Something along the lines:
find $working_directory -type f | fzf -e | ...
Now, I do not want to see the absolute path of every file displayed by fzf as I feel it both looks ugly and makes it difficult to see the filenames. However, I do need the absolute paths for later on, so I do not just want to format them outright. Is there a way to format what fzf displays without formatting the output it generates?
Asked by Utku Boduroglu (133 rep)
Nov 8, 2022, 12:59 PM
Last activity: Jun 20, 2025, 10:57 PM