fish-shell/src/kill.h
ridiculousfish 8ec1467dda Implement (but do not yet adopt) Environment in Rust
This implements the primary environment stack, and other environments such
as the null and snapshot environments, in Rust. These are used to implement
the push and pop from block scoped commands such as `for` and `begin`, and
also function calls.
2023-05-07 15:15:56 -07:00

29 lines
692 B
C++

// Prototypes for the killring.
//
// Works like the killring in emacs and readline. The killring is cut and paste with a memory of
// previous cuts.
#ifndef FISH_KILL_H
#define FISH_KILL_H
#include "common.h"
#include "wutil.h"
/// Replace the specified string in the killring.
void kill_replace(const wcstring &old, const wcstring &newv);
/// Add a string to the top of the killring.
void kill_add(wcstring str);
/// Rotate the killring.
wcstring kill_yank_rotate();
/// Paste from the killring.
wcstring kill_yank();
/// Get copy of kill ring as vector of strings
std::vector<wcstring> kill_entries();
/// Rust-friendly kill entries.
wcstring_list_ffi_t kill_entries_ffi();
#endif