about summary refs log tree commit diff stats
path: root/src/ui
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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
| |
| * Allow utf8 in roster resource charMichael Vetter2021-10-222-8/+14
| |
| * Allow utf8 in roster contact charMichael Vetter2021-10-222-11/+14
| |
| * Allow utf8 in roster header charMichael Vetter2021-10-212-10/+15
| | | | | | | | | | | | | | | | | | This and the following commits should make a couple of more configs allow utf8 chars so people can use their weird icons :-) We did the same for the otr/omemo/pgp indicators at: https://github.com/profanity-im/profanity/commit/1f8b1eb740391941e79e1004ad041f8178a2b674 https://github.com/profanity-im/profanity/commit/5cf6ee1bc6d0b99b01891bc455a657bf022a72b0
* | Move declaration and definition of win_get_last_sent_message to the correct ↵MarcoPolo-PasTonMolo2021-10-222-0/+30
|/ | | | place
* Format code correctlyMichael Vetter2021-10-059-18/+20
|
* Fix fromat string in statusbarMichael Vetter2021-09-291-7/+7
| | | | Regards https://github.com/profanity-im/profanity/issues/1597#issuecomment-930540261
* Fix wrong format string in titlebarMichael Vetter2021-09-291-3/+3
| | | | | | | See https://github.com/profanity-im/profanity/commit/fd9ccec8dc604902bbb1d444dba4223ccee0a092 and https://github.com/profanity-im/profanity/issues/1597#issuecomment-930426764.
* Fix wrong format string in titlebar encryptionMichael Vetter2021-09-291-2/+2
| | | | | | Fix https://github.com/profanity-im/profanity/issues/1597 Thanks @debacle.
* Add more keybindings to /help navigationMichael Vetter2021-09-151-2/+5
|
* notifier: Use glib functionMichael Vetter2021-09-091-3/+2
|
* Change attentionflag shortcut to alt+vMichael Vetter2021-08-311-1/+1
| | | | | | alt+f is the default readline shortcut for forward one word. Regards https://github.com/profanity-im/profanity/issues/1580
* chatwin: fix memory leak when load historyDmitry Podgorny2021-07-201-0/+4
| | | | | | | | _chatwin_history() reassigns msg->plain without freeing previous string. This leads to memory leak. As a temporary solution, free replaced string. Fixes #1585.
* Don't handle /me in the middle of a message with mentionsDmitry Podgorny2021-07-171-2/+3
|
* Fix buffer overread in _mucwin_print_mention()Dmitry Podgorny2021-07-171-3/+3
| | | | | | Offset for g_utf8_substring() is higher than the string length. We can avoid g_utf8_substring() for the tail and simply convert starting offset to a pointer.
* Add option to only allow messages from jids in rosterMichael Vetter2021-07-012-0/+11
| | | | | | | `/silence on` will throw away all messages (type: chat, normal) that come from jids that are not in the roster. Implement https://github.com/profanity-im/profanity/issues/955
* Fix /disco info contact address headerMichael Vetter2021-06-301-3/+5
| | | | | Only display server contact information heading when we have actual addresses.
r James Booth <boothj5@gmail.com> 2015-06-17 00:15:28 +0100 committer James Booth <boothj5@gmail.com> 2015-06-17 00:15:28 +0100 Added current window reference to command functions' href='/danisanti/profani-tty/commit/src/ui/win_types.h?id=2215a3791f4394394c3ddcde7dd4aa98c704809b'>2215a379 ^
f1780f00 ^
a3897abb ^
2215a379 ^
a2726b6a ^


4ec005e4 ^
a2726b6a ^

6dd11f0f ^
2215a379 ^

b11d3a79 ^
a2726b6a ^
b11d3a79 ^
a2726b6a ^

2215a379 ^
a2726b6a ^

2215a379 ^
b11d3a79 ^

a2726b6a ^
b11d3a79 ^
2215a379 ^
a2726b6a ^

2215a379 ^
a2726b6a ^
2215a379 ^

150015fa ^
77e819e8 ^
2215a379 ^

a2726b6a ^

2215a379 ^



a2726b6a ^

119c5650 ^
a2726b6a ^

41fe8c22 ^


2215a379 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242