about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Add Alt/Ctrl-arrows combinations for GNU ScreenPaul Fertser2022-03-301-0/+3
| | | | | | GNU Screen terminal emulator is modelled after VT100, its key bindings for "application mode" (which profanity enables on startup) can be seen with this: info screen "Input Translation".
* Merge pull request #1666 from paulfertser/man-page-improvementsMichael Vetter2022-03-301-5/+27
|\ | | | | Man page improvements
| * Improve manpage formatting a bitPaul Fertser2022-03-301-3/+8
| |
| * Add all missing key bindings to man pagePaul Fertser2022-03-301-2/+19
|/
* Merge pull request #1665 from profanity-im/moar-cleanupMichael Vetter2022-03-307-179/+137
|\ | | | | More cleanup
| * fix installation of manpagesSteffen Jaeckel2022-03-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | fixup of 46b9428d92e86612fafc198bb3575acdf6167649 [0] writes something about "... use ‘man*section*_MANS’ over ‘man_MANS’ ..." in the context of "fast installation", so I tried that and it worked. TBH I don't really understand why this fixes the problem. [0] https://www.gnu.org/software/automake/manual/html_node/Man-Pages.html Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * update gitignoreSteffen Jaeckel2022-03-301-0/+5
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * add CI job to check coding styleSteffen Jaeckel2022-03-301-0/+23
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * run `make format`Steffen Jaeckel2022-03-302-3/+4
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * add `_string_matches_one_of()` helper functionSteffen Jaeckel2022-03-301-21/+39
| | | | | | | | | | | | ... instead of copying the same pattern over and over again. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * clean-up connection (act I)Steffen Jaeckel2022-03-301-152/+63
|/ | | | | | | | | * use custom memory descriptor that `abort()`s on `malloc()` failure * use static log descriptor * don't always re-create all contexts * de-duplicate code of `.._connect()` and `.._register()` Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* Start new cycleMichael Vetter2022-03-30102-5496/+1
|
* Release 0.12.0Michael Vetter2022-03-30104-4/+5500
|
* Merge pull request #1660 from paulfertser/fix-invalid-mbrlen-inputMichael Vetter2022-03-291-0/+4
|\ | | | | Input window: handle invalid multibyte
| * Input window: handle invalid multibytePaul Fertser2022-03-291-0/+4
|/ | | | | | | | | | The current code enters an infinite loop if the input string happens to get an invalid utf-8 sequence somehow. For me it was reproducible by running profanity in a Screen session and pressing Alt-т (cyrillic letter). Fix it the way borrowed from 0501e49623f68aa39508e4e622924c1dd8147588 where mbrlen is used for the same purposes.
* changelog: add build requirements infoMichael Vetter2022-03-291-0/+3
|
* Update Changelog for 0.12.0Michael Vetter2022-03-291-0/+59
|
* Merge pull request #1659 from paulfertser/add-debug-infoMichael Vetter2022-03-291-0/+1
|\ | | | | Add debug information to binary
| * Add debug information to binaryPaul Fertser2022-03-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Option -ggdb3 (same as -g3) doesn't affect code-generation, just adds to the binary size of an executable. Automake strips installed binaries automatically when "make install-strip" is run so enabling this option permanently doesn't affect the end result while allowing for hassle-free interactive debugging. If one is running a stripped binary it's still possible to attach GDB by process PID and then use "file /path/to/unstripped/profanity" to get all symbols and lines data.
* | Merge pull request #1656 from MarcoPolo-PasTonMolo/feature/who-noneMichael Vetter2022-03-294-3/+14
|\ \ | |/ |/| Add none option for /who
| * Add none option for /whoMarcoPolo-PasTonMolo2022-03-274-3/+14
| | | | | | | | | | Fixes https://github.com/profanity-im/profanity/issues/1425 `/who none` now displays all users in an muc without an affiliation
* | Merge pull request #1657 from paulfertser/autoconf-fixesMichael Vetter2022-03-281-3/+4
|\ \ | | | | | | Autoconf fixes
| * | 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 #1658 from paulfertser/use-editor-env-variableMichael Vetter2022-03-271-2/+4
|\ \ | |/ |/| Use EDITOR environment variable
| * Use EDITOR environment variablePaul Fertser2022-03-271-2/+4
|/ | | | | | | When preferences do not specify a program to be used for /editor command, try getting it from EDITOR (which POSIX.1-2017 calls one of "variables that are frequently exported by widely used command interpreters and applications"), fall back to "vim" if not set.
* 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 '/'