Merged
Conversation
Attempting to emulate Bash shell behavior as closely as possible. Path completion is significantly improved. Shell command completion of commands is also supported now.
…th and command completion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This should hopefully put a nail in the built-in tab completion coffin.
The
edit,load,save, andshellcommand now all support local file system path completion in a manner very similar to the Bash shell.In additional, the
shellcommand also supports shell command completion in a manner very similar to Bash.It is also easy to re-use these completer methods for tab completion of your own custom commands. The python_scripting.py example has been updated to show one way of how this can be achieved.
Emulating most of the Bash logic was dramatically more complicated than I would have imagined ;-) Thanks to Kevin Van Brunt for a lot of help with testing and fine-tuning the logic.
This closes #98