2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-02-15 21:49:26 +00:00
fish-shell/src/kill.h

26 lines
594 B
C++
Raw Normal View History

// Prototypes for the killring.
//
2019-10-22 00:21:40 +00:00
// 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
2015-07-25 23:14:25 +08:00
#include "common.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.
2019-03-16 17:26:42 -07:00
void kill_add(wcstring str);
2012-03-03 21:46:06 -08:00
/// Rotate the killring.
2019-03-16 17:26:42 -07:00
wcstring kill_yank_rotate();
2012-03-03 21:46:06 -08:00
/// Paste from the killring.
2019-03-16 17:26:42 -07:00
wcstring kill_yank();
2012-03-03 21:46:06 -08:00
/// Get copy of kill ring as vector of strings
wcstring_list_t kill_entries();
#endif