-
-
Notifications
You must be signed in to change notification settings - Fork 37
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 fish completion #94
Conversation
e20fed4
to
4e049ad
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
These aren't too important, since they're one character tab completion doesn't help much :)
These are handled by expanding out the full set of possibilities for Line 78 in 33293e3
Line 102 in 33293e3
The |
I managed to do this using the following code: # handle -newer{a,B,c,m}{a,B,c,m} FILE
for x in {a,B,c,m}
for y in {a,B,c,m}
complete -c bfs -o newer$x$y -d "Find files whose $x""time is newer than the $y""time of specified file" -F
end
end
# handle -newer{a,B,c,m}t TIMESTAMP
for x in {a,B,c,m}
complete -c bfs -o newer$x"t" -d "Find files whose $x""time is newer than specified timestamp" -x
end It generates these completions (except the first one): Does it look right?
Added. |
4e049ad
to
d87b30f
Compare
Looks right to me. |
Unfortunately I couldn't come up with a better solution. Maybe something like this: string join '' "Find files whose " $x "time is newer than the " $y "time of specified file" |
I think |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I tried it out locally and it works. Just have the one question about -ls
.
d87b30f
to
e311f2e
Compare
Here are some things I couldn't figure out how to implement:
I also don't know if I should add a completion for
-noleaf
.The completion is installed in the
/usr/share/fish/vendor_completions.d
directory.See #32.