Sébastien Helleu
f53e7fb9ef
core, plugins: fix typos in comments on functions, use imperative
2026-03-23 20:45:36 +01:00
Sébastien Helleu
106fe6ca7c
core: update copyright dates
2026-03-08 10:37:15 +01:00
Sébastien Helleu
dd454dfc50
tests: merge tests of buffer set functions into gui_buffer_set
2025-11-23 10:36:21 +01:00
Sébastien Helleu
5543bc236b
tests: add tests on gui buffer set functions
2025-11-23 10:35:43 +01:00
Sébastien Helleu
2475f20cb7
all: move description of C files below the copyright and license
2025-03-31 11:47:49 +02:00
Sébastien Helleu
3a6ac9ee76
all: add SPDX license tag
2025-03-31 07:49:26 +02:00
Sébastien Helleu
d8987a1678
all: replace Copyright lines by SPDX copyright tag
2025-03-30 14:47:12 +02:00
Sébastien Helleu
547e2b934e
core: update copyright dates
2025-02-01 23:13:18 +01:00
Sébastien Helleu
ec78084f49
tests: add tests on function input_data
2024-10-12 21:04:13 +02:00
Sébastien Helleu
6908eec160
tests: replace POINTERS_EQUAL by STRCMP_EQUAL in string comparisons with NULL
2024-09-14 10:26:42 +02:00
Sébastien Helleu
1fcf5ac5b3
core, plugins: force "short_name" in buffers to non-empty value (name by default), remove buffer property "short_name_is_set"
2024-06-18 20:34:58 +02:00
Sébastien Helleu
9b356733a9
core: allow buffer id in commands /buffer and /print, in addition to number and name
2024-06-11 08:03:09 +02:00
Sébastien Helleu
8366c32b0a
core: add hashtable to quickly find buffers by id
2024-06-10 23:55:34 +02:00
Sébastien Helleu
e7b2d98b6e
core: add buffer property "modes"
2024-05-12 09:26:10 +02:00
Sébastien Helleu
464b019929
core: restore buffer input prompt on /upgrade
2024-05-12 01:31:54 +02:00
Sébastien Helleu
7634774327
core: add buffer property "input_prompt"
2024-05-10 08:54:03 +02:00
Sébastien Helleu
df52b57c33
core: add function gui_buffer_set_filter
2024-05-08 13:23:50 +02:00
Sébastien Helleu
7addd1bf00
core: add function gui_buffer_set_input
2024-05-08 13:19:40 +02:00
Sébastien Helleu
28f75d17dc
tests: add placeholder for tests on function gui_buffer_set_input_get_any_user_data
2024-05-08 13:19:15 +02:00
Sébastien Helleu
b2c7682242
core: add function gui_buffer_set_notify
2024-05-08 12:08:50 +02:00
Sébastien Helleu
2aa1b950cd
core: add function gui_buffer_set_day_change
2024-05-08 12:08:50 +02:00
Sébastien Helleu
4adb64284b
buffer: add property input_get_any_user_data in buffer (issue #2066 )
...
This allows buffers to get any user input, including commands, that are sent to
the buffer callback instead of being executed on the buffer.
2024-04-07 13:18:13 +02:00
Sébastien Helleu
24c4029c96
core: remove "wee-" prefix from source files in src/core and src/core/hook
2024-03-12 21:27:37 +01:00
Sébastien Helleu
f9e8c7faab
api: allow search by buffer id in function buffer_search (issue #2081 )
2024-03-12 20:37:44 +01:00
Sébastien Helleu
5af0415508
core: add function gui_buffer_search_by_id (issue #2081 )
2024-03-12 20:37:42 +01:00
Sébastien Helleu
c71e6a50eb
core: rename function gui_buffer_search_by_name to gui_buffer_search (issue #2081 )
2024-03-12 20:37:40 +01:00
Sébastien Helleu
4ffd62b206
core: add unique "id" in buffer (issue #2081 )
...
The id is a "long long" variable with the current time (microseconds
precision).
It is guaranteed to be unique for all buffers, and the same number is never
used again, during the lifetime of the process.
It persists and is unchanged after `/upgrade`.
2024-03-12 20:37:36 +01:00
Sébastien Helleu
09e01133d2
core: allow case insensitive search of partial buffer name with (?i)name in command /buffer
2024-01-24 20:54:41 +01:00
Sébastien Helleu
b7735632b8
tests: add tests on buffer properties "opening" and "type"
2024-01-24 20:47:51 +01:00
Sébastien Helleu
eecb2a997e
core: update copyright dates
2024-01-01 22:29:58 +01:00
Sébastien Helleu
b83b428c5c
core: add incremental search in commands history (issue #2040 )
...
Changes:
- move key ctrl+r to ctrl+s
- add key ctrl+r to search in commands history
- add option `search_history` in command `/input`
- add key context "histsearch"
- add option weechat.look.buffer_search_history
- add buffer variables "text_search_direction", "text_search_history" and "text_search_ptr_history"
2023-11-11 08:54:06 +01:00
Sébastien Helleu
11943ebaaf
tests: add tests on GUI buffer functions
...
Functions tested:
- gui_buffer_is_reserved_name
- gui_buffer_get_integer
- gui_buffer_get_string
- gui_buffer_get_pointer
2023-08-25 08:16:36 +02:00
Sébastien Helleu
3aef8b7292
core: add options weechat.buffer.* to save buffer properties set by user (issue #352 )
2023-08-24 10:38:47 +02:00
Sébastien Helleu
b756598070
tests: add tests on GUI buffer functions
2023-08-18 13:35:36 +02:00
Sébastien Helleu
25d7192677
api: don't split on newline by default in functions command and command_options when input_multiline is set to 0
...
The API functions `command` and `command_options` (when `split_newline` = 0,
which is the default value) don't split on newline and then the first line is
executed and the subsequent lines (after "\n") are ignored.
There are no changes when the input has multiple lines filled by the user: the
split is done and multiple commands are executed (for example if the user is
pasting multiple commands to execute).
2023-05-04 21:06:32 +02:00
Sébastien Helleu
98a599d079
core: move buffer functions and remove them from header file
2023-03-21 20:14:35 +01:00
Sébastien Helleu
f48f1c4700
core: remove unused function gui_buffer_is_scrolled
2023-03-21 20:01:12 +01:00
Sébastien Helleu
6edcc6ed41
core: remove unused function gui_buffer_search_by_layout_number
2023-03-21 19:58:53 +01:00
Sébastien Helleu
1f5c791c37
core: use new key name in command /key and configuration file
...
Legacy keys are automatically converted to new names when loading configuration
file `weechat.conf`.
Examples:
"ctrl-I" => "tab"
"meta2-1;3A" => "meta-up"
"meta2-Z" => "shift-tab"
"meta-wmeta-meta2-A" => "meta-w,meta-up"
"ctrl-Cb" => "ctrl-c,b"
2023-03-16 20:42:19 +01:00
Sébastien Helleu
33bba784c3
core: update copyright dates
2023-01-01 14:54:35 +01:00
Sébastien Helleu
73bac5491b
core: move function gui_input_move_to_buffer to gui-buffer.c
2022-12-31 10:40:00 +01:00
Sébastien Helleu
41fd26fe79
core: move /input buffer switch/zoom actions to command /buffer
...
Actions moved:
* `/input switch_active_buffer` -> `/buffer switch`
* `/input switch_active_buffer_previous` -> `/buffer switch -previous`
* `/input zoom_merged_buffer` -> `/buffer zoom`
2022-12-25 22:47:18 +01:00
Sébastien Helleu
574a4c8834
core: add function gui_buffer_jump_last_visible_number
2022-12-25 17:57:59 +01:00
Sébastien Helleu
c9796a3141
core: move /input jump actions to command /buffer jump
...
Actions moved to command `/buffer jump`:
* `/input jump_smart` -> `/buffer jump smart`
* `/input jump_previously_visited_buffer` -> `/buffer jump prev_visited`
* `/input jump_next_visited_buffer` -> `/buffer jump next_visited`
* `/input jump_last_buffer_displayed` -> `/buffer jump last_displayed`
2022-12-25 17:00:37 +01:00
Sébastien Helleu
bab73cfaa5
core: add identifier in buffer lines ( closes #901 )
...
For buffers with formatted content, the "id" starts to 0 on each buffer and is
incremented on each new line displayed (it is reset to 0 if reaching INT_MAX).
For buffers with free content, the "id" is set to the same value as "y" (ie the
line number, starting to 0).
2022-11-11 09:42:20 +01:00
Sébastien Helleu
24665ae878
core: add signals "buffer_user_{input|closing}_xxx" for buffers created with /buffer add ( closes #1848 )
2022-11-08 20:34:04 +01:00
Sébastien Helleu
869279e9b6
tests: add tests on function gui_buffer_match_list
2022-03-13 14:03:23 +01:00
Sébastien Helleu
947ca33c14
tests: add tests on function gui_buffer_valid
2022-03-13 14:03:14 +01:00
Sébastien Helleu
44ec7e8cfa
tests: add tests on functions gui_buffer_search_type and gui_buffer_search_notify
2022-03-13 13:49:18 +01:00
Sébastien Helleu
4629b17173
tests: add tests on functions gui_buffer_new and gui_buffer_new_props
2022-03-13 13:29:50 +01:00