about summary refs log tree commit diff stats
path: root/src/config/preferences.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix reading/writing linked filesMichael Vetter2020-06-131-1/+1
| | | | | | "base" was not really base but the filename :-) Fix https://github.com/profanity-im/profanity/issues/1362
* Define POSIX macro to have strdupMichael Vetter2020-06-121-3/+3
| | | | | | | | | | | | | | https://github.com/profanity-im/profanity/commit/98c38dc6d6d29333c63f80327774f094610d8602 sets C99 as standard. strdup() is not part of C99. For now set `-D_POSIX_C_SOURCE=200809L` macro to have strdup() in C99. Using `gnu99` instead would be another option. We should take more care to use glib functions whenever possible. Regards https://github.com/profanity-im/profanity/issues/1357
* Make option to allow hiding windows with no messages in statusbarMichael Vetter2020-05-211-0/+4
| | | | | | | `statusbar.show.read` can be set to false in the config. `/statusbar show|hide read`. Implement https://github.com/profanity-im/profanity/issues/1285
* Make urlopen command configurableMichael Vetter2020-05-201-0/+4
|
* Remove unanimous MAM displayMichael Vetter2020-04-251-5/+0
| | | | | | For some time users could choose to have the old way "unanimous" where all the MUC history is just grey (or whatever was set). Now it is always just displayed like regular new incoming MUC text.
* Add hidden MAM setting and trigger MAM retrievel when opening new windowMichael Vetter2020-04-121-0/+3
| | | | | | | | | | | | Only when we start the conversation. Not yet when we get messaged and a new window is opened. Need to have sorting of messages in the window buffer then, I guess. Also MAM IQ should only be send one time in such a case. If MAM is enabled history from sql backend will not be shown. `mam` in profrc enables experimental MAM. Can change soon again. Don't rely on stuff in this stage ;)
* Add setting to not colorize own nick according to xep-0392Michael Vetter2020-03-251-0/+4
| | | | | | | | | | | | | | | | | | Some users might want there nick to always stay white (etc) for easier recognition. Now we can do `/color own off` to not generate the color based on xep-0392. The `me=` color (etc) from the theme will then be used. Once we run this command `theme_load()` is called again. And the theme looks totally wrong. We encountered this at other times already and I think it's nothing wrong with this new code here now but that there seems to be a missing closing attr for the color when drawing. Should be investigated seperately. Fix https://github.com/profanity-im/profanity/issues/1288
* titlebar: allow displaying MUC name and MUC jidMichael Vetter2020-03-241-5/+17
| | | | | | `/titlebar use name|jid` -> `/titlebar show|hide name|jid` Fix https://github.com/profanity-im/profanity/issues/1284
* Add slashguard featureMichael Vetter2020-03-181-0/+3
| | | | | New command `/slashguard` tries to protect against typing ` /quit` by not allowing a slash in the first 4 characters.
* Enable popular features by defaultMichael Vetter2020-03-171-0/+5
| | | | | | | Most clients have them enabled by default already for a smoother modern XMPP experience. Enable by default: allowing message corrections, sending of read receipts, enabling carbons, typing/chat states.
* xep-0084/avatar: add option to open avatar directlyMichael Vetter2020-03-101-0/+5
| | | | | | | | | | | Change: `/avatar me@somewhere.org` -> `/avatar get me@somewhere.org` New: `/avatar cmd feh` `/avatar open me@somewhere.org` Implement https://github.com/profanity-im/profanity/issues/1281
* Fix few memory leaksDmitry Podgorny2020-02-271-4/+17
|
* Improve setting encryption char error handlingMichael Vetter2020-02-211-7/+9
|
* pref: Use helper functions for setting/getting the encryption charMichael Vetter2020-02-211-38/+24
| | | | Dont duplicate code.
* Allow utf8 symbols as omemo/pgp/otr indicator charMichael Vetter2020-02-201-38/+34
| | | | Fix https://github.com/profanity-im/profanity/issues/1264
* Add option to color MUC history like regular messagesMichael Vetter2020-02-201-0/+5
| | | | | | | | | `/logging group color` has: * `unanimous` which will color it with one unanimous color. Like it was done always. * `regular` which colors it like regular incoming messages. Regards https://github.com/profanity-im/profanity/issues/1261
* Make /sendfile in PGP session configurableMichael Vetter2020-02-171-0/+3
| | | | | | `/pgp sendfile on` allows unencrypted file transfer in an PGP session. Regards https://github.com/profanity-im/profanity/pull/1270
* Make /sendfile in OTR session configurableMichael Vetter2020-02-171-0/+3
| | | | | | `/otr sendfile on` allows unencrypted file transfer in an OMEMO session. Regards https://github.com/profanity-im/profanity/pull/1270
* Make /sendfile in OMEMO session configurableMichael Vetter2020-02-171-0/+3
| | | | | | | `/omemo sendfile on` allows unencrypted file transfer in an OMEMO session. Regards https://github.com/profanity-im/profanity/pull/1270
* xep-0308: create setting to toggle lmcMichael Vetter2020-02-101-0/+3
| | | | and print settings if only `/correction` is run.
* xep-0308: set correction char in configMichael Vetter2020-02-101-0/+26
|
* Set PREF_COLOR_NICK to false by defaultMichael Vetter2020-02-061-1/+1
|
* Add default pref for PREF_COLOR_NICKPaul Fariello2020-02-051-0/+2
| | | | Fix a segfault if corresponding preference is not saved in config file.
* Add context to autocomplete_with_func and use it for omemo trust commandPaul Fariello2020-01-311-2/+2
| | | | Fix #1068
* Add comments to preferences.cMichael Vetter2020-01-291-2/+2
|
* xep-0092: add config option to set whether OS is revealedMichael Vetter2020-01-231-0/+4
| | | | | | Default is on. `revail.os=false` in the `connection` section of the config can disable it. A command to configure this will follow.
* Add option to notify about version requestMichael Vetter2020-01-231-0/+3
| | | | | | | | | | Cannot be configured for now. Can be set via `adv.notify.discoversion` in the `notification` section. Will notify about version requests via XEP-0092 and XEP-0232. Client version can still be seen via caps (capabilities). See `stanza_attach_caps()`.
* Add option to display MUC name or JID in titlebarMichael Vetter2020-01-231-0/+5
| | | | Add `/titlebar use [name|jid]`.
* Add `/roster room use` commandMichael Vetter2020-01-231-0/+5
| | | | | | | `/roster room use name` to use the name of the MUC in the roster list. `/roster room use jid` to use the jid of the MUC in the roster list. Display it only in case `/roster room by none` is set so far.
* Update my Copyright to 2020Michael Vetter2020-01-031-1/+1
|
* Add /occupants color commandMichael Vetter2019-12-191-0/+3
| | | | | | | | `/occupants color on|off` to enable or disable XEP-0392 also for the MUC occupants. Regards https://github.com/profanity-im/profanity/issues/1191
* Add /roster color commandMichael Vetter2019-12-191-0/+3
| | | | | | | `/roster color on|off` to enable or disable XEP-0392 also for the roster. Regards https://github.com/profanity-im/profanity/issues/1191
* XEP-0392: config: add "color.nick" bool optionAurelien Aptel2019-12-031-0/+3
| | | | | the option will control whether to enable coloration of usernames based on the hashing algorithm described in XEP-0392.
* Add vim modelineMichael Vetter2019-11-131-0/+1
|
* Fix preferences memory leakMichael Vetter2019-10-051-0/+4
| | | | | | Memory leak detected through unit tests. Regards https://github.com/profanity-im/profanity/issues/1019
* Merge pull request #874 from spiridoncha/masterMichael Vetter2019-10-051-0/+3
|\ | | | | Change /clear behaviour. Closes issue #855.
| * Makes /clear behavior configurable.Spiridonov Alexander2016-11-071-0/+3
| |
* | Introduce /reload commandMichael Vetter2019-10-041-18/+34
| | | | | | | | | | | | This command reloads the configuration file. Fix https://github.com/profanity-im/profanity/issues/627
* | Possibility to specify alternative config fileMichael Vetter2019-08-021-2/+7
| | | | | | | | Introduce `profanity -c` to specify an alternative config file.
* | Add 'save' command to save preferencesMichael Vetter2019-08-021-46/+6
| | | | | | | | | | | | | | Most applications have an 'apply changes' button. This makes testing easier too. Implement https://github.com/profanity-im/profanity/issues/1164
* | Add myself to copyrightMichael Vetter2019-06-171-0/+1
| | | | | | | | Like discussed with James.
* | Add occupants charMichael Vetter2019-05-021-0/+34
| | | | | | | | | | | | | | `/occupants char` now sets a character that is displayed before the nick in MUCs. Similar like `/roster char` is displaying a char for the roster. Regards #690
* | Add occupants wrap optionMichael Vetter2019-04-241-0/+3
| | | | | | | | | | | | | | Wrapping for the occupants panel like already exists for the roster panel. See `/occupants wrap on`. Regards https://github.com/boothj5/profanity/issues/690
* | Add occupants header charMichael Vetter2019-04-231-0/+34
| | | | | | | | | | | | | | | | `/occupants header char` now sets a character that is displayed before the role (moderator, visitor..) in a room. Similar to `/roster header char` is displaying a char for the roster. Regards https://github.com/boothj5/profanity/issues/690
* | Add /occupants indent commandMichael Vetter2019-04-181-0/+22
| | | | | | | | | | | | | | | | Roster has a `/roster contact indent` option. Now we have the same for occupants. So contacts in roster and in MUC can have configurable indentation. Regards https://github.com/boothj5/profanity/issues/690
* | Add OMEMO policyPaul Fariello2019-04-171-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | There is 3 policy: - manual: OMEMO session are only started manually - automatic: OMEMO session are only started if they have been started manually before - always: OMEMO session are always started unless they have been ended manually before Closes #1040 and fixes #1052
* | Add missing preferences for OMEMO logsPaul Fariello2019-04-101-0/+6
| |
* | Add OMEMO message encryption and decryptionPaul Fariello2019-04-101-0/+28
| |
* | Update copyright to include 2019Michael Vetter2019-01-221-1/+1
| |
* | Rename mucconf wins into conf winsPaul Fariello2018-09-051-5/+5
| | | | | | | | Configuration windows are now being used by both muc and cmd.