back to scratko.xyz
summaryrefslogtreecommitdiff
path: root/file_suggestions.h
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-06-20 18:38:11 +0300
committerscratko <m@scratko.xyz>2024-11-23 20:59:45 +0300
commit54679d85b1f2c1349bcbbc76b10d57a1e5137f23 (patch)
tree030bb7951a9a16dcdb8b1f47d1a5ff09dba8276c /file_suggestions.h
parentff38bddd4253b5adf08a84df34bfae32c8ae988d (diff)
downloadshell-54679d85b1f2c1349bcbbc76b10d57a1e5137f23.tar.gz
shell-54679d85b1f2c1349bcbbc76b10d57a1e5137f23.tar.bz2
shell-54679d85b1f2c1349bcbbc76b10d57a1e5137f23.zip
Shell-edit releaseshell-edit
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.h12
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