mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 11:50:10 +02:00
Added command history groups, set them with /WINDOW HISTORY. Patch by peder@ifi.uio.no
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2276 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
9ed228551b
commit
9ddebe6bcf
13 changed files with 243 additions and 78 deletions
|
|
@ -1,16 +1,35 @@
|
|||
#ifndef __COMMAND_HISTORY_H
|
||||
#define __COMMAND_HISTORY_H
|
||||
|
||||
#include "fe-windows.h"
|
||||
#include "common.h"
|
||||
|
||||
typedef struct {
|
||||
char *name;
|
||||
|
||||
GList *list, *pos;
|
||||
int lines, over_counter;
|
||||
|
||||
int refcount;
|
||||
} HISTORY_REC;
|
||||
|
||||
HISTORY_REC *command_history_find(HISTORY_REC *history);
|
||||
HISTORY_REC *command_history_find_name(const char *name);
|
||||
|
||||
HISTORY_REC *command_history_current(WINDOW_REC *window);
|
||||
|
||||
void command_history_init(void);
|
||||
void command_history_deinit(void);
|
||||
|
||||
void command_history_add(WINDOW_REC *window, const char *text, int prepend);
|
||||
void command_history_add(HISTORY_REC *window, const char *text);
|
||||
|
||||
const char *command_history_prev(WINDOW_REC *window, const char *text);
|
||||
const char *command_history_next(WINDOW_REC *window, const char *text);
|
||||
|
||||
void command_history_clear_pos(WINDOW_REC *window);
|
||||
|
||||
HISTORY_REC *command_history_create(const char *name);
|
||||
void command_history_destroy(HISTORY_REC *history);
|
||||
void command_history_link(const char *name);
|
||||
void command_history_unlink(const char *name);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue