1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 06:46:38 +02:00

Added key for clearing hotlist (Alt-R)

This commit is contained in:
Sebastien Helleu
2004-08-10 18:02:38 +00:00
parent 2ff30b15f2
commit 9278198964
8 changed files with 52 additions and 2 deletions
+4 -1
View File
@@ -1,9 +1,12 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2004-08-08
ChangeLog - 2004-08-10
Version 0.0.8 (under dev!):
* added key for clearing hotlist (Alt-R)
Version 0.0.7 (2004-08-08):
* new "col_status_delimiters" config option
* /buffer command added, buffers ordered by number, auto-jump to active
+12
View File
@@ -159,6 +159,18 @@ hotlist_free (t_weechat_hotlist *ptr_hotlist)
hotlist = new_hotlist;
}
/*
* hotlist_free_all: free all hotlists
*/
void
hotlist_free_all ()
{
/* remove all hotlists */
while (hotlist)
hotlist_free (hotlist);
}
/*
* hotlist_remove_buffer: remove a buffer from hotlist
*/
+1
View File
@@ -39,6 +39,7 @@ extern t_gui_buffer *hotlist_initial_buffer;
extern void hotlist_add (int, t_gui_buffer *);
extern void hotlist_free (t_weechat_hotlist *);
extern void hotlist_free_all ();
extern void hotlist_remove_buffer (t_gui_buffer *);
#endif /* hotlist.h */
+9
View File
@@ -362,6 +362,15 @@ gui_read_keyb ()
}
}
break;
/* Alt-R */
case 'r':
case 'R':
if (hotlist)
{
hotlist_free_all ();
gui_redraw_buffer (gui_current_window->buffer);
}
break;
}
}
break;
+4 -1
View File
@@ -1,9 +1,12 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2004-08-08
ChangeLog - 2004-08-10
Version 0.0.8 (under dev!):
* added key for clearing hotlist (Alt-R)
Version 0.0.7 (2004-08-08):
* new "col_status_delimiters" config option
* /buffer command added, buffers ordered by number, auto-jump to active
+12
View File
@@ -159,6 +159,18 @@ hotlist_free (t_weechat_hotlist *ptr_hotlist)
hotlist = new_hotlist;
}
/*
* hotlist_free_all: free all hotlists
*/
void
hotlist_free_all ()
{
/* remove all hotlists */
while (hotlist)
hotlist_free (hotlist);
}
/*
* hotlist_remove_buffer: remove a buffer from hotlist
*/
+1
View File
@@ -39,6 +39,7 @@ extern t_gui_buffer *hotlist_initial_buffer;
extern void hotlist_add (int, t_gui_buffer *);
extern void hotlist_free (t_weechat_hotlist *);
extern void hotlist_free_all ();
extern void hotlist_remove_buffer (t_gui_buffer *);
#endif /* hotlist.h */
+9
View File
@@ -362,6 +362,15 @@ gui_read_keyb ()
}
}
break;
/* Alt-R */
case 'r':
case 'R':
if (hotlist)
{
hotlist_free_all ();
gui_redraw_buffer (gui_current_window->buffer);
}
break;
}
}
break;