about summary refs log tree commit diff stats
path: root/src/tools/autocomplete.c
Commit message (Collapse)AuthorAgeFilesLines
* Format code correctlyMichael Vetter2021-10-051-1/+1
|
* Get rid of asprintf and _GNU_SOURCE defineMichael Vetter2021-03-301-3/+4
| | | | | | | _GNU_SOURCE was even in some files where it was not needed at all (http*). Let's replace asprintf() with g_strdup_printf().
* Add config.h in files were it was missingMichael Vetter2021-03-261-0/+2
| | | | Related to https://github.com/profanity-im/profanity/issues/1512
* autocomplete: remove duplicate code in search functionsMichael Vetter2021-03-111-54/+16
| | | | | | _search_next and _search_prev where exactly the same except taking the nex/prev from the list. Use one function with a direction argument.
* autocomplete: Use asprintf don't calculate length twiceMichael Vetter2021-03-111-4/+9
| | | | | | | | Through asprintf() we can get rid of malloc() + sprintf(). Also we don't need to calculate the strlen() again since asprintf() returns the bytes printes. Only non UTF-8 characters. But that was true before already.
* Remove duplicate code in autocomplete_param*Michael Vetter2021-03-111-29/+22
| | | | | autocomplete_param_with_func and -autocomplete_param_with_ac had lots of duplicate code.
* Declare counter var inside loopMichael Vetter2020-11-091-8/+4
| | | | We require c99/gnu99 anyways.
* Apply coding styleMichael Vetter2020-07-071-66/+67
|
* Revert "Apply coding style"Michael Vetter2020-07-071-68/+67
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-67/+68
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Fix memleak in autocomplete_remove_older_than_max*Michael Vetter2020-05-291-0/+1
|
* urlopen: get last URL firstMichael Vetter2020-05-291-7/+22
| | | | Fix https://github.com/profanity-im/profanity/issues/1348
* Only save max 20 urlsMichael Vetter2020-05-201-0/+12
|
* Add context to autocomplete_with_func and use it for omemo trust commandPaul Fariello2020-01-311-4/+4
| | | | Fix #1068
* Add vim modelineMichael Vetter2019-11-131-0/+1
|
* Free strings in autocomplete_param_no_with_funcMichael Vetter2019-10-061-0/+7
| | | | Regards https://github.com/profanity-im/profanity/issues/1019
* Always check for directory changes with sendfile auto completionWilliam Wennerström2019-07-201-2/+33
| | | | | | | | | | Instead of only checking for files when 'last_directory' has changed, do it every time. Add autocomplete_update function that updates the items while retaining last_found and search_str. Fixes #1099
* Update copyright to include 2019Michael Vetter2019-01-221-1/+1
|
* Update copyrightJames Booth2018-01-211-1/+1
|
* Allow previous autocompletion with shift tabJames Booth2017-04-011-34/+99
|
* Add missing headerJames Booth2017-03-251-0/+1
|
* Autocomplete accent and case insensitiveJames Booth2017-03-251-1/+14
|
* Update CopyrightJames Booth2017-01-281-1/+1
|
* Update GPL link in headersJames Booth2016-07-241-1/+1
|
* Store plugin completers by plugin nameJames Booth2016-07-051-0/+18
|
* Allow autocomplete for basic compelters when no inputJames Booth2016-05-241-3/+3
|
* Updated copyrightJames Booth2016-02-141-1/+1
|
* Applied coding style to src/tools/James Booth2015-10-251-11/+11
|
* Updated copyrightJames Booth2015-02-101-1/+1
|
* Simplified autocompleters and command historyJames Booth2015-01-161-32/+22
|
* Check for NULL inside autocomplete_freeJames Booth2014-09-261-2/+4
|
* Renamed autocomplete function to get listJames Booth2014-09-261-17/+25
|
* Added autocompletion for jid-multi form fieldsJames Booth2014-09-171-8/+10
|
* Added autocompletion for form text-multi valuesJames Booth2014-09-171-10/+12
|
* Added form testsJames Booth2014-09-141-4/+6
|
* Added license exemption for OpenSSL to source headersJames Booth2014-08-241-0/+12
|
* Finished chat room nick autocompleteJames Booth2014-07-151-1/+1
|
* Added quote param to autocomplete_param_with_acJames Booth2014-07-091-2/+2
|
* Added quote param to autocomplete_completeJames Booth2014-07-091-5/+5
|
* Added quote param to autocomplete searchesJames Booth2014-07-091-7/+7
|
* Fixed memleak in autocompleterJames Booth2014-06-151-0/+3
|
* Fixed potential segfaults on autocompleteJames Booth2014-05-081-0/+4
|
* Fixed cppcheck warningsJames Booth2014-04-261-12/+10
|
* Removed strcpy callsJames Booth2014-04-021-14/+16
|
* Updated copyrightJames Booth2014-03-091-1/+1
|
* Test message when removing autojoin for non existent bookmarkJames Booth2014-02-021-1/+1
|
* Don't allow /alias to overwrite standard commandJames Booth2014-01-251-0/+15
|
* Removed unused boolean result from autocomplete add and removeJames Booth2013-12-091-6/+6
|
* Use stack rather than heap for autcomplete_param_with_funcJames Booth2013-09-231-2/+1
| | | | issue #226
* refactred autocomplete_removeDmitry Podgorny2013-08-261-19/+10
|