fish-shell/src/history.h

58 lines
1.2 KiB
C++
Raw Normal View History

// Prototypes for history functions, part of the user interface.
#ifndef FISH_HISTORY_H
#define FISH_HISTORY_H
2015-07-25 15:14:25 +00:00
#include <stdint.h>
#include <stdio.h>
#include <time.h>
#include <wctype.h>
#include <algorithm>
#include <deque>
#include <memory>
2015-07-25 15:14:25 +00:00
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#include "common.h"
#include "maybe.h"
#include "wutil.h" // IWYU pragma: keep
2012-02-06 00:42:24 +00:00
using path_list_t = std::vector<wcstring>;
using history_identifier_t = uint64_t;
#if INCLUDE_RUST_HEADERS
#include "history.rs.h"
#else
struct HistoryItem;
2014-03-31 17:01:39 +00:00
class HistorySharedPtr;
enum class PersistenceMode;
enum class SearchDirection;
enum class SearchType;
#endif // INCLUDE_RUST_HEADERS
using history_item_t = HistoryItem;
using history_persistence_mode_t = PersistenceMode;
using history_search_direction_t = SearchDirection;
using history_search_type_t = SearchType;
using history_search_flags_t = uint32_t;
2012-02-06 00:42:24 +00:00
/// Flags for history searching.
enum {
/// If set, ignore case.
history_search_ignore_case = 1 << 0,
/// If set, do not deduplicate, which can help performance.
history_search_no_dedup = 1 << 1
};
using history_search_flags_t = uint32_t;
#endif