about summary refs log tree commit diff stats
path: root/src/ui
Commit message (Collapse)AuthorAgeFilesLines
...
* remove memset in cons_show_qrcodeswirl2022-06-151-1/+1
| | | | Signed-off-by: swirl <swurl@swurl.xyz>
* remove VLAs in OMEMO QR Code functionswirl2022-06-141-7/+15
| | | | | | Removes the use of VLAs in favor of calloc Signed-off-by: swirl <swurl@swurl.xyz>
* Merge pull request #1717 from ↵Michael Vetter2022-06-111-1/+5
|\ | | | | | | | | MarcoPolo-PasTonMolo/fix/chat-with-self-duplicate-msgs Fix duplicate messages in chat with oneself.
| * Fix duplicate messages in chat with oneself.MarcoPolo-PasTonMolo2022-05-311-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Messages would get duplicated when you chat with yourself, worse if you had omemo enabled the duplicated message would say something along the lines of "Your client doesn't support OMEMO". The cause was carbons when the message was sent from another client, whilst it was a sent and received message when profanity was the one to send it. This commit ignores the carbon message in the 1st case and ignores the received one in the 2nd. Fixes https://github.com/profanity-im/profanity/issues/1595
* | Use our omemo sid/fingerprint in qr codeMichael Vetter2022-05-312-2/+2
| | | | | | | | | | | | | | Current clients sid/fingerprint will be shown in following format: `xmpp:<user@server>?omemo-sid-<numerical-sid>=<omemo-fingerprint-hex-string>` Fix https://github.com/profanity-im/profanity/issues/1320
* | Add command help for omemo qrcodeMichael Vetter2022-05-301-0/+2
| |
* | Reverse QR code colors and add paddingswirl2022-05-301-7/+19
| | | | | | | | | | | | | | All QR scanners should be able to recognize this, as it is now the correct color with some padding to prevent blending. Signed-off-by: swirl <swurl@swurl.xyz>
* | implement working OMEMO QR codeswirl2022-05-301-7/+6
| | | | | | | | | | | | | | | | TODO: We need to find a way to switch the colors of the QR code, so that more QR readers can detect it, without "blending" the edges of the QR code with the surrounding terminal window. Signed-off-by: swirl <swurl@swurl.xyz>
* | Add basic qrcode functionsMichael Vetter2022-05-302-0/+38
|/
* Update copyright yearMichael Vetter2022-05-0913-14/+14
|
* ox: show ox preferencesMichael Vetter2022-05-052-0/+26
|
* Restore default behaviour for stampsMichael Vetter2022-05-031-1/+1
| | | | | | | | | | | | @mdosch discovered that we now don't print `:` for messages from others anymore. Until https://github.com/profanity-im/profanity/pull/1663#issuecomment-1114625151 is fixed lets restore the default behaviour to always add `:` in `_win_print_internal()`. The result will be that a stamp set to `-->` will also look like `-->:`.
* Merge branch 'master' into add_stamp_settingsMichael Vetter2022-04-284-51/+75
|\
| * Add support for offline MUC notificationsStefan Ott2022-04-231-0/+5
| |
| * Show return symbol for embedded newlinesPaul Fertser2022-04-121-1/+24
| | | | | | | | | | | | | | | | | | When editing multi-line messages or comments everything past the first newline becomes invisible. This patch fixes it by substituting a Unicode symbol for "return" instead of printing the newline as is. On locales where it's not available single backslash is used instead.
| * Handle input win redisplay via Readline hookPaul Fertser2022-04-121-3/+10
| | | | | | | | | | Allow Readline to control when to redisplay the input line. This makes text entered via /editor visible after editor is closed.
| * Show Readline prompt in input windowPaul Fertser2022-04-121-0/+7
| | | | | | | | | | When doing an interactive search the prompt is needed to show the current state of the search to avoid confusion.
| * Use correct colour for their nick when showing historyPaul Fertser2022-04-011-0/+1
| |
| * Merge pull request #1664 from paulfertser/tab-completion-cleanupMichael Vetter2022-04-011-41/+11
| |\ | | | | | | Tab completion code simplification
| | * Tab completion code simplificationPaul Fertser2022-03-301-41/+11
| | | | | | | | | | | | | | | | | | Factor out common code for Tab and Shift-Tab in a separate function. No functional change.
| * | Merge pull request #1667 from paulfertser/fix-screen-arrows-bindingsMichael Vetter2022-04-011-0/+3
| |\ \ | | | | | | | | Add Alt/Ctrl-arrows combinations for GNU Screen
| | * | 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 #1669 from paulfertser/make-rl-functions-bindableMichael Vetter2022-04-011-0/+5
| |\ \ \ | | | | | | | | | | Make all existing input functions bindable from config
| | * | | Make all existing input functions bindable from configPaul Fertser2022-03-301-0/+5
| | |/ /
| * | | Merge pull request #1670 from profanity-im/moar-cleanupMichael Vetter2022-04-011-1/+2
| |\ \ \ | | | | | | | | | | Even moar cleanup
| | * | | fix linter warningsSteffen Jaeckel2022-03-311-1/+2
| | |/ / | | | | | | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * / / Fix race condition on resizePaul Fertser2022-04-011-3/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current code is inherently racy: if screen update takes considerable time (e.g. when working over network) and a user performed a series of resizes the final event might get ignored and the display will be left in inconsistent state. Fix the race by unsetting the flag first so if the next WINCH signal is received while display is resizing it'll be processed on the next iteration.
| * / run `make format`Steffen Jaeckel2022-03-301-2/+2
| |/ | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * 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.
* | Rename stamp preference variableMichael Vetter2022-04-281-1/+1
| | | | | | | | | | PREF_INCOMING_STR -> PREF_INCOMING_STAMP PREF_OUTGOING_STR -> PREF_OUTGOING_STAMP
* | add /stamp commandArtjom Vejsel2022-04-021-2/+3
|/ | | | command allow override standard stamps of incoming and outgoing messages
* Add none option for /whoMarcoPolo-PasTonMolo2022-03-271-0/+6
| | | | | Fixes https://github.com/profanity-im/profanity/issues/1425 `/who none` now displays all users in an muc without an affiliation
* Merge pull request #1652 from profanity-im/fix-1624Michael Vetter2022-03-232-4/+4
|\ | | | | Fix #1624
| * a tad more `const`-correctnessSteffen Jaeckel2022-03-222-4/+4
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | 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-219-1/+86
|/ | | | | | | | | | 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.
* 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
* | Alt+e is already bound, use Alt+cSteffen Jaeckel2022-03-131-1/+1
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | Move get_message_from_editor to appropriate file and change its keybindingMarcoPolo-PasTonMolo2022-03-031-4/+4
| |
* | Add hotkey for sending readline text to editorMarcoPolo-PasTonMolo2022-03-031-0/+26
|/
* auto-formatSteffen Jaeckel2022-02-015-12/+12
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* auto-formatSteffen Jaeckel2021-10-271-2/+2
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* Merge pull request #1607 from profanity-im/utf8indicatorcharMichael Vetter2021-10-223-57/+86
|\ | | | | Allow more UI indicator signs to be utf8 "characters"
| * Allow utf8 in occupants header charMichael Vetter2021-10-222-6/+9
| |
| * Allow utf8 in occupants charMichael Vetter2021-10-222-8/+11
| |
| * Allow utf8 in roster room private charMichael Vetter2021-10-222-5/+8
| |
| * Allow utf8 in roster rooms charMichael Vetter2021-10-222-7/+10
| |
| * Allow utf8 in roster private charMichael Vetter2021-10-222-5/+8
| |