From 54679d85b1f2c1349bcbbc76b10d57a1e5137f23 Mon Sep 17 00:00:00 2001 From: scratko Date: Thu, 20 Jun 2024 18:38:11 +0300 Subject: 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). --- file_suggestions.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 file_suggestions.h (limited to 'file_suggestions.h') 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 -- cgit v1.2.3