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