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
endIt 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 |
tavianator
left a comment
There was a problem hiding this comment.
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.ddirectory.See #32.