NeoMutt  2024-04-25-89-g194907
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
enter.h
Go to the documentation of this file.
1
23#ifndef MUTT_EDITOR_ENTER_H
24#define MUTT_EDITOR_ENTER_H
25
26#include <stdbool.h>
27
28struct EnterState;
29
34{
38};
39
40int editor_backspace (struct EnterState *es);
41int editor_backward_char (struct EnterState *es);
42int editor_backward_word (struct EnterState *es);
43int editor_bol (struct EnterState *es);
44int editor_case_word (struct EnterState *es, enum EnterCase ec);
45int editor_delete_char (struct EnterState *es);
46int editor_eol (struct EnterState *es);
47int editor_forward_char (struct EnterState *es);
48int editor_forward_word (struct EnterState *es);
49int editor_kill_eol (struct EnterState *es);
50int editor_kill_eow (struct EnterState *es);
51int editor_kill_line (struct EnterState *es);
53int editor_kill_word (struct EnterState *es);
55
56bool editor_buffer_is_empty (struct EnterState *es);
57
58#endif /* MUTT_EDITOR_ENTER_H */
int editor_backward_word(struct EnterState *es)
Move the cursor to the beginning of the word.
Definition: enter.c:89
EnterCase
Change the case of a word.
Definition: enter.h:34
@ EC_UPCASE
Upper case (all characters)
Definition: enter.h:36
@ EC_DOWNCASE
Lower case (all characters)
Definition: enter.h:37
@ EC_CAPITALIZE
Capitalize word (first character only)
Definition: enter.h:35
bool editor_buffer_is_empty(struct EnterState *es)
Is the Enter buffer empty?
Definition: enter.c:385
int editor_kill_line(struct EnterState *es)
Delete chars from cursor to beginning the line.
Definition: enter.c:290
int editor_delete_char(struct EnterState *es)
Delete the char under the cursor.
Definition: enter.c:156
int editor_bol(struct EnterState *es)
Jump to the beginning of the line.
Definition: enter.c:108
int editor_backspace(struct EnterState *es)
Delete the char in front of the cursor.
Definition: enter.c:47
int editor_kill_word(struct EnterState *es)
Delete the word in front of the cursor.
Definition: enter.c:328
int editor_eol(struct EnterState *es)
Jump to the end of the line.
Definition: enter.c:178
int editor_kill_eow(struct EnterState *es)
Delete chars from the cursor to the end of the word.
Definition: enter.c:251
int editor_transpose_chars(struct EnterState *es)
Transpose character under cursor with previous.
Definition: enter.c:361
int editor_kill_eol(struct EnterState *es)
Delete chars from cursor to end of line.
Definition: enter.c:236
int editor_forward_word(struct EnterState *es)
Move the cursor to the end of the word.
Definition: enter.c:213
int editor_backward_char(struct EnterState *es)
Move the cursor one character to the left.
Definition: enter.c:70
int editor_case_word(struct EnterState *es, enum EnterCase ec)
Change the case of the word.
Definition: enter.c:124
int editor_kill_whole_line(struct EnterState *es)
Delete all chars on the line.
Definition: enter.c:311
int editor_forward_char(struct EnterState *es)
Move the cursor one character to the right.
Definition: enter.c:193
Keep our place when entering a string.
Definition: state.h:32