You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example in https://github.com/iterative/shtab/blob/master/examples/customcomplete.py shows how to implement a completer for *.txt files. The example is good to show how to use custom shell specific functions. However, a completer for files that match a pattern can be considered a very common use case. It would be better to have a simpler way to support it. The shell specific details should be taken care internally by shtab and not burden the users with this. An idea could be something like the following:
The example in https://github.com/iterative/shtab/blob/master/examples/customcomplete.py shows how to implement a completer for
*.txt
files. The example is good to show how to use custom shell specific functions. However, a completer for files that match a pattern can be considered a very common use case. It would be better to have a simpler way to support it. The shell specific details should be taken care internally by shtab and not burden the users with this. An idea could be something like the following:The text was updated successfully, but these errors were encountered: