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

Go to the source code of this file.

Data Structures

struct  soffset
 
struct  spat
 Structure containing last search pattern and its attributes. More...
 

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 /* search backwards */
 
#define FM_FORWARD   0x02 /* search forwards */
 
#define FM_BLOCKSTOP   0x04 /* stop at start/end of block */
 
#define FM_SKIPCOMM   0x08 /* skip comments */
 
#define RE_SEARCH   0 /* save/use pat in/from search_pattern */
 
#define RE_SUBST   1 /* save/use pat in/from subst_pattern */
 
#define RE_BOTH   2 /* save pat in both patterns */
 
#define RE_LAST   2 /* use last used pattern if "pat" is NULL */
 

Typedefs

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

Macro Definition Documentation

#define ACTION_EXPAND   5
#define ACTION_GOTO   2
#define ACTION_SHOW   1
#define ACTION_SHOW_ALL   4
#define ACTION_SPLIT   3
#define CHECK_PATH   3
#define FIND_ANY   1
#define FIND_DEFINE   2
#define FM_BACKWARD   0x01 /* search backwards */
#define FM_BLOCKSTOP   0x04 /* stop at start/end of block */
#define FM_FORWARD   0x02 /* search forwards */
#define FM_SKIPCOMM   0x08 /* skip comments */
#define RE_BOTH   2 /* save pat in both patterns */
#define RE_LAST   2 /* use last used pattern if "pat" is NULL */
#define RE_SEARCH   0 /* save/use pat in/from search_pattern */
#define RE_SUBST   1 /* save/use pat in/from subst_pattern */
#define SEARCH_COL   0x1000

start at specified column instead of zero

#define SEARCH_ECHO   0x02

echo the search command and handle options

#define SEARCH_END   0x40

put cursor at end of match

#define SEARCH_HIS   0x20

put search pattern in history

#define SEARCH_KEEP   0x400

keep previous search pattern

#define SEARCH_MARK   0x200

set previous context mark

#define SEARCH_MSG   0x0c

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

#define SEARCH_NFMSG   0x08

give all messages except not found

#define SEARCH_NOOF   0x80

don't add offset to position

#define SEARCH_OPT   0x10

interpret optional flags

#define SEARCH_PEEK   0x800

peek for typed char, cancel search

#define SEARCH_REV   0x01

go in reverse of previous dir.

#define SEARCH_START   0x100

start search without col offset

Typedef Documentation

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.
typedef struct spat SearchPattern

Structure containing last search pattern and its attributes.