Data Structures | Macros | Typedefs
search.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "nvim/buffer_defs.h"
#include "nvim/eval/funcs.h"
#include "nvim/eval/typval.h"
#include "nvim/normal.h"
#include "nvim/os/time.h"
#include "nvim/vim.h"

Go to the source code of this file.

Data Structures

struct  soffset
 
struct  spat
 Structure containing last search pattern and its attributes. More...
 
struct  searchit_arg_T
 Optional extra arguments for searchit(). More...
 
struct  searchstat
 

Macros

#define FIND_ANY   1
 
#define FIND_DEFINE   2
 
#define CHECK_PATH   3
 
#define ACTION_SHOW   1
 
#define ACTION_GOTO   2
 
#define ACTION_SPLIT   3
 
#define ACTION_SHOW_ALL   4
 
#define ACTION_EXPAND   5
 
#define SEARCH_REV   0x01
 go in reverse of previous dir. More...
 
#define SEARCH_ECHO   0x02
 echo the search command and handle options More...
 
#define SEARCH_MSG   0x0c
 give messages (yes, it's not 0x04) More...
 
#define SEARCH_NFMSG   0x08
 give all messages except not found More...
 
#define SEARCH_OPT   0x10
 interpret optional flags More...
 
#define SEARCH_HIS   0x20
 put search pattern in history More...
 
#define SEARCH_END   0x40
 put cursor at end of match More...
 
#define SEARCH_NOOF   0x80
 don't add offset to position More...
 
#define SEARCH_START   0x100
 start search without col offset More...
 
#define SEARCH_MARK   0x200
 set previous context mark More...
 
#define SEARCH_KEEP   0x400
 keep previous search pattern More...
 
#define SEARCH_PEEK   0x800
 peek for typed char, cancel search More...
 
#define SEARCH_COL   0x1000
 start at specified column instead of zero More...
 
#define FM_BACKWARD   0x01
 
#define FM_FORWARD   0x02
 
#define FM_BLOCKSTOP   0x04
 
#define FM_SKIPCOMM   0x08
 
#define RE_SEARCH   0
 
#define RE_SUBST   1
 
#define RE_BOTH   2
 
#define RE_LAST   2
 
#define SEARCH_STAT_DEF_TIMEOUT   40L
 
#define SEARCH_STAT_DEF_MAX_COUNT   99
 
#define SEARCH_STAT_BUF_LEN   12
 

Typedefs

typedef struct soffset SearchOffset
 
typedef struct spat SearchPattern
 Structure containing last search pattern and its attributes. More...
 
typedef struct searchstat searchstat_T
 

Macro Definition Documentation

◆ ACTION_EXPAND

#define ACTION_EXPAND   5

◆ ACTION_GOTO

#define ACTION_GOTO   2

◆ ACTION_SHOW

#define ACTION_SHOW   1

◆ ACTION_SHOW_ALL

#define ACTION_SHOW_ALL   4

◆ ACTION_SPLIT

#define ACTION_SPLIT   3

◆ CHECK_PATH

#define CHECK_PATH   3

◆ FIND_ANY

#define FIND_ANY   1

◆ FIND_DEFINE

#define FIND_DEFINE   2

◆ FM_BACKWARD

#define FM_BACKWARD   0x01

◆ FM_BLOCKSTOP

#define FM_BLOCKSTOP   0x04

◆ FM_FORWARD

#define FM_FORWARD   0x02

◆ FM_SKIPCOMM

#define FM_SKIPCOMM   0x08

◆ RE_BOTH

#define RE_BOTH   2

◆ RE_LAST

#define RE_LAST   2

◆ RE_SEARCH

#define RE_SEARCH   0

◆ RE_SUBST

#define RE_SUBST   1

◆ SEARCH_COL

#define SEARCH_COL   0x1000

start at specified column instead of zero

◆ SEARCH_ECHO

#define SEARCH_ECHO   0x02

echo the search command and handle options

◆ SEARCH_END

#define SEARCH_END   0x40

put cursor at end of match

◆ SEARCH_HIS

#define SEARCH_HIS   0x20

put search pattern in history

◆ SEARCH_KEEP

#define SEARCH_KEEP   0x400

keep previous search pattern

◆ SEARCH_MARK

#define SEARCH_MARK   0x200

set previous context mark

◆ SEARCH_MSG

#define SEARCH_MSG   0x0c

give messages (yes, it's not 0x04)

◆ SEARCH_NFMSG

#define SEARCH_NFMSG   0x08

give all messages except not found

◆ SEARCH_NOOF

#define SEARCH_NOOF   0x80

don't add offset to position

◆ SEARCH_OPT

#define SEARCH_OPT   0x10

interpret optional flags

◆ SEARCH_PEEK

#define SEARCH_PEEK   0x800

peek for typed char, cancel search

◆ SEARCH_REV

#define SEARCH_REV   0x01

go in reverse of previous dir.

◆ SEARCH_START

#define SEARCH_START   0x100

start search without col offset

◆ SEARCH_STAT_BUF_LEN

#define SEARCH_STAT_BUF_LEN   12

◆ SEARCH_STAT_DEF_MAX_COUNT

#define SEARCH_STAT_DEF_MAX_COUNT   99

◆ SEARCH_STAT_DEF_TIMEOUT

#define SEARCH_STAT_DEF_TIMEOUT   40L

Typedef Documentation

◆ SearchOffset

typedef struct soffset SearchOffset

Structure containing offset definition for the last search pattern

Note
Only offset for the last search pattern is used, not for the last substitute pattern.

◆ SearchPattern

typedef struct spat SearchPattern

Structure containing last search pattern and its attributes.

◆ searchstat_T

typedef struct searchstat searchstat_T