- 
                Notifications
    
You must be signed in to change notification settings  - Fork 750
 
add a filepath autocompleter to the examples #1382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
add a filepath autocompleter to the examples #1382
Conversation
| 
           There is a   | 
    
| 
           oh wow, I couldn't find anything in the docs on this. Let me close this.  | 
    
| 
           Actually, the big difference is that this completer works at any "word" instead of the whole document text.  | 
    
| 
           Let me see if I can add a flag to the builtin PathCompleter that will enable it to be used from any position.  | 
    
| 
           If the path can appear at any "word" position, how is the output text handled by the application in that case? In ptpython,  I prefer different completers to be composable, rather then having all possible options and complexity in each completer. We could maybe split the   | 
    
| 
           Just saw this message. How about providing the ptpython version, simplified to just the path component, in the   | 
    
Provide an autocomplete that is similar to IPython for files.
Will face issues with a few of the different edge cases (including spaces in files). But it gives the general idea of how to implement.