Skip to content

Tab completion#99

Merged
tleonhardt merged 3 commits intomasterfrom
tab_completion
May 18, 2017
Merged

Tab completion#99
tleonhardt merged 3 commits intomasterfrom
tab_completion

Conversation

@tleonhardt
Copy link
Copy Markdown
Member

This should hopefully put a nail in the built-in tab completion coffin.

The edit, load, save, and shell command now all support local file system path completion in a manner very similar to the Bash shell.

In additional, the shell command 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

Todd Leonhardt and others added 3 commits May 17, 2017 19:21
Attempting to emulate Bash shell behavior as closely as possible.

Path completion is significantly improved.

Shell command completion of commands is also supported now.
@tleonhardt tleonhardt added this to the 0.7.1 milestone May 18, 2017
@tleonhardt tleonhardt self-assigned this May 18, 2017
@tleonhardt tleonhardt merged commit 398cec2 into master May 18, 2017
@tleonhardt tleonhardt deleted the tab_completion branch May 18, 2017 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shell command completion wanted

1 participant