qrush / sub

a delicious way to organize programs
http://37signals.com/svn/posts/3264-automating-with-convention-introducing-sub
MIT License
1.75k stars 149 forks source link

Autocompletion should be allowed for files/directories #5

Closed qrush closed 12 years ago

qrush commented 12 years ago

This probably needs to be a magic comment, something like:

# Provide default completions

lenary commented 12 years ago

The other option is to have sub <command> --completions echo out something like [files] or [directories] etc as required.

qrush commented 12 years ago

Yeah, I'm actually wondering if this is an issue. You can always listen for the --completions flag, and exec ls or run a quick find. Going to close for now.

lenary commented 12 years ago

IMO zsh's completion is far better than anything we can come up with using exec ls, however as I haven't the time to make a patch, I'll let this one go for the moment. Maybe if I get a moment I'll sort it out.