Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • While this is effectively not the ideal way to do it, since it keeps trying to complete after typing stuff, it does effectively solve my problem. I tried using -S (which didn't work) but didn't try using -s, since it refused the empty separator... I should have tried using slashes directly (they were currently in my _values already, so I had to remove the trailing slashes for this method to work.) Commented Nov 19, 2018 at 13:02
  • 1
    @Lery figured it out, compset can look for the / and based on that disable completion Commented Nov 19, 2018 at 15:08
  • I think I've found a bug with this compset solution: suppose I have a path like this: foo/bar/zen; fee/zen/bar; fee/foo/bar; When I type f and try to autocomplete with tab, then press enter to select fee/ and type the first letter of the next subfolder, say z, the autocompletion will show "no matches found". It's even worse if I type manually fee/z then the autocompletion directly does nothing. I'm guessing it's because of the way compset is modifying the iprefix, maybe, but I'm not sure. Commented Nov 27, 2018 at 14:50
  • What I want to do seems very close to what is asked in this question: stackoverflow.com/questions/42526436/… it's a shame it remained unanswered. And it seems _values is not a solution. I've also tried specifying -S / and specifying in my values that they accept an argument, but to no avail. When I'm typing we<tab> to get to web/, if I keep typing web/f<tab>, it won't keep completing, no matter what solution I'm trying. Would you happen to have any idea to solve this? Commented Dec 19, 2018 at 17:40
  • The SO question linked in the comment above now has an answer, which solve a similar issue I was having. :-) Commented Feb 21, 2019 at 13:23