You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but if I want to start with a query I have to specify the -qoption, and I cannot add it to the alias because then I cannot use the alias without specifying a start query.
Is the -q option necessary? Could not the argument that is not an option just always be the intital query?
The text was updated successfully, but these errors were encountered:
I think it is best if an argument is required. It's weird that -q would "work" but have no meaning. However, -q can accept an empty string as an argument.
You should be able to achieve what you want using a shell function instead of an alias
fzyfind() {
find . | fzy -q "$*"
}
This uses any arguments to fzyfind as input to -q. If none are provided it is equivalent to -q ""
I think it is best if an argument is required. It's weird that -q would "work" but have no meaning. However, -q can accept an empty string as an argument.
I am trying to set up an alias like:
but if I want to start with a query I have to specify the
-q
option, and I cannot add it to the alias because then I cannot use the alias without specifying a start query.Is the -q option necessary? Could not the argument that is not an option just always be the intital query?
The text was updated successfully, but these errors were encountered: