fish-shell/src/kill.h

36 lines
706 B
C
Raw Normal View History

/** \file kill.h
Prototypes for the killring.
Works like the killring in emacs and readline. The killring is cut and paste whith 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);
2012-03-04 11:37:55 +08:00
/** Add a string to the top of the killring */
void kill_add(const wcstring &str);
2012-03-04 13:46:06 +08:00
/** Rotate the killring */
const wchar_t *kill_yank_rotate();
2012-03-04 13:46:06 +08:00
/** Paste from the killring */
const wchar_t *kill_yank();
2012-03-04 13:46:06 +08:00
/** Sanity check */
void kill_sanity_check();
2012-03-04 13:46:06 +08:00
/** Initialize the killring */
void kill_init();
2012-03-04 13:46:06 +08:00
/** Destroy the killring */
void kill_destroy();
#endif