diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-11-15 13:56:35 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-01-13 23:03:49 +0100 |
| commit | 6d86dc94cffee3fcda48f634fb05556cb861b0b5 (patch) | |
| tree | 6d39cde4af5c4f0de02080046ced36fdfe1f402b /vis.h | |
| parent | 5d54271403b1a90ed7ef81894ea0ff91d7a8c5f6 (diff) | |
| download | vis-6d86dc94cffee3fcda48f634fb05556cb861b0b5.tar.gz vis-6d86dc94cffee3fcda48f634fb05556cb861b0b5.tar.xz | |
Implement command/search prompt history as a regular file
Diffstat (limited to 'vis.h')
| -rw-r--r-- | vis.h | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -79,16 +79,7 @@ void vis_window_name(Win*, const char *filename); void vis_window_next(Vis*); void vis_window_prev(Vis*); /* display a user prompt with a certain title and default text */ -void vis_prompt_show(Vis*, const char *title, const char *text); -/* execute current prompt content as command, as if the user had pressed <Enter> */ -void vis_prompt_enter(Vis*); /* TODO: bad abstraction */ -/* hide the user prompt if it is currently shown */ -void vis_prompt_hide(Vis*); -/* return the content of the command prompt in a malloc(3)-ed string - * which the call site has to free. */ -char *vis_prompt_get(Vis*); -/* replace the current command line content with the one given */ -void vis_prompt_set(Vis*, const char *line); +void vis_prompt_show(Vis*, const char *title); /* display a message to the user */ void vis_info_show(Vis*, const char *msg, ...); @@ -124,7 +115,6 @@ enum VisMode { VIS_MODE_OPERATOR_PENDING, VIS_MODE_VISUAL, VIS_MODE_VISUAL_LINE, - VIS_MODE_PROMPT, VIS_MODE_INSERT, VIS_MODE_REPLACE, VIS_MODE_LAST, |
