about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Fix AM_CFLAGS assignments (including libstrophe flags)Paul Fertser2022-03-271-2/+2
| | | | | | | | Autoconf can pre-populate this variable with essential parameters so it should be appended to rather than overridden. While at it, don't miss to append CFLAGS for libstrope which is needed if it's installed to a non-default location.
* Fix autoconf warning about AC_CANONICAL_TARGET orderingPaul Fertser2022-03-271-1/+2
| | | | | | | | AM_INIT_AUTOMAKE requires AC_ARG_PROGRAM so should go after AC_CANONICAL_TARGET for proper program name mangling. This fixes "AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET" warning as emitted by autoconf 2.69.
* Merge pull request #1655 from profanity-im/win-autocompleteMichael Vetter2022-03-241-0/+4
|\ | | | | Reset url autocompletion after open/save
| * Reset url autocompletion after open/saveMichael Vetter2022-03-241-0/+4
| | | | | | | | | | | | | | I guess we should reset the position after we ran `/url open|save`. So that next time `/url open <tab>` starts with the latest entry. Fix https://github.com/profanity-im/profanity/issues/1654
* | Merge pull request #1653 from MarcoPolo-PasTonMolo/fix/editor-crashMichael Vetter2022-03-241-1/+5
|\ \ | | | | | | Fix crash on /editor
| * | Fix crash on /editorMarcoPolo-PasTonMolo2022-03-241-1/+5
|/ /
* | Merge pull request #1652 from profanity-im/fix-1624Michael Vetter2022-03-2316-48/+263
|\ \ | |/ |/| Fix #1624
| * apply `tls.policy` to cURL callsSteffen Jaeckel2022-03-222-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | In case the user decides to ignore the validity-state of certificates we also have to configure libcurl accordingly. `tls.policy` can be set via ``` /account set <account> tls trust ``` Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * add profanity-specific CAfileSteffen Jaeckel2022-03-229-0/+226
| | | | | | | | | | | | | | | | The profanity-internal mechanism to allow connecting to a server isn't easily portable to cURL. Therefor introduce a profanity-specific CAfile which is managed individually and will be configured in libcurl calls. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * a tad more `const`-correctnessSteffen Jaeckel2022-03-227-10/+10
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * also store PEM in `TLSCertificate`Steffen Jaeckel2022-03-223-5/+12
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * simplify codeSteffen Jaeckel2022-03-211-33/+1
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | Merge pull request #1651 from MarcoPolo-PasTonMolo/feature/quote-autocompleteMichael Vetter2022-03-2110-1/+98
|\ \ | |/ |/| Add quote autocompletion for previous messages
| * Use funcs available in all glib versions to replace \n in quotesMarcoPolo-PasTonMolo2022-03-211-2/+7
| |
| * Add quote autocompletion for previous messagesMarcoPolo-PasTonMolo2022-03-2110-1/+93
|/ | | | | | | | | | Fixes https://github.com/profanity-im/profanity/issues/1649 Type `>` then press tab or shift tab to autocomplete previous messages, then type your reply and send message. Newlines are replaced with newline followed by `> `. A newline is added at the end so that the user can immediately type a message without manually adding a new line.
* 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-214-102/+97
|\ | | | | 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
| |
| * Fix memleak in cmd_exportMichael Vetter2022-02-241-0/+1
| |
| * ox: expand file and check for existance before trying to announceMichael Vetter2022-02-241-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Output before: ``` 11:00:00 - Annonuce OpenPGP Key for OX ~/test/testuser.pub.gpg ... ``` After: ``` 11:00:00 - Annonuce OpenPGP Key for OX /home/user/test/testuser.pub.gpg ... ``` Now we expand the path so that we can check for `~` properly. And test if the file is actually a normal file.
| * ox: remove else caseMichael Vetter2022-02-241-43/+44
| |
| * ox: add autocomplete for /ox announceMichael Vetter2022-02-241-0/+4
| |
| * ox: adjust formattingMichael Vetter2022-02-241-4/+0
| |
| * ox: standardize log outputMichael Vetter2022-02-241-33/+34
| |
* | Merge pull request #1646 from MarcoPolo-PasTonMolo/fix/nick-autocompleteMichael Vetter2022-03-211-12/+19
|\ \ | | | | | | Fix not autocompleting nicks with '/'
| * | Reverse priority for nick vs cmd autocompleteMarcoPolo-PasTonMolo2022-03-211-12/+15
| | |
| * | Fix not autocompleting nicks with '/'MarcoPolo-PasTonMolo2022-03-031-4/+8
| | | | | | | | | | | | | | | | | | | | | Remove check for '/' at the beginning of the line before autocompleting and make it fallback to command autocompletion if no nicks found. Fixes https://github.com/profanity-im/profanity/issues/1474
* | | Merge pull request #1648 from profanity-im/refactor-editorMichael Vetter2022-03-1414-265/+141
|\ \ \ | | | | | | | | Refactor editor & some other parts
| * | | re-factor `get_message_from_editor()`Steffen Jaeckel2022-03-141-62/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * use GLib functions to write&read compose file * trim trailing new-line characters from compose file Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * | | replace `GString` usage where a simple `strdup` worksSteffen Jaeckel2022-03-141-20/+6
| | | | | | | | | | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * | | refactor logfile-name creationSteffen Jaeckel2022-03-141-66/+10
| | | | | | | | | | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * | | use `g_mkdir_with_parents()` instead of home-baked solutionSteffen Jaeckel2022-03-145-45/+15
| | | | | | | | | | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * | | add `files_file_in_account_data_path()`Steffen Jaeckel2022-03-136-71/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As all parts of the code invoking the `files_get_account_data_path()` function did the same afterwards, a function has been added with the same behavior. 1. create path 2. `mkdir` of that path 3. return final path Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * | | prevent segfaultSteffen Jaeckel2022-03-132-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In case we're not connected yet and press Alt+c a segfault occurred since `conn.xmpp_conn` is dereferenced while it's still `NULL`. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * | | Alt+e is already bound, use Alt+cSteffen Jaeckel2022-03-131-1/+1
|/ / / | | | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | | Correct omemo xep number in doap fileMichael Vetter2022-03-071-1/+1
| | |
* | | Add stat.h to editorMichael Vetter2022-03-041-0/+1
| | | | | | | | | | | | | | | | | | Fix on openbsd: `src/tools/editor.c:55:36: error: 'S_IRWXU' undeclared (first use in this function)`
* | | Include errno header in editor.cMichael Vetter2022-03-041-1/+2
| | |
* | | Merge pull request #1645 from MarcoPolo-PasTonMolo/feature/hotkey-send-to-editorMichael Vetter2022-03-035-87/+208
|\ \ \ | |/ / |/| | Add hotkey for sending readline text to editor
| * | Move get_message_from_editor to appropriate file and change its keybindingMarcoPolo-PasTonMolo2022-03-036-88/+183
| | |
| * | Add hotkey for sending readline text to editorMarcoPolo-PasTonMolo2022-03-033-5/+31
| | |
* | | Add hint about shortcutsMichael Vetter2022-03-021-0/+4
|/ /
* | Merge pull request #1643 from profanity-im/feat/1638-editor-subjectMichael Vetter2022-02-263-5/+21
|\ \ | | | | | | Add `/subject editor` command
| * | Add `/subject editor` commandMichael Vetter2022-02-263-5/+21
| | | | | | | | | | | | | | | | | | | | | | | | Allow editing the MUC subject using external editor. Use `/subject editor`. Fix https://github.com/profanity-im/profanity/issues/1638
* | | Sort badges according to colorMichael Vetter2022-02-241-1/+1
| |/ |/|
* | Add build section to contributing.mdMichael Vetter2022-02-231-0/+5
| |
* | build: Use CPPFLAGS for obsdMichael Vetter2022-02-231-1/+1
|/ | | | | | | | | | | | | | | Fixing build failure detected by sr.ht for OpenBSD: ``` src/ui/inputwin.c: In function '_inp_rl_startup_hook': src/ui/inputwin.c:444:5: error: implicit declaration of function 'rl_bind_keyseq'; did you mean 'rl_bind_key'? [-Werror=implicit-function-declaration] 444 | rl_bind_keyseq("\\e1", _inp_rl_win_1_handler); | ^~~~~~~~~~~~~~ | rl_bind_key cc1: all warnings being treated as errors ``` Seems like both OSX and OpenBSD need CPPFLAGS here.
* Add doap to release guideMichael Vetter2022-02-221-0/+2
|
* XEP-0453: add WindowsMichael Vetter2022-02-221-0/+1
|