Sébastien Helleu
5edbeea338
core: fix unlikely memory leak in completion
2020-02-09 06:56:53 +01:00
Sébastien Helleu
feb6258910
core: update copyright dates
2020-01-04 10:41:26 +01:00
Sébastien Helleu
9178156354
api: add argument "strip_items" in function string_split
2019-06-15 20:47:14 +02:00
Sébastien Helleu
2b70d71aa1
core: replace argument "keep_eol" by "flags" in function string_split ( closes #1322 )
2019-03-10 18:29:16 +01:00
Sébastien Helleu
1a34f87163
core: do not automatically add a space when completing "nick:" at the beginning of command line
...
The space can be added in option weechat.completion.nick_completer
(this is now the default value of the option):
/set weechat.completion.nick_completer ": "
2019-01-26 14:54:57 +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
Nils Görs
b934e874d0
gui: fix uncleared completion item ( #1162 )
2018-07-21 12:50:39 +02:00
Sébastien Helleu
ed4837b2f6
core: update copyright dates
2018-01-05 00:54:18 +01:00
Sébastien Helleu
40749afced
core: add option weechat.completion.partial_completion_templates
...
This option is used to force partial completion on specific templates
(for now only "config_options").
2017-12-09 11:40:14 +01:00
Simmo Saan
55e7090cde
gui: remove completion hdata made unusable by arraylist usage
2017-06-03 15:59:12 +03:00
Sébastien Helleu
23ec19b8dd
core: remove useless condition
...
Variables base_word and nick can not be NULL here.
2017-05-21 14:36:41 +02:00
Sébastien Helleu
df00926d35
core: add option weechat.completion.nick_case_sensitive ( closes #981 )
2017-05-06 10:18:44 +02:00
Sébastien Helleu
0d059add9a
core: check that pointers received in arguments are not NULL in "free" functions
...
Functions:
- hdata_free
- infolist_var_free
- infolist_item_free
- infolist_free
- string_shared_free
- gui_window_objects_free
- gui_color_free
- gui_completion_free
- gui_filter_free
- gui_history_buffer_free
- gui_hotlist_free
- gui_key_free
- gui_lines_free
- gui_line_tags_free
- gui_line_free
- gui_window_tree_free
- gui_window_scroll_free
2017-03-25 14:01:50 +01:00
Sébastien Helleu
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01:00
Sébastien Helleu
cf6aca1619
core: add pointer in some callbacks ( closes #406 )
...
This pointer is the first argument received by callbacks, and the
existing argument "data" is now automatically freed by WeeChat when the
object containing the callback is removed.
With this new pointer, the linked list of callbacks in scripts has been
removed. This will improve speed of scripts (using a lot of hooks),
reduce memory used by scripts and reduce time to unload scripts.
Following functions are affected in the C API:
* exec_on_files
* config_new
* config_new_section
* config_new_option
* hook_command
* hook_command_run
* hook_timer
* hook_fd
* hook_process
* hook_process_hashtable
* hook_connect
* hook_print
* hook_signal
* hook_hsignal
* hook_config
* hook_completion
* hook_modifier
* hook_info
* hook_info_hashtable
* hook_infolist
* hook_hdata
* hook_focus
* unhook_all_plugin
* buffer_new
* bar_item_new
* upgrade_new
* upgrade_read
2016-03-21 18:11:21 +01:00
Sébastien Helleu
3330724574
core: update copyright dates
2016-01-01 11:09:53 +01:00
Sébastien Helleu
7572fec261
core: flush stdout/stderr after sending text directly on them (fix corrupted data sent to hook_process() callback) ( closes #442 )
2015-07-25 09:16:08 +02:00
Sébastien Helleu
4ecd8a505f
api: fix type of value returned by functions utf8_prev_char, utf8_next_char and utf8_add_offset
2015-07-04 08:39:55 +02:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
af0397fb87
core: add option weechat.completion.command_inline (task #12491 )
2014-11-09 12:29:41 +01:00
Sébastien Helleu
413f60ff30
core: fix memory leak in completion
2014-10-16 20:47:31 +02:00
Sébastien Helleu
7f4d9de255
core: use a sorted arraylist for partial completions
...
With a sorted list, the partial completion is about 50x faster
(like other completions).
2014-09-01 23:38:53 +02:00
Sébastien Helleu
f0aa0a21b2
core: optimize completion by using arraylists
...
With arraylist (vs weelist), the completion is about 50x faster.
It is visible on "/help [+tab]".
2014-09-01 11:51:04 +02:00
Sébastien Helleu
8c586eb49a
core: allow incomplete commands if unambiguous (task #5419 )
2014-08-23 12:13:11 +02:00
Sebastien Helleu
f907ea17d5
Merge branch 'trigger'
2014-02-21 15:36:14 +01:00
Sebastien Helleu
e782020b14
core: fix completion template used in command completion when first argument in template has pipes
2014-02-14 14:50:31 +01:00
Sebastien Helleu
437767c0ca
api: add integer return code for functions hook_{signal|hsignal}_send
2014-02-10 17:42:53 +01:00
Sebastien Helleu
01fb345fe0
core: fix compilation on Android (replace calls to rindex by strrchr) (bug #41420 , patch #8301 )
2014-02-02 09:00:46 +01:00
Sebastien Helleu
892aa79fb5
core: update copyright dates
2014-01-01 00:14:12 +01:00
Sebastien Helleu
c95f3d84d0
api: add property "completion_freeze" for function buffer_set: do not stop completion when command line is updated
2013-04-18 20:24:35 +02:00
Sebastien Helleu
3e1d811761
core: fix refresh of item "completion" (bug #38214 ) (patch from Nils Görs)
...
The item is now cleared after any action that is changing content of command
line and after switch of buffer.
2013-03-17 19:44:39 +01:00
Sebastien Helleu
149c77decd
core: fix typos in many comments and some strings
2013-03-17 12:55:20 +01:00
Sebastien Helleu
f97598b4aa
core: update copyright dates
2013-01-01 13:12:49 +01:00
Sebastien Helleu
fa1665ef81
core: search for a fallback template when a no template is matching command arguments
2012-12-20 19:23:52 +01:00
Sebastien Helleu
7eb5cc4b97
core: move comments with description of C file to top of files
2012-12-15 12:27:57 +01:00
Sebastien Helleu
7d34812f1c
core: reformat comments for functions
2012-12-13 18:51:44 +01:00
Sebastien Helleu
641de51bdb
api: allow creation of structure with hdata_update (allowed for hdata "history")
2012-12-08 23:54:07 +01:00
Sebastien Helleu
df80aa5fc9
api: allow update for some variables of hdata, add new functions hdata_update and hdata_set
2012-08-27 09:47:46 +02:00
Sebastien Helleu
eab0110732
core: add support of arrays in hdata variables
2012-07-20 18:12:07 +02:00
Sebastien Helleu
e6736b544e
core: do not auto add space after nick completer if option weechat.completion.nick_add_space is off
2012-02-01 17:19:04 +01:00
Sebastien Helleu
47e4a03be6
core: update copyright dates
2012-01-08 18:59:50 +01:00
Sebastien Helleu
c7a1a01d8f
core: add new option weechat.completion.base_word_until_cursor: allow completion in middle of words (enabled by default) (task #9771 )
2011-11-12 16:09:14 +01:00
Sebastien Helleu
dfdf42e27b
core: remove unneeded whitespace
2011-10-26 20:37:03 +02:00
Sebastien Helleu
e0781f0390
core: add mouse support (task #5435 ), free cursor movement, hook_focus, fix bugs with key "^" (bug #32072 , bug #21381 ), fix bugs with bar windows, completion and /buffer
...
New features and bugs fixed:
- mouse support: new command /mouse, new option weechat.look.mouse, new key context "mouse"
- free movement of cursor: new command /cursor, new key context "cursor"
- new hook_focus (used by cursor and mouse)
- info "cursor_mode"
- bugs fixed with key "^"
- allow plugin name in /buffer name
- fix bugs with bar windows: do not create bar windows for hidden bars
- fix completion bug when two words for completion are equal but with different case
- automatic scroll direction in /bar scroll (x/y is now optional)
2011-07-26 18:50:29 +02:00
Sebastien Helleu
1f027dbeb1
core: fix completion for command arguments when same command exists in many plugins (bug #33753 )
2011-07-12 11:20:28 +02:00
Sebastien Helleu
19bc95b961
core: many improvements on hdata
...
New features:
- add optional hdata name for variables in hdata
- add plugin API functions: hdata_get_var_hdata
- use hashtable to store hdata (created by WeeChat and plugins)
- free hdata and infolists created by plugin on plugin unload
- free all hdata on exit
- add "free" option to command /debug hdata
- remove hdata for hooks
2011-06-26 18:15:42 +02:00
Sebastien Helleu
c8b2a6a084
core: add "hdata" (direct access to WeeChat/plugin data)
2011-06-13 12:32:27 +02:00
Sebastien Helleu
adae98e94d
Fix bug with repeat of last completion ("%*"), which failed when many templates are used in completion
2011-03-10 17:38:18 +01:00
Sebastien Helleu
d24f6e9e17
Update copyright dates
2011-01-01 18:06:29 +01:00