diff options
author | scratko <m@scratko.xyz> | 2024-06-20 18:38:11 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-06-21 01:00:37 +0300 |
commit | ef4604d9c146dbab1a653f66209103b74e6feb36 (patch) | |
tree | 62562f68a0080cd65d94a525110180dab3b99919 /file_suggestions.h | |
parent | 8f4f87eabec13330a2b3a974975053c1e4632a11 (diff) | |
download | shell-ef4604d9c146dbab1a653f66209103b74e6feb36.tar.gz shell-ef4604d9c146dbab1a653f66209103b74e6feb36.tar.bz2 shell-ef4604d9c146dbab1a653f66209103b74e6feb36.zip |
Shell-edit release
Autocomplete program and file names (tab).
Moving the cursor to edit commands (left and right arrows).
Deleting a character in a command (backspace).
Diffstat (limited to 'file_suggestions.h')
-rw-r--r-- | file_suggestions.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/file_suggestions.h b/file_suggestions.h new file mode 100644 index 0000000..1b818a8 --- /dev/null +++ b/file_suggestions.h @@ -0,0 +1,12 @@ +#ifndef FILE_SUGGESTIONS_H_SENTRY +#define FILE_SUGGESTIONS_H_SENTRY + +#include "readline.h" + +int get_filename_match(struct readline_type *readline, int start_filename_idx); +int get_program_name_match(struct readline_type *readline); + +int get_start_filename_idx(struct readline_type *readline); +int suggestions_for_filename(struct readline_type *readline); + +#endif |