about summary refs log tree commit diff stats
path: root/src/command/cmd_ac.c
Commit message (Collapse)AuthorAgeFilesLines
* Adapt to g_string_free glib 2.75.3 changeMichael Vetter2023-03-211-10/+2
| | | | | | | | | | | | 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.
* 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-181-2/+2
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* slightly improve `command_defs[]`Steffen Jaeckel2023-01-181-1/+1
| | | | | | | | | * 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>
* add `/strophe` command to modify libstrophe-specific settingsSteffen Jaeckel2023-01-181-0/+39
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* Update copyright yearMichael Vetter2023-01-101-1/+1
|
* 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-181-0/+250
| | | | | | | | | | | | 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
* add: autocompletion plugins argumentsViachaslau Khalikin2022-09-201-0/+6
| | | | | | support for "update" and "uninstall" Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* Add autocompletion for `/log level`Michael Vetter2022-06-221-0/+13
|
* Let user change log level while runningMichael Vetter2022-06-221-0/+1
| | | | | | | | | | | `/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
* Make mood display optionalMichael Vetter2022-06-221-0/+2
|
* Add basic qrcode functionsMichael Vetter2022-05-301-0/+1
|
* Add `/avatar set` command to publish avatarMarcoPolo-PasTonMolo2022-05-261-0/+6
| | | | | | | | 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
* Update copyright yearMichael Vetter2022-05-091-1/+1
|
* ox: remove /ox sendfile because its actually not implementedMichael Vetter2022-05-051-8/+0
|
* ox: show ox preferencesMichael Vetter2022-05-051-0/+1
|
* ox: Add /ox log commandMichael Vetter2022-05-051-0/+6
|
* Fix autocomplete for `/ox discover`.Martin Dosch2022-05-021-1/+1
|
* ox: add jid autocompletion for /ox requestMichael Vetter2022-05-021-0/+5
|
* Merge pull request #1697 from cockroach/feature/offline-muc-notificationsMichael Vetter2022-04-281-0/+11
|\ | | | | Add support for offline MUC notifications
| * Add support for offline MUC notificationsStefan Ott2022-04-231-0/+11
| |
* | Fix ox autocompletionMichael Vetter2022-04-281-3/+10
| | | | | | | | | | | | | | | | | | | | | | Sometimes this happened: `ox d<tab>` → `/ox request` `ox a<tab>` → `/ox request` `ox c<tab>` → `/ox keys` `ox s<tab>` → `/ox keys` `ox e<tab>` → `/ox keys` We didn't reset the ox_*_ac variables.
* | ox: group online autocompletion togetherMichael Vetter2022-04-281-10/+5
|/
* Add none option for /whoMarcoPolo-PasTonMolo2022-03-271-0/+1
| | | | | Fixes https://github.com/profanity-im/profanity/issues/1425 `/who none` now displays all users in an muc without an affiliation
* Add adhoc cmd autocompletionMichael Vetter2022-03-211-0/+19
| | | | | | | | | | Add tab completion for `/cmd`. Complete the `list` and `exec` subcommands. Didn't complete the `<jid>` part since I think it's usually used for components and etc. Things that might not be in the roster. Fix https://github.com/profanity-im/profanity/issues/1650
* Merge pull request #1644 from profanity-im/ox-polishMichael Vetter2022-03-211-21/+2
|\ | | | | Improve OX user experience
| * Remove strange block from ox autocompleteMichael Vetter2022-02-251-18/+0
| | | | | | | | | | | | Not sure what this should do. Can't see what kind of key we want to complete here. `/ox help` also doesn't list anything that needs a key.
| * Remove useless commentMichael Vetter2022-02-251-5/+0
| |
| * ox: add autocomplete for /ox announceMichael Vetter2022-02-241-0/+4
| |
* | Add `/subject editor` commandMichael Vetter2022-02-261-5/+2
|/ | | | | | | | Allow editing the MUC subject using external editor. Use `/subject editor`. Fix https://github.com/profanity-im/profanity/issues/1638
* command: rename /mood clean to /mood clearMichael Vetter2022-02-011-1/+1
| | | | As per suggestion of @mdosch.
* XEP-0107: User Mood - Clean moodStefan Kropp2022-01-301-1/+2
| | | | | | | | | | | | | | | | | | * Bugfix in mood_autocomplete (wrong parameter) * Implemented /mood clean ______________________________________ / Profanity! THE XMPP client with mood \ \ support! / -------------------------------------- \ \ .--. |o_o | |:_/ | // \ \ (| | ) /'\_ _/`\ \___)=(___/
* xep-0107: code reviewDebXWoody2021-12-061-7/+1
| | | | | | | | * Remarks in the Merge Request (ac_reset, help) * Defines in iq.c * Mood help and null check * Added additional information about tab key in CMD_DESC. * Added additional null check
* Add xep-0107: User Mood supportDebXWoody2021-12-061-0/+114
| | | | Implementation of XEP 0107 - User Mood
* Move declaration and definition of win_get_last_sent_message to the correct ↵MarcoPolo-PasTonMolo2021-10-221-30/+2
| | | | place
* Remove autocomplete for /correct-editorMarcoPolo-PasTonMolo2021-10-211-22/+12
| | | | | | We decided that it was better to remove autocomplete for this command, since adding it only introduced problems and the command can still function perfectly without autocomplete.
* Add /correct-editor commandMarcoPolo-PasTonMolo2021-10-071-1/+17
|
* Format code correctlyMichael Vetter2021-10-051-3/+3
|
* Remove `/python sourcepath`Michael Vetter2021-09-291-18/+0
| | | | | | | | | | | | | | | | I feel like this mostly is confusing people. Also don't see much value for it. To me it looks like a regular workflow is like: ``` /plugin install ~/src/profanity-plugins/my.py ``` The whole thing with sourcepath, install (which also loads without having that described anywhere), load etc is confusing. Also each plugin file that is present in `.local/share/profanity/plugins` will then be auto loaded. Which means after installation.
* Merge pull request #1576 from DebXWoody/autocomplete-untrustMichael Vetter2021-07-121-0/+27
|\ | | | | OMEMO autocomplete untrust
| * OMEMO autocomplete untrustDebXWoody2021-07-101-0/+27
| | | | | | | | Just a copy-past of autocomplete trust implementation.
* | Merge pull request #1566 from DebXWoody/bugfixing/oxMichael Vetter2021-07-011-4/+8
|\ \ | | | | | | Bugfixes for OX implementation
| * | Bugfixes for OX implementationDebXWoody2021-06-281-4/+8
| |/ | | | | | | | | | | | | * autocomplete for /ox discover * fixed help description * Implemented /ox char command * Validated KeyID length
* | Add option to only allow messages from jids in rosterMichael Vetter2021-07-011-1/+2
| | | | | | | | | | | | | | `/silence on` will throw away all messages (type: chat, normal) that come from jids that are not in the roster. Implement https://github.com/profanity-im/profanity/issues/955
* | Reorder /blocked commandsMichael Vetter2021-07-011-0/+2
|/ | | | | | | | Instead of `/blocked add [<jid>] [report-abuse|report-spam [<message>]` have: * /blocked add [<jid>] [<message>] (like before) * /blocked report-abuse [<jid>] [<message>] * /blocked report-spam [<jid>] [<message>]
* Add command to show single bookmark detailsMichael Vetter2021-06-091-0/+4
| | | | | | | `/bookmark list` lists all bookmarks with its details. `/bookmark list <jid>` shows the details of a single bookmark. Implement https://github.com/profanity-im/profanity/issues/1558
* Attention flag for chat windowsDebXWoody2021-05-291-0/+1
| | | | | | | User is able to toggle a flag for chat windows. This flag should be used to mark the window for "Attention". Use Ctrl+f to mark the window.