about summary refs log tree commit diff stats
path: root/src/tools
Commit message (Collapse)AuthorAgeFilesLines
* Remove cmd_tiny, empty files and link nonce with IVWilliam Wennerström2020-12-073-2/+2
|
* Add tests for format_call_external_argvWilliam Wennerström2020-12-071-2/+2
|
* Fix bad order of parameters for url saveWilliam Wennerström2020-12-071-1/+7
|
* Rework url to filenameWilliam Wennerström2020-12-062-8/+6
|
* Move unique_filename_from_url functions to commonWilliam Wennerström2020-12-042-21/+0
|
* Refactor for threaded external executable for built-in download methodsWilliam Wennerström2020-12-035-2/+45
|
* Fix stubs and move some tests to http_commonWilliam Wennerström2020-11-162-18/+12
|
* Switch to g_strerrorWilliam Wennerström2020-11-162-23/+19
|
* Move common http tool code to http_commonWilliam Wennerström2020-11-166-53/+154
|
* Add I/O error handling and use filenames instead of file descriptorsWilliam Wennerström2020-11-164-51/+87
|
* Refactor OMEMO download into AESGCMDownload toolWilliam Wennerström2020-11-166-2/+221
|
* Run make format on rebaseWilliam Wennerström2020-11-164-57/+64
|
* Remove unsafe Conent-Disposition inferringWilliam Wennerström2020-11-162-119/+19
|
* Infer filename from content-disposition or URLWilliam Wennerström2020-11-162-7/+123
| | | | | The Content-Disposition inferring is probably a bad idea security wise, so I am going to remove it.
* Add http_download toolWilliam Wennerström2020-11-163-1/+287
|
* Add guards for OMEMOWilliam Wennerström2020-11-161-1/+3
|
* Move setup for AESGCM to omemo/cryptoWilliam Wennerström2020-11-161-0/+2
|
* Reformat HTTP get URL to AESGCM schemeWilliam Wennerström2020-11-162-30/+69
|
* Refactor to use file streamWilliam Wennerström2020-11-162-24/+17
|
* Initial /sendfile OMEMO encryptionWilliam Wennerström2020-11-162-15/+15
|
* Declare counter var inside loopMichael Vetter2020-11-092-19/+10
| | | | We require c99/gnu99 anyways.
* parser.c: Use glibMichael Vetter2020-07-231-4/+4
| | | | | | | | We use malloc() to allcoate memory for the arguments. But later on in cmd_funcs.c we use g_strfreev() to free it. Let's use g_malloc() to allocate instead. Second change is to use g_malloc() and g_free() for a gchar.
* Fix /correct quotation marks usageMichael Vetter2020-07-232-0/+28
| | | | | | | Add new `parse_args_as_one()` function to just use everything after the command as the argument. Fix https://github.com/profanity-im/profanity/issues/1404
* parser.c: Use helper function to reduce duplicate codeMichael Vetter2020-07-211-143/+50
| | | | | | | | | | `parse_args()` and `parse_args_with_freetext()` shared a lot of common code. Let's have a helper function `_parse_args_helper()` for that. The `with_freetext` parameter will make it behave like `parse_args_with_freetext()`. In preparation for https://github.com/profanity-im/profanity/issues/1404
* parse_args(): Call g_free() onceMichael Vetter2020-07-211-3/+2
|
* Use parse_args_with_freetext() for `/correct`Michael Vetter2020-07-201-2/+2
| | | | | | | | | | | | | This commit partly reverts 8f37afcd37ad8663ca36c13ca7fbc4a431119f73 Which was using a wrong approach to achieve this. It changed parse_args() to have a -1 for infinite parameters. But actually parse_args_with_freetext() should have been used exactly for this behaviour. Discovered when checking for https://github.com/profanity-im/profanity/issues/1404
* bookmark_ignore.c: use gchar instead of charMichael Vetter2020-07-201-7/+7
|
* Fix typo in commentMichael Vetter2020-07-151-1/+1
|
* Remove `/tiny` commandMichael Vetter2020-07-102-144/+0
| | | | | | boothj5 gave his okay too. Fix https://github.com/profanity-im/profanity/issues/1370
* Apply coding styleMichael Vetter2020-07-0712-225/+227
|
* Revert "Apply coding style"Michael Vetter2020-07-0712-240/+238
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-0712-238/+240
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Remove prefs_free_string()Michael Vetter2020-07-021-1/+1
| | | | | It just does a free. Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef
* Add missed string.hDmitry Podgorny2020-06-241-0/+1
| | | | strdup(3) requires string.h
* Fix memleak in autocomplete_remove_older_than_max*Michael Vetter2020-05-291-0/+1
|
* urlopen: get last URL firstMichael Vetter2020-05-292-8/+24
| | | | Fix https://github.com/profanity-im/profanity/issues/1348
* Save bookmark ignore listMichael Vetter2020-05-251-0/+18
|
* Add bookmark ignore add|removeMichael Vetter2020-05-242-0/+14
| | | | Regards https://github.com/profanity-im/profanity/issues/1115
* List ignored bookmarksMichael Vetter2020-05-242-0/+7
| | | | | | `/bookmarl ignore` lists the ignored bookmarks. Regards https://github.com/profanity-im/profanity/issues/1115
* Add bookmark ignore functionality for multiple accountsMichael Vetter2020-05-242-23/+26
| | | | | | | | | | | | | ``` cat ~/.local/share/profanity/bookmark_ignore [jubalh@iodoru.org] profanity@rooms.dismail.de=true [testuser@domain.org] testr@rooms.domain.org=true ``` Regards https://github.com/profanity-im/profanity/issues/1115
* PoC for bookmark ignoreMichael Vetter2020-05-242-0/+127
| | | | | | | | | | ``` ~/.local/share/profanity % cat bookmark_ignore [ignore] profanity@rooms.dismail.de= ``` Regards https://github.com/profanity-im/profanity/issues/1115
* Only save max 20 urlsMichael Vetter2020-05-202-0/+14
|
* Don't expose upload_processesMichael Vetter2020-04-172-2/+24
| | | | | | | | That's actually not good practise. Realized this when checking for multiple symbol definition in issue mentioned below. Regards https://github.com/profanity-im/profanity/issues/1314
* xep-0308: Make /correct work without quotation marksMichael Vetter2020-02-141-2/+2
| | | | | | Now we can specify an unlimited amount of arguments for commands. Maybe this is also helpful for other commands that use quotation marks so far.
* Add context to autocomplete_with_func and use it for omemo trust commandPaul Fariello2020-01-312-7/+7
| | | | Fix #1068
* Update my Copyright to 2020Michael Vetter2020-01-032-2/+2
|
* Add vim modelineMichael Vetter2019-11-1310-0/+10
|
* Dont use clipboard_init yetMichael Vetter2019-10-292-1/+4
| | | | | | For now we initialize gtk in tray_init(). Should maybe use a general function and check in tray_init and clipboard_init whether gtk was already initialized.
* Add clipboard featureMichael Vetter2019-10-292-0/+108
| | | | | Use GTK to take the text from the clipboard. Add `/paste` command which pastes this text now to console window.
* Free strings in autocomplete_param_no_with_funcMichael Vetter2019-10-061-0/+7
| | | | Regards https://github.com/profanity-im/profanity/issues/1019