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 
36 typedef enum {
37  HIST_DEFAULT = -2,
38  HIST_INVALID = -1,
39  HIST_CMD = 0,
44 } HistoryType;
45 
47 #define HIST_COUNT (HIST_DEBUG + 1)
48 
49 typedef char_u *(*CompleteListItemGetter)(expand_T *, int);
50 
52 typedef struct hist_entry {
53  int hisnum;
57 } histentry_T;
58 
59 #ifdef INCLUDE_GENERATED_DECLARATIONS
60 # include "ex_getln.h.generated.h"
61 #endif
62 #endif // NVIM_EX_GETLN_H
Definition: typval.h:164
Debug commands.
Definition: ex_getln.h:43
Colon commands.
Definition: ex_getln.h:39
Unknown history.
Definition: ex_getln.h:38
list_T * additional_elements
Additional entries from ShaDa file.
Definition: ex_getln.h:56
History entry definition.
Definition: ex_getln.h:52
Expressions (e.g. from entering = register).
Definition: ex_getln.h:41
input() lines.
Definition: ex_getln.h:42
Default (current) history.
Definition: ex_getln.h:37
unsigned char char_u
Definition: types.h:11
Search commands.
Definition: ex_getln.h:40
struct hist_entry histentry_T
History entry definition.
int hisnum
Entry identifier number.
Definition: ex_getln.h:53
HistoryType
Present history tables.
Definition: ex_getln.h:36
char_u * hisstr
Actual entry, separator char after the NUL.
Definition: ex_getln.h:54
Definition: ex_cmds_defs.h:183
Timestamp timestamp
Time when entry was added.
Definition: ex_getln.h:55
uint64_t Timestamp
Definition: time.h:8