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

Add entries with arguments #9

Open
iturdikulov opened this issue Jul 3, 2022 · 1 comment
Open

Add entries with arguments #9

iturdikulov opened this issue Jul 3, 2022 · 1 comment

Comments

@iturdikulov
Copy link

I'm trying to add entry with argument, but receive this error:

frece add ~/.cache/rofi-search '--provider aur test'
error: Found argument '--provider aur test' which wasn't expected, or isn't valid in this context

Can I somehow add entries with arguments?

@YodaEmbedding
Copy link
Owner

YodaEmbedding commented Jul 3, 2022

Try this:

frece add ~/.cache/rofi-search -- "--provider aur test"

(Previous suggestions.)

Workaround 1:

echo "--provider aur test" > entries.txt
frece update ~/.cache/rofi-search entries.txt

Workaround 2 (very hacky):

frece add ~/.cache/rofi-search '#-provider aur test'
sed -i 's/#-/--/' ~/.cache/rofi-search

Properly fixing this requires fiddling with the clap parser and/or allowing stdin input. Or maybe adding an -e flag like ripgrep.

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

No branches or pull requests

2 participants