Replies: 1 comment 7 replies
-
You can quote it. i.e. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Scenario: Bash script that runs
fzfis in an arbitrary directory and I want thatfzfprocess to use a separate script for its--with-shell=flag that is also in that directory, so that I can just use--preview={}so it runs that script with current selection as argument. However,--with-shell=treats space as argument separator and there seems no way to include a literal space, that may be part of that directory's path (including all other funny characters). The fzf process runs in an arbitrary working directory (from where the user invoked the main script) so using./preview-script.shalso won't work.Similar problems would be present if I use
--preview=/absolute/path/to/preview-script.shbecause--preview=expands different things like{}which may also be part of full path since it's arbitrary.How do I deal with this?
Beta Was this translation helpful? Give feedback.
All reactions