2016-05-02 05:16:00 +00:00
|
|
|
// 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
|
2016-05-02 05:16:00 +00:00
|
|
|
// previous cuts.
|
2005-10-04 15:11:39 +00:00
|
|
|
#ifndef FISH_KILL_H
|
|
|
|
#define FISH_KILL_H
|
|
|
|
|
2015-07-25 15:14:25 +00:00
|
|
|
#include "common.h"
|
2005-10-04 15:11:39 +00:00
|
|
|
|
2016-05-02 05:16:00 +00:00
|
|
|
/// Replace the specified string in the killring.
|
2012-11-19 00:30:30 +00:00
|
|
|
void kill_replace(const wcstring &old, const wcstring &newv);
|
2006-10-12 13:27:32 +00:00
|
|
|
|
2016-05-02 05:16:00 +00:00
|
|
|
/// Add a string to the top of the killring.
|
2019-03-17 00:26:42 +00:00
|
|
|
void kill_add(wcstring str);
|
2012-03-04 05:46:06 +00:00
|
|
|
|
2016-05-02 05:16:00 +00:00
|
|
|
/// Rotate the killring.
|
2019-03-17 00:26:42 +00:00
|
|
|
wcstring kill_yank_rotate();
|
2012-03-04 05:46:06 +00:00
|
|
|
|
2016-05-02 05:16:00 +00:00
|
|
|
/// Paste from the killring.
|
2019-03-17 00:26:42 +00:00
|
|
|
wcstring kill_yank();
|
2012-03-04 05:46:06 +00:00
|
|
|
|
2005-10-04 15:11:39 +00:00
|
|
|
#endif
|