summaryrefslogtreecommitdiff
path: root/src/gui
AgeCommit message (Collapse)Author
2023-03-20core: add relative move of read marker with `/buffer set unread [+/-]N` ↵Sébastien Helleu
(closes #1895)
2023-03-19core: fix default value of options for bars added by pluginsSébastien Helleu
When the bar name already exists, the function `bar_new` returns the pointer to the bar (instead of NULL) and sets the default value for all options with the values received.
2023-03-19core: fix long lines in function gui_bar_use_temp_barsSébastien Helleu
2023-03-19core: allow any valid boolean value in command `/bar set <name> separator xxx`Sébastien Helleu
2023-03-19core: fix typo on bar option name "separator"Sébastien Helleu
2023-03-19core: use a fixed size buffer to create a bar optionSébastien Helleu
2023-03-19core: use a fixed size buffer to rename a barSébastien Helleu
2023-03-18core: bump version to 4.0.0-dev, follow "practical" semantic versioningSébastien Helleu
2023-03-17core: also display mouse codes with `/debug key`Sébastien Helleu
2023-03-17core: change order of modifiers in mouse keysSébastien Helleu
Now the modifiers for mouse keys are in the same order as other keys: `alt-` then `ctrl-`.
2023-03-17core: split gui-curses.h into multiple headersSébastien Helleu
2023-03-17core: fix search of commands with raw code and alias matchingSébastien Helleu
When raw code and alias for a key are both matching, the raw code must always have higher priority. This commit fixes this behavior and gives priority to raw code.
2023-03-17core: set insert_ok to 0 for backspace keySébastien Helleu
2023-03-17core: remove "%s" from translated message for key debugSébastien Helleu
2023-03-17core: refactor print of keys in debug modeSébastien Helleu
Changes: - add function gui_key_debug_print_key - change message "no key" by "no key binding" - remove messages ""insert into input" / "ignored" - add color for delimiters
2023-03-17core: replace "\x01" by "^" and add color for delimiters in output of /debug keySébastien Helleu
2023-03-17core: use order returned by gui_key_expand in gui_key_modifier_listSébastien Helleu
2023-03-17core: display a warning when trying to bind a raw key code or invalid key ↵Sébastien Helleu
(missing comma)
2023-03-17core: check new keys manually added with /setSébastien Helleu
2023-03-17core: remove use of "meta2-" in key nameSébastien Helleu
The raw key code is kept as-is, so for example "meta2-A" becomes "meta-[A".
2023-03-16core: display a specific error when trying to bind a key without area in ↵Sébastien Helleu
mouse context
2023-03-16api: change also default value of new key options with function key_bindSébastien Helleu
2023-03-16core: split alias list into two listsSébastien Helleu
2023-03-16tests: add extra test on function gui_key_legacy_to_aliasSébastien Helleu
2023-03-16api: change default value of existing key options with function key_bindSébastien Helleu
With this fix, fset buffer shows the key as modified only if the user actually changed the command bound to the key.
2023-03-16core: create config options for all keys that can be managed with `/set` and ↵Sébastien Helleu
`/fset` commands
2023-03-16core: fix safe list of keysSébastien Helleu
Add missing safe keys: "backspace" and "return". Add missing unsafe keys: "comma", "space".
2023-03-16core: remove obsolete function gui_key_legacy_expandSébastien Helleu
2023-03-16core: optimize search of key by reducing the number of splits into chunksSébastien Helleu
2023-03-16core: add key alt-K (alt+shift+k) to grab raw key and its commandSébastien Helleu
2023-03-16core: use new key name in command `/key` and configuration fileSébastien Helleu
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-16core: display new key name using aliases in output of `/key` commandSébastien Helleu
2023-03-16core: fix function gui_key_legacy_to_alias with keys on areasSébastien Helleu
2023-03-16core: add function to expand raw key code to name with alias, use it in /key ↵Sébastien Helleu
debug
2023-03-16core: add keyboard debug mode with command `/key debug`Sébastien Helleu
2023-02-22core: fix crash in case of NULL message sent to function ↵Sébastien Helleu
gui_chat_printf_y_date_tags (closes #1883)
2023-02-10core: allow /input move_next_word going to the end of lineRobin Jarry
When the input buffer contains non word characters at the end, /input move_next_word will stop moving at the end of the last word. This is a bit confusing and not in line with what readline does (think bash). When there are no words left in the input buffer, make /input move_next_word go to the end of line. Signed-off-by: Robin Jarry <robin@jarry.cc>
2023-02-04fix: various code commentsrj1
2023-02-04core: optimize search of key bindings in contexts default/search/cursorSébastien Helleu
2023-02-03core: simplify function gui_key_cmpSébastien Helleu
2023-02-02core: remove extra spaces before commaSébastien Helleu
2023-01-29core: force ctrl keys to lower case when they are added (closes #1875)Sébastien Helleu
2023-01-29core: ignore incomplete ctrl/meta/meta2 codes in keys (issue #1875)Sébastien Helleu
2023-01-29core: ensure internal_code is not NULL when adding a default key (issue #1875)Sébastien Helleu
2023-01-29core: compute first internal code and expanded name before removing key ↵Sébastien Helleu
(issue #1875)
2023-01-29core: compute first internal code and expanded name before adding key (issue ↵Sébastien Helleu
#1875)
2023-01-29core: use dynamic string in functions gui_key_get_internal_code and ↵Sébastien Helleu
gui_key_get_expanded_name (issue #1875)
2023-01-29tests: add tests on gui key functions (issue #1875)Sébastien Helleu
2023-01-28core, plugins: replace calls to strcmp by string_strcmp when difference ↵Sébastien Helleu
matters (issue #1872)
2023-01-28core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872)Sébastien Helleu