Implement a generalized completer function, validator and filename completer