NeoMutt  2024-03-23-23-gec7045
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:90
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:387
int editor_kill_line(struct EnterState *es)
Delete chars from cursor to beginning the line.
Definition: enter.c:291
int editor_delete_char(struct EnterState *es)
Delete the char under the cursor.
Definition: enter.c:157
int editor_bol(struct EnterState *es)
Jump to the beginning of the line.
Definition: enter.c:109
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:329
int editor_eol(struct EnterState *es)
Jump to the end of the line.
Definition: enter.c:179
int editor_kill_eow(struct EnterState *es)
Delete chars from the cursor to the end of the word.
Definition: enter.c:252
int editor_transpose_chars(struct EnterState *es)
Transpose character under cursor with previous.
Definition: enter.c:363
int editor_kill_eol(struct EnterState *es)
Delete chars from cursor to end of line.
Definition: enter.c:237
int editor_forward_word(struct EnterState *es)
Move the cursor to the end of the word.
Definition: enter.c:214
int editor_backward_char(struct EnterState *es)
Move the cursor one character to the left.
Definition: enter.c:71
int editor_case_word(struct EnterState *es, enum EnterCase ec)
Change the case of the word.
Definition: enter.c:125
int editor_kill_whole_line(struct EnterState *es)
Delete all chars on the line.
Definition: enter.c:312
int editor_forward_char(struct EnterState *es)
Move the cursor one character to the right.
Definition: enter.c:194
Keep our place when entering a string.
Definition: state.h:32