Kevin Pulo
df12f8de34
core: add options weechat.look.hotlist_update_on_buffer_switch and weechat.look.read_marker_update_on_buffer_switch
...
Both default to "on" (no change to previous behavior).
If hotlist_update_on_buffer_switch is "off", then when switching away from a
buffer, the hotlist is not cleared.
If read_marker_update_on_buffer_switch is "off", then when switching away from
a buffer, the read marker is not set to the end of the buffer.
This allows users to choose to have fully manual control over when hotlist
counts and buffer read markers are reset.
Fixes #992 .
2021-02-07 09:48:19 +01:00
Sébastien Helleu
efc7a588d6
core: update copyright dates
2021-01-02 21:34:16 +01:00
Sébastien Helleu
7e2396ade8
core: add options "setvar" and "delvar" in command /buffer, rename option "localvar" to "listvar"
...
The option "localvar" (introduced long time ago, in WeeChat 0.3.0) is still
recognized by WeeChat, to stay compatible with any extension/script calling
it (or referencing it in the documentation).
It is deprecated and will be removed in a future release.
2020-12-19 20:59:38 +01:00
Sébastien Helleu
0294b246f6
core: add buffer local variable "completion_default_template" (evaluated) ( closes #1600 )
...
When this local variable is set, it overrides the value of option
"weechat.completion.default_template".
It is evaluated, that means the global default template can be used to append
some custom completion. For example:
/buffer set localvar_set_completion_default_template ${weechat.completion.default_template}|%(my_completion)
2020-12-19 14:25:13 +01:00
Sébastien Helleu
21aef706cd
core: allocate dynamic string size for colors
2020-11-23 21:25:41 +01:00
Sébastien Helleu
a8dd0e1337
core: increase buffer size in function gui_bar_item_time_cb
...
This fixes a compiler warning complaining about a too small buffer for
snprintf, even if this should never happen.
2020-11-22 14:56:55 +01:00
Sébastien Helleu
a2266e4e3f
core: add missing cast to unsigned char on first argument to function isdigit
2020-11-19 22:20:48 +01:00
Sébastien Helleu
5cbda03fca
core: fix and normalize error messages
2020-11-17 21:54:24 +01:00
Sébastien Helleu
f8403c76db
api: add optional list of colors in infos "nick_color" and "nick_color_name" ( closes #1565 )
2020-10-04 08:46:36 +02:00
Sébastien Helleu
657e659c42
core: add argument "num_colors" in function gui_nick_hash_color, add tests on nick functions (issue #1565 )
...
Functions tested:
- gui_nick_hash_djb2_64
- gui_nick_hash_djb2_32
- gui_nick_hash_sum_64
- gui_nick_hash_sum_32
- gui_nick_get_forced_color
- gui_nick_strdup_for_color
- gui_nick_find_color
- gui_nick_find_color_name
2020-10-04 08:46:25 +02:00
Sébastien Helleu
cfd221014c
api: add argument "bytes" in function string_dyn_concat
2020-08-23 23:27:57 +02:00
Sébastien Helleu
268aa631c6
api: add function string_color_code_size (issue #1547 )
2020-08-22 08:55:16 +02:00
Sébastien Helleu
fbc2438c1c
core: replace calls to malloc by calloc
...
After these calls to malloc the memory is set to zero, so it's better to call
calloc that does it already.
2020-08-17 19:57:10 +02:00
Sébastien Helleu
fca5a4b42c
core: set notify_level to 3 if highlight is forced in gui_line_hook_update (only if tag "notify_none" is not in the line) (issue #1529 )
2020-08-16 12:40:41 +02:00
Sébastien Helleu
330d7d50d2
core: set notify_level to 3 in case of highlight in gui_line_hook_update only if tag "notify_none" is not in the line (issue #1529 )
2020-08-16 12:40:01 +02:00
Sébastien Helleu
786072806b
core: set notify_level to 3 in case of highlight only if tag "notify_none" is not in the line (issue #1529 )
2020-08-16 08:27:00 +02:00
Sébastien Helleu
d15db0ecbb
core: set "notify_level" to 3 if there is a highlight in the line ( closes #1529 )
2020-08-15 14:02:40 +02:00
Sébastien Helleu
0ab44c02a4
core: check that line is not NULL in functions gui_line_is_displayed and gui_line_get_nick_tag
2020-08-04 23:12:18 +02:00
Sébastien Helleu
6704825d7b
core: check that line_data is not NULL in functions gui_line_tags_alloc and gui_line_has_tag_no_filter
2020-08-04 22:56:02 +02:00
Sébastien Helleu
ec898732a1
core: rename functions to allocate/free lines
2020-08-04 22:42:59 +02:00
Sébastien Helleu
2b16036f08
core: do not add line with highlight and tag "notify_none" to hotlist ( closes #1529 )
2020-07-20 09:26:36 +02:00
Sébastien Helleu
b17e1bcf89
api: add pointer "_bar_window" in hashtable sent to hook focus callback ( closes #1450 )
2020-06-30 20:16:19 +02:00
Sébastien Helleu
b0ecbdbf1d
core: add bar option "color_bg_inactive" (issue #732 )
2020-06-21 18:59:54 +02:00
Sébastien Helleu
e784a994b5
api: fix use of pointer after free in function key_unbind
2020-06-07 09:11:24 +02:00
Christian Duerr
c35e31cad2
Add Alacritty title escape sequence support
2020-06-02 23:27:51 +02:00
Trygve Aaberge
40b5cf7ab0
Fix /window scroll_beyond_end when buffer has fewer lines than terminal height
2020-05-16 19:56:27 +02:00
Sébastien Helleu
a3747fefcd
core: move creation of info_hashtable from gui-focus.c to plugin-api-info.c (issue #1257 )
2020-05-16 14:23:09 +02:00
Simmo Saan
a5b851826e
gui: make key optional in gui_focus_to_hashtable
2020-05-16 14:23:09 +02:00
Simmo Saan
3f0c6ac96b
gui: add gui_focus_info hashtable info ( #1245 )
2020-05-16 14:23:09 +02:00
Sébastien Helleu
1d357533b9
core: add bar items with nicklist groups and nicks/groups ( closes #1506 )
...
The bar item "buffer_nicklist_count" is now the number of displayed nicks
only (not groups).
New bar items:
- "buffer_nicklist_count_groups": number of groups displayed
- "buffer_nicklist_count_all": number of nicks and groups displayed
2020-05-16 11:27:41 +02:00
Sébastien Helleu
40a14b4574
core: force buffer property "time_for_each_line" to 0 for buffers with free content ( closes #1485 )
2020-05-14 18:21:42 +02:00
Sébastien Helleu
ec1b381521
core: set default size for input bar to 0 (automatic) (issue #1498 )
2020-05-10 10:43:07 +02:00
Sébastien Helleu
b2d1f37782
core: add default key alt-enter to insert a newline (issue #1498 )
2020-05-10 10:39:57 +02:00
Sébastien Helleu
1c269e9a81
core: don't collapse consecutive newlines in lines displayed before the first buffer is created
2020-05-10 10:29:01 +02:00
Trygve Aaberge
d5e7cb2487
core: Don't remove consecutive newlines when pasting
...
Relates to #1498
2020-05-10 10:07:53 +02:00
Trygve Aaberge
1e2a8c4682
core: Don't collapse consecutive newlines in bar content
...
This allows blank lines to be displayed in the input bar when you input
multiple consecutive newlines.
Relates to #1498
2020-05-10 10:07:53 +02:00
Trygve Aaberge
867e07aa18
core: properly display newlines in input for all buffers
...
Supporting multiple lines in the input bar is useful even for buffers
without input_multiline set, because it enables you to compose multiple
lines at once, even if it is sent as multiple messages. It is
particularly useful when you paste multiple lines and want to edit some
of it before you send the message.
2020-05-10 00:10:38 +02:00
Sébastien Helleu
f987e445ec
core: properly display newlines in input when multiline is enabled in buffer (issue #984 , issue #1063 )
2020-05-09 18:23:33 +02:00
Trygve Aaberge
63714855d3
core: add an option for multiline input in a buffer ( closes #984 )
...
This allows the input callback function for a buffer to receive multiple
lines at once, instead of the message being split on newline before
being sent to the callback. It adds a new flag, input_multiline, to
control this. This flag defaults to 0 which is the current behavior.
2020-05-09 18:07:36 +02:00
Sébastien Helleu
3505324096
api: use buffer pointer in argument "modifier_data" sent to weechat_print modifier callback ( closes #42 )
2020-05-09 10:08:18 +02:00
Sébastien Helleu
f2507a68a7
core: remove obsolete comment
...
The completion context can be "GUI_COMPLETION_NULL" if there's no base word
found (for example empty input).
2020-04-28 10:53:49 +02:00
Sébastien Helleu
d1a427b67f
api: return integer in function gui_completion_search (issue #1484 )
2020-04-28 10:46:49 +02:00
Sébastien Helleu
2bd8e91b54
api: add hdata "completion_word" (issue #1484 )
2020-04-27 22:18:03 +02:00
Sébastien Helleu
d3020976d5
api: add functions completion_new, completion_search and completion_free (issue #1484 )
2020-04-27 22:15:42 +02:00
Sébastien Helleu
33ea747040
core: add default key alt-shift-N to toggle nicklist bar
2020-04-24 22:45:07 +02:00
Sébastien Helleu
6e18f31cb2
core: translate log message when the signal SIGHUP is received
2020-04-21 22:39:51 +02:00
Sébastien Helleu
100440c8a1
core: restore signal "signal_sighup", and if eaten do not reload configuration
2020-04-21 22:34:42 +02:00
Tom Fitzhenry
de1e61f7cd
core: reload config on SIGHUP
...
fixes https://github.com/weechat/weechat/issues/1476
2020-04-22 01:25:08 +10:00
Sébastien Helleu
0b994d718d
core: add command line option "--stdout" in weechat-headless binary ( closes #1475 , closes #1477 )
2020-04-19 11:28:39 +02:00
Tom Fitzhenry
18a837c55b
core: log to stdout, if headless
...
Fixes https://github.com/weechat/weechat/issues/1475 .
2020-04-19 11:05:22 +02:00