Toolshed.Autocomplete (toolshed v0.2.25) View Source
Add path completion to the default IEx autocompletion
This modules augments the IEx autocompletion logic to complete file paths in
strings. This lets you tab the paths in calls to Toolshed helpers and
functions like File.read/1
.
Link to this section Summary
Link to this section Types
Specs
Link to this section Functions
Specs
Handle autocomplete calls
This function handles path autocompletion and if that's not appropriate, it delegates to IEx.Autocomplete for normal completion.
See set_expand_fun/0
for manual registration.
Specs
set_expand_fun() :: :ok | {:error, any()}
Set the IO server's :expand_fun
This is a slightly modified version of IEx.Autocomplete.set_expand_fun/0
to
register the autocompletion logic. It is normally called by use Toolshed
,
but may be called manually as well.