lotabout / skim

Fuzzy Finder in rust!
MIT License
5.1k stars 183 forks source link

Option to show a different delimiter in the finder than the one used #548

Open tobx opened 11 months ago

tobx commented 11 months ago

I would love to have an option to show a different delimiter in the finder than the one used in the background. This would also solve #314.

Example:

echo '1:2:;3' | sk --delimiter '[:;]+' --with-nth '1,3,2'

This displays 1:32:; in the finder.

Introducing a new option like --display-delimiter could solve that problem:

printf '1:2:;3' | sk --delimiter '[:;]+' --display-delimiter ' : ' --with-nth '1,3,2'

This could easily display 1 : 3 : 2, because https://github.com/junegunn/fzf/issues/2154#issuecomment-682589184 would not be a problem in this case.

This would also enable users to use a "safe" delimiter like NUL and display a human readable delimiter in the finder.

tobx commented 11 months ago

You might also want to check out the same issue https://github.com/junegunn/fzf/issues/3478#issuecomment-1792369605 that I opened for fzf.