Data Structures | Macros | Typedefs | Functions
file_search.c File Reference
#include <assert.h>
#include <string.h>
#include <stdbool.h>
#include <inttypes.h>
#include <limits.h>
#include "nvim/vim.h"
#include "nvim/eval.h"
#include "nvim/ascii.h"
#include "nvim/file_search.h"
#include "nvim/charset.h"
#include "nvim/fileio.h"
#include "nvim/memory.h"
#include "nvim/message.h"
#include "nvim/misc1.h"
#include "nvim/option.h"
#include "nvim/os_unix.h"
#include "nvim/path.h"
#include "nvim/strings.h"
#include "nvim/tag.h"
#include "nvim/window.h"
#include "nvim/os/os.h"
#include "nvim/os/input.h"
#include "nvim/os/fs_defs.h"

Data Structures

struct  ff_stack
 
struct  ff_visited
 
struct  ff_visited_list_hdr
 
struct  ff_search_ctx_T
 

Macros

#define FF_MAX_STAR_STAR_EXPAND   ((char_u)30)
 

Typedefs

typedef struct ff_stack ff_stack_T
 
typedef struct ff_visited ff_visited_T
 
typedef struct ff_visited_list_hdr ff_visited_list_hdr_T
 
typedef struct ff_search_ctx_T ff_search_ctx_T
 

Functions

void * vim_findfile_init (char_u *path, char_u *filename, char_u *stopdirs, int level, int free_visited, int find_what, void *search_ctx_arg, int tagfile, char_u *rel_fname)
 
char_uvim_findfile_stopdir (char_u *buf)
 
void vim_findfile_cleanup (void *ctx)
 
char_uvim_findfile (void *search_ctx_arg)
 
void vim_findfile_free_visited (void *search_ctx_arg)
 
char_ufind_file_in_path (char_u *ptr, size_t len, int options, int first, char_u *rel_fname)
 
char_ufind_directory_in_path (char_u *ptr, size_t len, int options, char_u *rel_fname)
 
char_ufind_file_in_path_option (char_u *ptr, size_t len, int options, int first, char_u *path_option, int find_what, char_u *rel_fname, char_u *suffixes)
 
void do_autocmd_dirchanged (char *new_dir, CdScope scope)
 
int vim_chdirfile (char_u *fname)
 
int vim_chdir (char_u *new_dir)
 Change directory to "new_dir". Search 'cdpath' for relative directory names. More...
 

Macro Definition Documentation

#define FF_MAX_STAR_STAR_EXPAND   ((char_u)30)

Typedef Documentation

typedef struct ff_stack ff_stack_T
typedef struct ff_visited ff_visited_T

Function Documentation

void do_autocmd_dirchanged ( char *  new_dir,
CdScope  scope 
)
char_u* find_directory_in_path ( char_u ptr,
size_t  len,
int  options,
char_u rel_fname 
)
char_u* find_file_in_path ( char_u ptr,
size_t  len,
int  options,
int  first,
char_u rel_fname 
)
char_u* find_file_in_path_option ( char_u ptr,
size_t  len,
int  options,
int  first,
char_u path_option,
int  find_what,
char_u rel_fname,
char_u suffixes 
)
int vim_chdir ( char_u new_dir)

Change directory to "new_dir". Search 'cdpath' for relative directory names.

int vim_chdirfile ( char_u fname)

Change to a file's directory. Caller must call shorten_fnames()!

Returns
OK or FAIL
char_u* vim_findfile ( void *  search_ctx_arg)
void vim_findfile_cleanup ( void *  ctx)
void vim_findfile_free_visited ( void *  search_ctx_arg)
void* vim_findfile_init ( char_u path,
char_u filename,
char_u stopdirs,
int  level,
int  free_visited,
int  find_what,
void *  search_ctx_arg,
int  tagfile,
char_u rel_fname 
)
char_u* vim_findfile_stopdir ( char_u buf)