ex_getln.h
Go to the documentation of this file.
1 #ifndef NVIM_EX_GETLN_H
2 #define NVIM_EX_GETLN_H
3 
4 #include "nvim/eval/typval.h"
5 #include "nvim/ex_cmds.h"
6 #include "nvim/ex_cmds_defs.h"
7 #include "nvim/os/time.h"
8 #include "nvim/regexp_defs.h"
9 
10 // Values for nextwild() and ExpandOne(). See ExpandOne() for meaning.
11 #define WILD_FREE 1
12 #define WILD_EXPAND_FREE 2
13 #define WILD_EXPAND_KEEP 3
14 #define WILD_NEXT 4
15 #define WILD_PREV 5
16 #define WILD_ALL 6
17 #define WILD_LONGEST 7
18 #define WILD_ALL_KEEP 8
19 #define WILD_CANCEL 9
20 #define WILD_APPLY 10
21 
22 #define WILD_LIST_NOTFOUND 0x01
23 #define WILD_HOME_REPLACE 0x02
24 #define WILD_USE_NL 0x04
25 #define WILD_NO_BEEP 0x08
26 #define WILD_ADD_SLASH 0x10
27 #define WILD_KEEP_ALL 0x20
28 #define WILD_SILENT 0x40
29 #define WILD_ESCAPE 0x80
30 #define WILD_ICASE 0x100
31 #define WILD_ALLLINKS 0x200
32 #define WILD_IGNORE_COMPLETESLASH 0x400
33 #define WILD_NOERROR 0x800 // sets EW_NOERROR
34 #define WILD_BUFLASTUSED 0x1000
35 #define BUF_DIFF_FILTER 0x2000
36 
38 typedef enum {
39  HIST_DEFAULT = -2,
40  HIST_INVALID = -1,
41  HIST_CMD = 0,
46 } HistoryType;
47 
49 #define HIST_COUNT (HIST_DEBUG + 1)
50 
51 typedef char_u *(*CompleteListItemGetter)(expand_T *, int);
52 
54 typedef struct hist_entry {
55  int hisnum;
59 } histentry_T;
60 
61 #ifdef INCLUDE_GENERATED_DECLARATIONS
62 # include "ex_getln.h.generated.h"
63 #endif
64 #endif // NVIM_EX_GETLN_H
time.h
expand
Definition: ex_cmds_defs.h:190
listvar_S
Definition: typval.h:174
HIST_EXPR
@ HIST_EXPR
Expressions (e.g. from entering = register).
Definition: ex_getln.h:43
HIST_DEBUG
@ HIST_DEBUG
Debug commands.
Definition: ex_getln.h:45
hist_entry::hisnum
int hisnum
Entry identifier number.
Definition: ex_getln.h:55
HistoryType
HistoryType
Present history tables.
Definition: ex_getln.h:38
Timestamp
uint64_t Timestamp
Definition: time.h:8
hist_entry::timestamp
Timestamp timestamp
Time when entry was added.
Definition: ex_getln.h:57
HIST_INPUT
@ HIST_INPUT
input() lines.
Definition: ex_getln.h:44
histentry_T
struct hist_entry histentry_T
History entry definition.
HIST_CMD
@ HIST_CMD
Colon commands.
Definition: ex_getln.h:41
ex_cmds.h
regexp_defs.h
typval.h
HIST_SEARCH
@ HIST_SEARCH
Search commands.
Definition: ex_getln.h:42
char_u
unsigned char char_u
Definition: types.h:12
hist_entry::additional_elements
list_T * additional_elements
Additional entries from ShaDa file.
Definition: ex_getln.h:58
ex_cmds_defs.h
hist_entry::hisstr
char_u * hisstr
Actual entry, separator char after the NUL.
Definition: ex_getln.h:56
HIST_INVALID
@ HIST_INVALID
Unknown history.
Definition: ex_getln.h:40
HIST_DEFAULT
@ HIST_DEFAULT
Default (current) history.
Definition: ex_getln.h:39
hist_entry
History entry definition.
Definition: ex_getln.h:54