I see in the manual you can use --fzf to pass params to fzf.
I can't get this to work.
These are the commands I've been trying to run:
With double quotes
❯ rg smrc --files-with-matches | sad 'smrc' 'smc' --fzf "--bind ctrl-a:select-all"
error: unexpected argument '--bind ctrl-a:select-all' found
tip: to pass '--bind ctrl-a:select-all' as a value, use '-- --bind ctrl-a:select-all'
Usage: sad <PATTERN|REPLACE|--read0|--commit|--exact|--flags <FLAGS>|--pager <PAGER>|--fzf <FZF>|--unified <UNIFIED>>
For more information, try '--help'.
❯ rg smrc --files-with-matches | sad 'smrc' 'smc' --fzf --bind=ctrl-a:select-all
error: unexpected argument '--bind' found
tip: to pass '--bind' as a value, use '-- --bind'
Usage: sad <PATTERN|REPLACE|--read0|--commit|--exact|--flags <FLAGS>|--pager <PAGER>|--fzf <FZF>|--unified <UNIFIED>>
For more information, try '--help'.
Hi,
I see in the manual you can use
--fzf
to pass params to fzf.I can't get this to work.
These are the commands I've been trying to run:
With double quotes
No dashes before
bind
No double quotes
Any ideas what's going on?
Looks like it should work reading the source code. Something that has me worrying about bind specifically is the function you run around the
--bind
args in the code though. https://github.com/ms-jpq/sad/blob/a0dc8b31de8f321a195e8cc74238be378f6d209e/src/fzf.rs#L142Thanks!