summaryrefslogtreecommitdiff
path: root/src/core
AgeCommit message (Collapse)Author
2023-03-26core: Implement commands for operating on a single input lineTrygve Aaberge
This changes the commands delete_beginning_of_line, delete_end_of_line, delete_line, move_beginning_of_line and move_end_of_line to operate on the current line instead of the whole input. The commands delete_beginning_of_input, delete_end_of_input, delete_input, move_beginning_of_input and move_end_of_input are added with the previous implementations that the line commands had. Additionally, the commands move_previous_line and move_next_line are added which moves the cursor to the previous/next line and keeps the horizontal position in the line. The meta-r key is changed from delete_line to delete_input to keep the behavior, and because you probably want to delete the whole input more often than the line. The meta-R key is added for delete_line. The home, end, ctrl-u and ctrl-k keys are kept to the same commands, which means that they change behaviour. This is because having them operate on the line is consistent with other applications (vim, zsh), and I also think it's more practical. These new bindings are added: shift-home: /input move_beginning_of_input shift-end: /input move_end_of_input shift-up: /input move_previous_line shift-down: /input move_next_line meta-R: /input delete_line meta-ctrl-u: /input delete_beginning_of_input meta-ctrl-k: /input delete_end_of_input Relates to #1498
2023-03-25core: Increase default value for paste_max_lines to 100Trygve Aaberge
Now that pasting text doesn't cause it to be sent immediately, but rather inserted in the input line, the paste confirmation isn't really necessary anymore for small pastes. If you paste by mistake you can just press ctrl-_ to undo it. Large pastes may cause weechat to hang for a while, so keep the paste confirmation for those. If you don't use bracketed paste you would still want to keep it at 1, because it's not detected as a paste otherwise, but as far as I know basically all terminal emulators support bracketed paste, so I think it's fine to disable the confirmation by default.
2023-03-25core: Remove option weechat.look.paste_auto_add_newlineTrygve Aaberge
This option existed so that you could edit the last line of a multiline paste before it was sent. Now that pasting multiple lines don't cause the lines to be sent immediately anymore, this option isn't useful anymore since you can always edit pasted text before it's sent.
2023-03-25core: fix memory leak in function config_file_read_internalSébastien Helleu
This was caused by commit 66571a0b634ef28307f6d6ceef1ba29c091ca524.
2023-03-24core: add option `legacy` in command `/key`Sébastien Helleu
2023-03-19core: add option `rename` in command `/bar`Sébastien Helleu
2023-03-19core: display an error with `/bar add` when the bar already existsSébastien Helleu
2023-03-19core: add value "name" in completion of `/bar set <name>`Sébastien Helleu
2023-03-19core: do not call check callback when setting default value of optionSébastien Helleu
2023-03-19core: run config hooks only when value or default value is actually changed ↵Sébastien Helleu
in set/reset/unset functions
2023-03-19core: optimize commands `/reset` and `/unset` with a maskSébastien Helleu
2023-03-19core: add command `/reset` to reset options to their default valuesSébastien Helleu
2023-03-19core: don't translate the key context (default/search/cursor/mouse)Sébastien Helleu
2023-03-17core: also display mouse codes with `/debug key`Sébastien Helleu
2023-03-17core: add note about "shift-" modifier in /help keySébastien Helleu
The modifier "shift-" can only be used with the key names, not with simple chars.
2023-03-17core: add modifiers, key names and combos in /help keySébastien Helleu
2023-03-17core: check new keys manually added with /setSébastien Helleu
2023-03-16core: remove mention to list of keys being displayed without arguments in ↵Sébastien Helleu
/help key Now when fset plugin is loaded, the keys are displayed in fset buffer. In core commands like /set or /key, the fset plugin is not mentioned as WeeChat can run without it.
2023-03-16core: display a specific error when trying to bind a key without area in ↵Sébastien Helleu
mouse context
2023-03-16core: display a warning if the config version read is newer than supported ↵Sébastien Helleu
version
2023-03-16core: move keyboard debug mode from `/key debug` to `/debug key`Sébastien Helleu
2023-03-16core: add function config_file_option_set_defaultSébastien Helleu
2023-03-16fset: hook command /keySébastien Helleu
When command /key is called without arguments, and if fset plugin is loaded, fset displays all key options (filter: `weechat.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: 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: fix display of key with command `/key bindctxt <context> <key>`Sébastien Helleu
2023-03-16core: add configuration version, add API function config_set_versionSébastien Helleu
2023-03-16core: simplify function config_file_read_internalSébastien Helleu
2023-03-16core: display new key name using aliases in output of `/key` commandSé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-03-12core: revert case sensitive Curl constants and options (issue #1872)Sébastien Helleu
This is a partial revert of fca78ca823e147665687d6cb0a6fe9a4694ba61b.
2023-03-12core: check that parameters are not NULL in URL functionsSébastien Helleu
2023-03-10core: simplify /help eval, move examples with the other examples (issue #1888)Sébastien Helleu
2023-03-10core: rename variable open_paren to pos_open_parenSébastien Helleu
2023-03-10core: allow /eval to get hashtable propertiesAndrew Potter
2023-01-30core: update description of function hook_command_display_error_unknownSébastien Helleu
2023-01-30core: inform that commands are case sensitive when another command with ↵Sébastien Helleu
different case is found (issue #1877)
2023-01-30core: improve prioritization of commands starting with same chars in similar ↵Sébastien Helleu
commands
2023-01-30core: display similar command names when a command is unknown (closes #1877)Sébastien Helleu
2023-01-30core: add function string_get_common_bytes_count (issue #1877)Sébastien Helleu
2023-01-30core: add function string_levenshtein (issue #1877)Sébastien Helleu
2023-01-29core: properly skip command char when it is a wide char in exec of ↵Sébastien Helleu
hook_command_run
2023-01-29core: force ctrl keys to lower case when they are added (closes #1875)Sébastien Helleu
2023-01-29api: readjust string size in function string_dyn_free when string is not ↵Sébastien Helleu
freed (issue #1875) This frees some allocated memory if size_alloc was greater than size in the dynamic string.
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
2023-01-28core, plugins: check that string parameters are not NULL in search functions ↵Sébastien Helleu
(issue #1872)
2023-01-28core, plugins: make input actions in buffers case sensitive (issue #1872)Sébastien Helleu