about summary refs log tree commit diff stats
path: root/src/command
Commit message (Collapse)AuthorAgeFilesLines
* Add autocomplete for the /reconnect commandMarcoPolo-PasTonMolo2023-04-021-0/+16
| | | | | After typing `/reconnect ` and pressing tab nothing appeared where in reality, it should have been autocompleted to `/reconnect now`
* Add editor executable to CMD_SYNDaniel Santos2023-03-311-0/+1
| | | | | | * Add missing text of how to set editor in CMD_SYN Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* Editor executable support flagsDaniel Santos2023-03-301-1/+1
| | | | | | | | * Make editor executable into a string to be able to support (multiple) flags. * Change /help executable to suit this new feature Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* Adapt to g_string_free glib 2.75.3 changeMichael Vetter2023-03-213-27/+5
| | | | | | | | | | | | glib 2.75.3 changes warning behaviour of `g_string_free()`. See: * https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3219 * https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3226 Use this opportunity to replace the use of GString with `g_strdup_printf()` where possible. Otherwise correctly take the return value of `g_string_free()` which is nicer anyways.
* Fix duplicate download IDs.IsaacM882023-03-091-5/+13
| | | | | | | | | | Fixes https://github.com/profanity-im/profanity/issues/1794 Explanation The problem is the download's identifier. Downloads are given an ID so they can be referenced later when their progress changes. Currently, the download's ID is the download's URL. When you download the same file twice, you have two downloads with the same ID. Download progress updates are shown on the first of both downloads with the same ID. Solution Change the download's ID from its URL to a random number. A random ID is generated when get_random_string() is called from cmd_funcs.c. Several other functions are updated to cope with the new ID format.
* cmd: Update MAM helpMichael Vetter2023-02-151-2/+2
|
* introduce `auto_gcharv`Steffen Jaeckel2023-01-191-71/+13
| | | | | | This also fixes memory leaks in `_omemo_autocomplete()`. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* fix more memory leaksSteffen Jaeckel2023-01-182-7/+9
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* add `now` option to `/reconnect` commandSteffen Jaeckel2023-01-182-9/+13
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* slightly improve `command_defs[]`Steffen Jaeckel2023-01-185-463/+274
| | | | | | | | | * make the struct `const` * use designated initializers * remove `CMD_NOxyz` macros * fix function-pointer correctness of `sub_func[]` Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* minor changesSteffen Jaeckel2023-01-182-24/+20
| | | | | | | | | | | * fix typo * less code duplication * less `GString` usage * more `auto_gchar` usage * document connecting to servers supporting SASL ANONYMOUS * ignore valgrind output Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* add `/strophe` command to modify libstrophe-specific settingsSteffen Jaeckel2023-01-184-0/+94
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* Update copyright yearMichael Vetter2023-01-105-5/+5
|
* Make `/url save` autocomplete filenames after a urlMarcoPolo-PasTonMolo2022-12-271-1/+15
| | | | | | | | | | Previously after the url if you pressed tab, even if you typed out a filepath, profanity would erase that and cycle through url autocomplete results. This patch solves that and autocompletes filepaths after the url. Fixes https://github.com/profanity-im/profanity/issues/1783
* Add vCard supportMarouane L2022-10-184-5/+1380
| | | | | | | | | | | | Only nicknames, photos, birthdays, addresses, telephone numbers, emails, JIDs, titles, roles, notes, and URLs are supported Due to the synopsis array not having enough space, `/vcard photo open-self` and `/vcard photo save-self` are not documented properly in the synopsis section of the `/vcard` command, but they are documented in the arguments section Fixed memory leak in vcard autocomplete (thanks to debXwoody)
* Fix autocompletion for lastactivityStefan Kropp2022-10-171-5/+13
| | | | | | | | | | `/lastactivity` used autocompletion for /status instead. There was no get/set autocompletion thus user had to write `/lastactivity get` to get the proper results. Original fix by Stefan at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021028 Proper commit message and adapted patch by jubalh. Co-authored-by: jubalh@iodoru.org
* Improve /msg and /win autocompletionMichael Vetter2022-10-171-1/+15
| | | | Let /win and /msg both autocomplete roster nickname and actual barejid
* Spawn external programs asynchronouslyMarouane L2022-10-121-1/+1
| | | | | | | | Drawback is that we can't check the exitcode anymore. But we were unsure why/when we need this, see: https://github.com/profanity-im/profanity/pull/1760/files#r980868708 Fixes https://github.com/profanity-im/profanity/issues/1759
* fix: print when no plugins installedViachaslau Khalikin2022-09-201-12/+15
| | | | Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* add: autocompletion plugins argumentsViachaslau Khalikin2022-09-201-0/+6
| | | | | | support for "update" and "uninstall" Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* fix: filtering of the available global pluginsViachaslau Khalikin2022-09-201-2/+4
| | | | | | | For command /plugins : Don't print files that do not correspond to the plugins design Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* minor: using cons_bad_cmd_usage() instead of the manual handlingViachaslau Khalikin2022-09-191-3/+3
| | | | Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* Fix typo which catched by codespellViachaslau Khalikin2022-09-191-1/+1
|
* Print unloaded plugins which already installedViachaslau Khalikin2022-09-192-3/+14
| | | | Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* Fix handle cmd_plugins_uninstall without argsViachaslau Khalikin2022-09-191-1/+2
| | | | Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* Fix /autoaway command logicNetboy32022-07-281-4/+2
| | | | | | | | | | | | Two issues were fixed in the parser logic: * A call to cons_bad_cmd_usage() was placed at the end of the "time" parser section that blocked reachability to both "message" and "check" parser sections. This caused "/autoaway message ..." and "/autoaway check ..." to always fail with "Invalid usage". This issue was introduced in commit 3c1e4ba. * "/autoaway message xa" with no message argument returns message set to (null). This should be fixed the same way as "/autoaway message away" was fixed in commit 3c1e4ba.
* Split ox functions from gpg.c to ox.cMichael Vetter2022-06-291-0/+1
|
* Add autocompletion for `/log level`Michael Vetter2022-06-221-0/+13
|
* Correct default log maxsize in helpMichael Vetter2022-06-221-1/+1
| | | | This was changed in c4d7f1c29 from 1MB to 10MB.
* Let user change log level while runningMichael Vetter2022-06-223-4/+17
| | | | | | | | | | | `/log level INFO|DEBUG|WARN|ERROR` is now available. Looks like this solves a TODO (see removed comment in source) from 2013 :-) Works only with default log file. Not with user provided log file during start up via the -f parameter. Fix https://github.com/profanity-im/profanity/issues/1627
* Display mood preferencesMichael Vetter2022-06-222-2/+2
|
* Make mood display optionalMichael Vetter2022-06-223-1/+13
|
* Don't forget encryption status for OX and PGP.MarcoPolo-PasTonMolo2022-06-171-0/+4
| | | | | | | | Use a pgp.enabled and ox.enabled array the same way that omemo.enabled is used. Fixes https://github.com/profanity-im/profanity/issues/1694 Fixes https://github.com/profanity-im/profanity/issues/733
* Use our omemo sid/fingerprint in qr codeMichael Vetter2022-05-311-2/+4
| | | | | | | Current clients sid/fingerprint will be shown in following format: `xmpp:<user@server>?omemo-sid-<numerical-sid>=<omemo-fingerprint-hex-string>` Fix https://github.com/profanity-im/profanity/issues/1320
* Add command help for omemo qrcodeMichael Vetter2022-05-301-2/+4
|
* Reverse QR code colors and add paddingswirl2022-05-301-1/+0
| | | | | | | All QR scanners should be able to recognize this, as it is now the correct color with some padding to prevent blending. Signed-off-by: swirl <swurl@swurl.xyz>
* implement working OMEMO QR codeswirl2022-05-301-1/+13
| | | | | | | | TODO: We need to find a way to switch the colors of the QR code, so that more QR readers can detect it, without "blending" the edges of the QR code with the surrounding terminal window. Signed-off-by: swirl <swurl@swurl.xyz>
* Add basic qrcode functionsMichael Vetter2022-05-304-1/+16
|
* Merge pull request #1714 from MarcoPolo-PasTonMolo/feature/avatar-setMichael Vetter2022-05-303-1/+19
|\ | | | | Add `/avatar set` command to publish avatar
| * Final touches for `/avatar set`Michael Vetter2022-05-272-2/+2
| |
| * Add checks for whether gdk-pixbuf exists before using avatar setMarcoPolo-PasTonMolo2022-05-261-0/+4
| |
| * Add `/avatar set` command to publish avatarMarcoPolo-PasTonMolo2022-05-263-1/+15
| | | | | | | | | | | | | | | | Use `/avatar set <path>` where <path> is an image file to upload a new avatar for the current user. When the avatar is too big it gets scaled down. Scaling code copied from dino. Fixes https://github.com/profanity-im/profanity/issues/1687
* | Fix description of moodMichael Vetter2022-05-271-1/+1
|/
* Update copyright yearMichael Vetter2022-05-095-5/+5
|
* Log encrypted messages by default to chatlogMichael Vetter2022-05-091-3/+3
| | | | | In case chatlogs are available lets log everything by default. Seems like most users expect this behaviour and I agree.
* ox: remove /ox sendfile because its actually not implementedMichael Vetter2022-05-052-11/+1
|
* ox: show ox preferencesMichael Vetter2022-05-052-0/+5
|
* ox: Add /ox log commandMichael Vetter2022-05-054-1/+34
|
* Improve ox command helpMichael Vetter2022-05-041-2/+3
| | | | | Mention new man page. Correct the usage of /ox request.
* ox: print message when `/ox end` is run but not startedMichael Vetter2022-05-041-4/+8
|