robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
38986188ba
master
1#pragma once 2 3#include <stddef.h> // IWYU pragma: keep 4 5#include "nvim/cmdexpand_defs.h" // IWYU pragma: keep 6#include "nvim/eval/typval_defs.h" // IWYU pragma: keep 7#include "nvim/ex_cmds_defs.h" // IWYU pragma: keep 8#include "nvim/os/time_defs.h" 9#include "nvim/types_defs.h" // IWYU pragma: keep 10 11/// Present history tables 12typedef enum { 13HIST_DEFAULT = -2 ,///< Default (current) history. 14HIST_INVALID = -1 ,///< Unknown history. 15HIST_CMD = 0 ,///< Colon commands. 16HIST_SEARCH ,///< Search commands. 17HIST_EXPR ,///< Expressions (e.g. from entering = register). 18HIST_INPUT ,///< input() lines. 19HIST_DEBUG ,///< Debug commands. 20}HistoryType ; 21 22enum {HIST_COUNT = HIST_DEBUG + 1 , };///< Number of history tables 23 24/// History entry definition 25typedef struct { 26int hisnum ;///< Entry identifier number. 27char * hisstr ;///< Actual entry, separator char after the NUL. 28size_t hisstrlen ;///< Length of hisstr (excluding the NUL). 29Timestamp timestamp ;///< Time when entry was added. 30AdditionalData * additional_data ;///< Additional entries from ShaDa file. 31}histentry_T ; 32 33#include "cmdhist.h.generated.h"