2005-09-20 13:26:39 +00:00
|
|
|
/** \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.
|
|
|
|
*/
|
|
|
|
|
2005-10-04 15:11:39 +00:00
|
|
|
#ifndef FISH_KILL_H
|
|
|
|
#define FISH_KILL_H
|
|
|
|
|
|
|
|
#include <wchar.h>
|
|
|
|
|
2006-10-12 13:27:32 +00:00
|
|
|
/**
|
|
|
|
Replace the specified string in the killring
|
|
|
|
*/
|
2011-12-27 03:18:46 +00:00
|
|
|
void kill_replace( wchar_t *old, wchar_t *newv );
|
2006-10-12 13:27:32 +00:00
|
|
|
|
|
|
|
|
2005-09-20 13:26:39 +00:00
|
|
|
/**
|
|
|
|
Add a string to the top of the killring
|
|
|
|
*/
|
|
|
|
void kill_add( wchar_t *str );
|
|
|
|
/**
|
|
|
|
Rotate the killring
|
|
|
|
*/
|
2012-01-14 11:41:50 +00:00
|
|
|
const wchar_t *kill_yank_rotate();
|
2005-09-20 13:26:39 +00:00
|
|
|
/**
|
|
|
|
Paste from the killring
|
|
|
|
*/
|
2012-01-14 11:41:50 +00:00
|
|
|
const wchar_t *kill_yank();
|
2005-09-20 13:26:39 +00:00
|
|
|
/**
|
|
|
|
Sanity check
|
|
|
|
*/
|
|
|
|
void kill_sanity_check();
|
|
|
|
/**
|
|
|
|
Initialize the killring
|
|
|
|
*/
|
|
|
|
void kill_init();
|
|
|
|
/**
|
|
|
|
Destroy the killring
|
|
|
|
*/
|
|
|
|
void kill_destroy();
|
|
|
|
|
2005-10-04 15:11:39 +00:00
|
|
|
#endif
|