1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 17:23:15 +02:00
Commit Graph

43 Commits

Author SHA1 Message Date
Sébastien Helleu d8433eaf55 fset: add "t:themable" filter
Extend the "t:" filter so the special value "themable" matches every
option whose new themable flag is set, regardless of type (color,
string, integer, boolean, enum). This makes the flag interactively
discoverable in the fset buffer and is the natural way to inspect the
surface area that an upcoming /theme command will be allowed to touch.

The themable flag of an option is now mirrored on struct t_fset_option,
exposed via hdata ("themable", integer) and infolist ("themable",
integer), and printed in the log.
2026-07-05 00:45:58 +02:00
Sébastien Helleu 106fe6ca7c core: update copyright dates 2026-03-08 10:37:15 +01: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
Aaron Jones f5038bccbc Fix function prototypes for list of arguments
At the moment, building WeeChat triggers several thousand -Wstrict-prototypes
diagnostics.  This is due to its source code using an empty argument list for
functions and function pointers that take no arguments, instead of explicitly
declaring that they take no arguments by using a void list.

This commit replaces all empty argument lists with a void list.

Note that Ruby's headers also suffer the same problem, which WeeChat can't
do anything to fix.  Thus, building WeeChat with the Ruby plugin enabled
will still issue approximately 30 such diagnostics.
2025-03-10 08:16:52 +01:00
Sébastien Helleu 547e2b934e core: update copyright dates 2025-02-01 23:13:18 +01:00
Sébastien Helleu 26630ada2d fset: add option -import in command /fset 2024-03-25 21:00:42 +01:00
Sébastien Helleu eecb2a997e core: update copyright dates 2024-01-01 22:29:58 +01:00
Sébastien Helleu 1d5433485c fset: add variable allowed_values in options, add two color options
New options:

- fset.color.allowed_values
- fset.color.allowed_values_selected
2023-07-08 16:50:42 +02:00
Sébastien Helleu 66cb9f6ea2 core: add option type "enum" (closes #1973)
The type "enum" replaces type "integer" when used with string values.

For compatibility, any option created with type "integer" and string values is
automatically created to "enum" on creation, with no error.
2023-07-08 13:28:40 +02:00
Sébastien Helleu 33bba784c3 core: update copyright dates 2023-01-01 14:54:35 +01:00
Sébastien Helleu c44b79dce7 core: update copyright dates 2022-01-17 18:41:06 +01:00
Sébastien Helleu efc7a588d6 core: update copyright dates 2021-01-02 21:34:16 +01:00
Sébastien Helleu feb6258910 core: update copyright dates 2020-01-04 10:41:26 +01:00
Sébastien Helleu baa598276c fset: fix slow refresh of fset buffer during /reload (closes #1313) 2019-02-22 21:33:39 +01:00
Sébastien Helleu 2b0057239b core: update copyright dates 2019-01-01 15:40:51 +01:00
Sébastien Helleu 4712d0bb06 core: use https for links to GNU GPL license 2018-11-29 23:16:07 +01:00
Sébastien Helleu ed4837b2f6 core: update copyright dates 2018-01-05 00:54:18 +01:00
Sébastien Helleu 9bad3f44db core: remove value for first #define in headers, add "PLUGIN" in plugin headers 2017-08-10 20:05:16 +02:00
Sébastien Helleu 093032bc8d fset: always use a timer to refresh buffer when options are changed 2017-07-02 12:51:09 +02:00
Sébastien Helleu 987ef9e454 fset: replace hashtable by a simple structure for max length of fields 2017-06-28 19:59:45 +02:00
Sébastien Helleu d8d753d332 fset: improve speed when marking/unmarking options, fix refresh of buffer title 2017-06-26 23:20:47 +02:00
Sébastien Helleu 0f8db0fa2e fset: add key/input to set new value for an option (alt-f,alt-n or input "n", command /fset -setnew) 2017-06-25 16:35:28 +02:00
Sébastien Helleu 70f71be108 fset: first move up one line before toggling mark with shift+up 2017-06-25 16:35:28 +02:00
Sébastien Helleu 01ce879433 fset: add marking/unmarking of options matching filter with input "m:" and "u:" 2017-06-25 16:35:28 +02:00
Sébastien Helleu f519499057 fset: add export of options 2017-06-25 16:35:28 +02:00
Sébastien Helleu fc1a699573 fset: fix refresh of options after changing marked options 2017-06-25 16:35:28 +02:00
Sébastien Helleu d71524c582 fset: add ${file}, ${section}, ${option}, add color options 2017-06-25 16:35:27 +02:00
Sébastien Helleu d5aa8530b7 fset: fix crash on unset of multiple options
Rename option fset.look.unmark_after_action to fset.look.auto_unmark,
allow input "$$" to unmark all options and refresh.
2017-06-25 16:35:27 +02:00
Sébastien Helleu 7336c93270 fset: add option fset.look.unmark_after_action 2017-06-25 16:35:27 +02:00
Sébastien Helleu b2373ffba7 fset: add mark on options to run an action on multiple options 2017-06-25 16:35:27 +02:00
Sébastien Helleu 3211a73599 fset: store type as enum, translate ${type}, add ${type_en}, ${type_short} and ${type_tiny} 2017-06-25 16:35:27 +02:00
Sébastien Helleu bf7135dd9d fset: add ${default_value_undef} and ${value_changed} 2017-06-25 16:35:27 +02:00
Sébastien Helleu 8c7b4282ae fset: hook command /set, add option fset.look.condition_catch_set 2017-06-25 16:35:27 +02:00
Sébastien Helleu 968ee87114 fset: set local variable "filter" in the fset buffer 2017-06-25 16:35:27 +02:00
Sébastien Helleu 2fac9d34f3 fset: add ${string_values}, add options fset.color.string_values and fset.color.string_values_selected 2017-06-25 16:35:27 +02:00
Sébastien Helleu 3515134b19 fset: add ${description}, add options fset.color.description and fset.color.description_selected 2017-06-25 16:35:27 +02:00
Sébastien Helleu 66124db856 fset: add ${min} and ${max}, add options fset.color.{max|min} and fset.color.{max|min}_selected 2017-06-25 16:35:27 +02:00
Sébastien Helleu 7b5b123365 fset: add different types of filters
Existing filter:

- by option name (part of name)

New filters:

- by configuration file ("f:xxx")
- by section name ("s:xxx")
- by options changed ("d:" or "d:xxx")
- by exact value ("==xxx")
- by value, format ("=xxx")
2017-06-25 16:35:27 +02:00
Sébastien Helleu 7b9b25988c fset: add support of parent options, add color for quotes around strings, fix auto size of columns 2017-06-25 16:35:27 +02:00
Sébastien Helleu 7f5e92a278 fset: add toggle/decrease/increase/reset/unset actions on selected line 2017-06-25 16:35:27 +02:00
Sébastien Helleu e66b3ffd57 fset: add colors for diff/undef values 2017-06-25 16:35:27 +02:00
Sébastien Helleu 2a5eb1564f fset: add fset (Fast Set) plugin skeleton (WIP) 2017-06-25 16:35:27 +02:00