dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Thoughts on autocomplete and tab complete

Open Parth opened this issue 6 years ago • 1 comments

Some thoughts

  • Tab complete is broken on macOS. On linux, you are able to expand cd d/s/p <tab> to cd documents/SAP/presentations. Not the case in macOS. Might be due to the cd alias stuff we have going on.

  • Accepting suggestions from the history is unintuitive. The separation between historical suggestions, and context based ones is useful, but hard to understand without an explicit explanation.

  • So it should certainly not offer a historical suggestion that contains a relative path if the pwd's are different.

  • A command might implicitly also take a relative path. npm run serve for example implicitly depends on the existence of not only a package.json in the pwd, but also the existence of package.json.scripts.serve.

  • Could machine learning infer these relationships?

Parth avatar Jun 11 '18 15:06 Parth

Some thoughts

~~Tab complete is broken on macOS. On linux, you are able to expand cd d/s/p to cd documents/SAP/presentations. Not the case in macOS. Might be due to the cd alias stuff we have going on.~~

Accepting suggestions from the history is unintuitive. The separation between historical suggestions, and context based ones is useful, but hard to understand without an explicit explanation.

So it should certainly not offer a historical suggestion that contains a relative path if the pwd's are different.

A command might implicitly also take a relative path. npm run serve for example implicitly depends on the existence of not only a package.json in the pwd, but also the existence of package.json.scripts.serve.

Could machine learning infer these relationships?

Parth avatar Jan 11 '19 02:01 Parth