-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathedit.h
More file actions
122 lines (93 loc) · 2.42 KB
/
Copy pathedit.h
File metadata and controls
122 lines (93 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#pragma once
#include "buffer.h"
#include <stddef.h>
extern bool transient_mark_mode_should_be_disabled;
extern const char *last_notation;
extern bool quoted_insert_pending;
void message(const char *format, ...);
void insert(const char *text);
void quoted_insert();
bool quoted_insert_interceptor(int key, int action, int mods);
void self_insert_command();
void delete_backward_char();
void delete_char();
void newline();
void open_line();
void split_line();
size_t line_beginning_position(int n);
size_t line_end_position(int n);
size_t current_column();
void update_goal_column();
void read_only_mode();
void save_buffer();
void forward_char();
void backward_char();
void line_move();
void line_move_logical();
void line_move_visual();
void next_line();
void previous_line();
void next_logical_line();
void previous_logical_line();
void beginning_of_line();
void end_of_line();
void beginning_of_visual_line();
void end_of_visual_line();
void beginning_of_buffer();
void end_of_buffer();
void delete_blank_lines();
void back_to_indentation();
void delete_indentation();
void set_mark_command();
void set_mark(size_t pos);
void activate_mark();
void deactivate_mark();
void exchange_point_and_mark();
void region_bounds(size_t *start, size_t *end);
void delete_region();
void copy_region_as_kill();
void rkill(size_t start, size_t end, bool prepend);
void kill_line();
void kill_region();
void yank();
void duplicate_line();
void duplicate_region();
void duplicate_dwim();
/// WORDS
bool isWordChar(uint32_t c);
bool isPunctuationChar(uint32_t c);
size_t beginning_of_word(Buffer *buffer, size_t pos);
size_t end_of_word(Buffer *buffer, size_t pos);
void forward_word();
void backward_word();
void capitalize_word();
void downcase_word();
void upcase_word();
/// PARAGRAPHS
void forward_paragraph();
void backward_paragraph();
/// Pages
void forward_page();
void backward_page();
void mark_page();
void count_lines_page();
/// TRANSPOSE
void transpose_chars();
void transpose_words();
/// LIST
void forward_list();
void backward_list();
/// SEXPS
size_t scan_sexps(Buffer *buffer, size_t from, int count);
void forward_sexp();
void backward_sexp();
void kill_sexp();
void mark_sexp();
/// DEFUN
void beginning_of_defun();
void end_of_defun();
extern bool g_capture_next_key;
extern char g_captured_key_notation[256];
extern bool g_key_was_captured;
bool describe_key_interceptor(int key, int action, int mods);
void describe_key_briefly(void);