NeoMutt  2025-09-05-55-g97fc89
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
enter.h
Go to the documentation of this file.
1
22
23#ifndef MUTT_EDITOR_ENTER_H
24#define MUTT_EDITOR_ENTER_H
25
26#include <stdbool.h>
27
28struct EnterState;
29
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:88
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:384
int editor_kill_line(struct EnterState *es)
Delete chars from cursor to beginning the line.
Definition enter.c:289
int editor_delete_char(struct EnterState *es)
Delete the char under the cursor.
Definition enter.c:155
int editor_bol(struct EnterState *es)
Jump to the beginning of the line.
Definition enter.c:107
int editor_backspace(struct EnterState *es)
Delete the char in front of the cursor.
Definition enter.c:46
int editor_kill_word(struct EnterState *es)
Delete the word in front of the cursor.
Definition enter.c:327
int editor_eol(struct EnterState *es)
Jump to the end of the line.
Definition enter.c:177
int editor_kill_eow(struct EnterState *es)
Delete chars from the cursor to the end of the word.
Definition enter.c:250
int editor_transpose_chars(struct EnterState *es)
Transpose character under cursor with previous.
Definition enter.c:360
int editor_kill_eol(struct EnterState *es)
Delete chars from cursor to end of line.
Definition enter.c:235
int editor_forward_word(struct EnterState *es)
Move the cursor to the end of the word.
Definition enter.c:212
int editor_backward_char(struct EnterState *es)
Move the cursor one character to the left.
Definition enter.c:69
int editor_case_word(struct EnterState *es, enum EnterCase ec)
Change the case of the word.
Definition enter.c:123
int editor_kill_whole_line(struct EnterState *es)
Delete all chars on the line.
Definition enter.c:310
int editor_forward_char(struct EnterState *es)
Move the cursor one character to the right.
Definition enter.c:192
Keep our place when entering a string.
Definition state.h:32