about summary refs log tree commit diff stats
path: root/src/command/cmd_defs.c
Commit message (Collapse)AuthorAgeFilesLines
* /executable async on|offDaniel Santos2023-07-011-4/+8
| | | | | | | | | | | | | | * rename call_external() to call_external_async(). * add call_external_fork(). This function makes all executable calls to be forked and synchronous. So that running profanity inside a TTY, we can set all executables to be TTY programs (fbi, mpv, w3m, emacs eww, etc.), making possible to open urls or see images inside the TTY. * add '/executable async' command. * make call_external() use either call_external_async() or call_external_fork(), according to the '/executable async' configuration. Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
* Profani-tty has rebornDaniel Santos2023-07-011-29/+29
|
* Merge pull request #1842 from H3rnand3zzz/feature/plugins-downloadMichael Vetter2023-06-061-5/+6
|\ | | | | New Feature: Plugins Download
| * Add url support (downloading) to `/plugins install`John Hernandez2023-05-161-5/+6
| | | | | | | | Additional changes include code refactoring.
* | Expand `/url` descriptionMichael Vetter2023-05-311-2/+2
| |
* | Make it possible to reset editor to defaultMichael Vetter2023-05-101-0/+2
| | | | | | | | | | All the other commands (avatar, vcard_photo, urlsave, urlopen) have the ability to reset to default already.
* | Align avatar behaviour with urlopenMichael Vetter2023-05-101-3/+5
|/ | | | | | `/executable avatar` now also uses cmdtemplate and parse %p. It seems to me that the `/avatar` command was actually completely broken on master.
* Add ability to disable avatar publishingIsaacM882023-05-021-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "/avatar disable" to comply with point "3.5 Publisher Disables Avatar Publishing" in XEP-0084. src/command/cmd_defs.c:2416 Add "disable" argument. Reword the "/avatar" command description so it flows better. src/command/cmd_ac.c:1101 Add "disable" to the "/avatar" autocomplete dictionary. src/command/cmd_funcs.c:9277 Split "/avatar" commands into two groups with an if statement; those with a parameter and those without. "cons_bad_cmd_usage()" is in both groups, which is messy. "disable" has similar logic to "set", but it includes a failure message. src/xmpp/avatar.c:152 "avatar_publishing_disable()" uses the same logic to publish metadata as in "avatar_set()". src/xmpp/avatar.c:238 Add a message to inform users when they do not receive an avatar after using "/avatar get" and "/avatar open". In case of a failure, the user will be subscribed to future avatar updates as long as they continue to use their current instance of profanity. Adding "caps_remove_feature()" after "cons_show()" will unsubscribe the user from avatar updates and prevent the user from downloading an avatar unexpectedly hours later without issuing an "/avatar" command. src/xmpp/stanza.c:2698 The new "disable" function follows the same logic as "stanza_create_avatar_metadata_publish_iq()".
* Add sessions_alarmJohn Hernandez2023-04-181-2/+6
| | | | | | | | | Introduce new feature: sessions_alarm. Added new account setting: max_connections. On exceeding this number, user will get an alert. If number is less than 1, no alert will happen. Tests altered to fit new feature.
* Add nickname support for /roster removeJohn Hernandez2023-04-131-1/+1
| | | | | | Add support of name/nickname instead of only JID for `/roster remove` command. Add tests for it as well.
* Add limitation info about /statusbar chat user|jidMichael Vetter2023-04-101-1/+1
| | | | | | | | | | | | | | | | | | While testing https://github.com/profanity-im/profanity/pull/1817 we found that: ``` /statusbar show name (I have this off by default /msg someone where I chose someone in my roster that has a nick assigned /statusbar chat jid ``` Will only take effect upon creation or redraw of that tab. Reason is that we do this in create_tab to limit building this dynamically. Let's leave it like it is but add a note to users. Not worth build that string all the time.
* Improve titlebar flexibilityJohn Hernandez2023-04-101-2/+2
| | | | | | | Before this change, only nickname or JID (if no nickname set) is shown in the titlebar. Change allows to alter nickname/JID preference using already implemented /titlebar show jid|name setting. If both are set to "show", then it is displayed in "nickname <JID>" format.
* Rewrite description for clientidMichael Vetter2023-04-091-1/+1
|
* Merge pull request #1815 from H3rnand3zzz/feature/the-client-switcherMichael Vetter2023-04-091-0/+5
|\ | | | | Feature: Allow setting client identification name/version manually
| * Allow setting client identification name/version manuallyJohn Hernandez2023-04-091-0/+5
| | | | | | | | | | | | | | | | Add changes allowing user to switch client name and version. Useful for enhancing user privacy. Minor cleanup.
* | add `/statusbar tabmode actlist`Steffen Jaeckel2023-04-081-0/+3
|/ | | | | | | | | | The existing way how active tabs are displayed didn't allow showing more than 10 tabs. This patch adds a mode where the statusbar shows a comma-separated list of tabs which were active since the last time viewed. This view is inspired by how `irssi` shows the active tabs, therefore it is also called `actlist`. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* Fix typosMichael Vetter2023-04-031-1/+1
|
* 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-211-4/+1
| | | | | | | | | | | | 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.
* cmd: Update MAM helpMichael Vetter2023-02-151-2/+2
|
* add `now` option to `/reconnect` commandSteffen Jaeckel2023-01-181-3/+5
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* slightly improve `command_defs[]`Steffen Jaeckel2023-01-181-455/+263
| | | | | | | | | * 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-181-4/+8
| | | | | | | | | | | * 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-181-0/+19
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* Update copyright yearMichael Vetter2023-01-101-1/+1
|
* Add vCard supportMarouane L2022-10-181-5/+131
| | | | | | | | | | | | 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 typo which catched by codespellViachaslau Khalikin2022-09-191-1/+1
|
* Print unloaded plugins which already installedViachaslau Khalikin2022-09-191-1/+1
| | | | Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* 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-221-2/+4
| | | | | | | | | | | `/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-221-1/+1
|
* Make mood display optionalMichael Vetter2022-06-221-0/+2
|
* Add command help for omemo qrcodeMichael Vetter2022-05-301-2/+4
|
* Add basic qrcode functionsMichael Vetter2022-05-301-1/+2
|
* Merge pull request #1714 from MarcoPolo-PasTonMolo/feature/avatar-setMichael Vetter2022-05-301-0/+4
|\ | | | | Add `/avatar set` command to publish avatar
| * Final touches for `/avatar set`Michael Vetter2022-05-271-1/+1
| |
| * Add `/avatar set` command to publish avatarMarcoPolo-PasTonMolo2022-05-261-0/+4
| | | | | | | | | | | | | | | | 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-091-1/+1
|
* 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-051-3/+1
|
* ox: Add /ox log commandMichael Vetter2022-05-051-1/+2
|
* Improve ox command helpMichael Vetter2022-05-041-2/+3
| | | | | Mention new man page. Correct the usage of /ox request.
* Merge branch 'master' into add_stamp_settingsMichael Vetter2022-04-281-1/+4
|\
| * Add support for offline MUC notificationsStefan Ott2022-04-231-0/+3
| |
| * fix `account set theme` helpSteffen Jaeckel2022-04-011-1/+1
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | Rewrite stamp helpMichael Vetter2022-04-281-12/+10
| |
* | add /stamp commandArtjom Vejsel2022-04-021-0/+24
|/ | | | command allow override standard stamps of incoming and outgoing messages
* Add none option for /whoMarcoPolo-PasTonMolo2022-03-271-2/+2
| | | | | Fixes https://github.com/profanity-im/profanity/issues/1425 `/who none` now displays all users in an muc without an affiliation