about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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
|
* XEP-0453: Update supported xepsMichael Vetter2022-02-221-54/+55
| | | | | | | To the best of my knowledge. Information from: * https://profanity-im.github.io/xeps.html * changelog
* XEP-0453: DOAP usage in XMPPStefan Kropp2022-02-221-0/+405
| | | | | | | | Add a basic doap file. Information taken from https://profanity-im.github.io/xeps.html. For the most XEPs I added 'partial' as status. We should check the status and add a note.
* Set libstrophe log verbosityMichael Vetter2022-02-211-0/+1
| | | | | | | | | | | | | | | Set this to 0. We might want to have this configurable later. For now we fix the valgrind report: ``` Conditional jump or move depends on uninitialised value xmpp_debug_verbose() ``` Which will be fixed in libstrophe > 0.11.0 by commit https://github.com/strophe/libstrophe/commit/28f3ce19b803b3c2628c37545e3f5b88e7ea1a55
* Remove link to python bugMichael Vetter2022-02-181-1/+1
| | | | | | Since 5676159aa52a734a34bf231b400ae13860e1012d the python_CPPFLAGS isn't needed anymore. We can use python_CFLAGS. So let's remove the comment about https://bugs.python.org/issue15018.
* Merge pull request #1642 from jugendhacker/fix/851-python-cross-compileMichael Vetter2022-02-183-10/+9
|\ | | | | Fix python executed during configure
| * Fix python executed during configurej.r2022-02-183-10/+9
|/ | | | | | | | | | | | | | | Previously it relied on AX_PYTHON_DEVEL, which in turn executes python-config to get the build flags. However this does not work while cross compiling because we can't execute the python-config build for the target platform. To circumvent this problem the python build flags are now queried via pkgconfig, which has the drawback of not having some extra build flags, but they do not seem to be needed. I tested this patch with the termux build system and it build without their existing hack of injecting python after the configure step. I also tested non cross compile build on Arch Linux and it also still works. Fixes #851
* Fix typos in commentsMichael Vetter2022-02-182-2/+2
|
* Add unit tests section to CONTIBUTING.mdMichael Vetter2022-02-181-2/+6
| | | | And rename a header.