2016-05-01 22:16:00 -07:00
|
|
|
// Prototypes for the killring.
|
|
|
|
//
|
|
|
|
// Works like the killring in emacs and readline. The killring is cut and paste whith a memory of
|
|
|
|
// previous cuts.
|
2005-10-05 01:11:39 +10:00
|
|
|
#ifndef FISH_KILL_H
|
|
|
|
#define FISH_KILL_H
|
|
|
|
|
2015-07-25 23:14:25 +08:00
|
|
|
#include "common.h"
|
2005-10-05 01:11:39 +10:00
|
|
|
|
2016-05-01 22:16:00 -07:00
|
|
|
/// Replace the specified string in the killring.
|
2012-11-18 16:30:30 -08:00
|
|
|
void kill_replace(const wcstring &old, const wcstring &newv);
|
2006-10-12 23:27:32 +10:00
|
|
|
|
2016-05-01 22:16:00 -07:00
|
|
|
/// Add a string to the top of the killring.
|
2012-11-18 16:30:30 -08:00
|
|
|
void kill_add(const wcstring &str);
|
2012-03-03 21:46:06 -08:00
|
|
|
|
2016-05-01 22:16:00 -07:00
|
|
|
/// Rotate the killring.
|
2012-01-14 03:41:50 -08:00
|
|
|
const wchar_t *kill_yank_rotate();
|
2012-03-03 21:46:06 -08:00
|
|
|
|
2016-05-01 22:16:00 -07:00
|
|
|
/// Paste from the killring.
|
2012-01-14 03:41:50 -08:00
|
|
|
const wchar_t *kill_yank();
|
2012-03-03 21:46:06 -08:00
|
|
|
|
2016-05-01 22:16:00 -07:00
|
|
|
/// Sanity check.
|
2005-09-20 23:26:39 +10:00
|
|
|
void kill_sanity_check();
|
2012-03-03 21:46:06 -08:00
|
|
|
|
2016-05-01 22:16:00 -07:00
|
|
|
/// Initialize the killring.
|
2005-09-20 23:26:39 +10:00
|
|
|
void kill_init();
|
2012-03-03 21:46:06 -08:00
|
|
|
|
2016-05-01 22:16:00 -07:00
|
|
|
/// Destroy the killring.
|
2005-09-20 23:26:39 +10:00
|
|
|
void kill_destroy();
|
|
|
|
|
2005-10-05 01:11:39 +10:00
|
|
|
#endif
|