Autocomplete¶
- class narrenschiff.autocomplete.ShellAutocomplete[source]¶
Set autocompletion.
- add_autocompletion(path)[source]¶
Add autocompletion to the config file.
- Parameters
path (
str
) – Path to configuration file- Returns
Void
- Return type
None
- autocompletion_enabled(config)[source]¶
Check if the file contains the autocompletion tag.
- Parameters
config (
list
ofstr
) – Configuration file- Returns
Confirmation whether file contains autocompletion tag
- Return type
bool
- autocompletion_script()[source]¶
Return autocompletion script.
- Returns
Autocompletion script
- Return type
list
ofstr
- get_abs_path(*args)[source]¶
Join arguments, and return absolute path.
- Parameters
args (
list
ofstr
) – Paths to be joined- Returns
Absolute path
- Return type
str
If the first argument is tilde (~) then the method will expand user.