diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-05-19 13:32:55 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-05-19 13:32:55 +0000 |
commit | 80af85a102bcb4c91d6ce08102131a4654212d80 (patch) | |
tree | b207ee59eea50f38dd6df496710a4897157dd748 /tmux.h | |
parent | a385f757925110af9cc54c5d55298ede22e55e97 (diff) | |
download | rtmux-80af85a102bcb4c91d6ce08102131a4654212d80.tar.gz rtmux-80af85a102bcb4c91d6ce08102131a4654212d80.tar.bz2 rtmux-80af85a102bcb4c91d6ce08102131a4654212d80.zip |
- New window option monitor-content to search for a string in a window, and
highlight the status line if it matches.
- To make this possible, the function cmd_find_window_search from
cmd-find-window.c had to be moved to window.c and renamed window_pane_search.
- While there use three new functions in server.c to check for bell, activity,
and content, to avoid too much nesting.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.323 2009-05-18 21:55:53 nicm Exp $ */ +/* $Id: tmux.h,v 1.324 2009-05-19 13:32:55 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -701,6 +701,7 @@ struct window { #define WINDOW_BELL 0x1 #define WINDOW_HIDDEN 0x2 #define WINDOW_ACTIVITY 0x4 +#define WINDOW_CONTENT 0x6 #define WINDOW_REDRAW 0x8 struct options options; @@ -1001,7 +1002,7 @@ struct set_option_entry { extern const struct set_option_entry set_option_table[]; extern const struct set_option_entry set_window_option_table[]; #define NSETOPTION 24 -#define NSETWINDOWOPTION 18 +#define NSETWINDOWOPTION 19 #ifndef HAVE_STRTONUM /* strtonum.c */ @@ -1564,6 +1565,7 @@ void window_pane_parse(struct window_pane *); void window_pane_key(struct window_pane *, struct client *, int); void window_pane_mouse(struct window_pane *, struct client *, u_char, u_char, u_char); +char *window_pane_search(struct window_pane *, const char *); /* layout.c */ const char * layout_name(struct window *); |