Michael Vetter
36f2569e53
Preserve Gajims minimize flag in bookmarks
...
Implement https://github.com/profanity-im/profanity/issues/1326
2020-05-22 16:18:28 +02:00
Michael Vetter
70db2a4b63
Fix build on sr.ht
...
Hopefully fixing:
```
cc1: warnings being treated as errors
tests/unittests/test_cmd_otr.c: In function
'cmd_otr_start_sends_otr_query_message_to_current_recipeint':
tests/unittests/test_cmd_otr.c:422: warning: 'window.urls_ac' is used
uninitialized in this function
gmake[2]: *** [Makefile:1913: tests/unittests/test_cmd_otr.o] Error 1
gmake[2]: Leaving directory '/home/build/profanity'
gmake[1]: *** [Makefile:2442: check-am] Error 2
gmake[1]: Leaving directory '/home/build/profanity'
gmake: *** [Makefile:2445: check] Error 2
```
2020-05-22 14:41:42 +02:00
Michael Vetter
89fd9394aa
Update bookmark test stub
2020-05-22 14:36:36 +02:00
Michael Vetter
88c36745fe
Add option to add bookmark name
...
`/bookmark add|update` got `name` field.
By default localpart of JID is used (like before) but now we can set the
name ourselves.
Regards https://github.com/profanity-im/profanity/issues/697
2020-05-22 14:18:20 +02:00
Michael Vetter
fad296b79e
Display bookmark name
...
Have field in struct and display the name in `/bookmark list`.
Regards https://github.com/profanity-im/profanity/issues/697
2020-05-22 13:56:00 +02:00
Michael Vetter
cb78ee4665
Make option to allow hiding windows with no messages in statusbar
...
`statusbar.show.read` can be set to false in the config.
`/statusbar show|hide read`.
Implement https://github.com/profanity-im/profanity/issues/1285
2020-05-21 16:15:14 +02:00
Michael Vetter
e41ae21bea
Fix typing notification
...
With d1d0ad8d1a
we set a timestamp to now
for all messages upon receival. Even if the original message didn't
contain any timestamp. So we can use the timestamp of retrieval for
logging and displaying and don't get them at each of those location
where they might differ.
This means that timestamp will never be NULL.
I don't see why we would want to check for the chat state only if
timestamp isn't there.
Probably because in XEP-0085 there is not timestamp defined.
So if it thats stanza it's not there and we can parse quicker, but there
is nothing forbidden it to be there.
Related to https://github.com/profanity-im/profanity/issues/1339
2020-05-21 12:24:03 +02:00
Michael Vetter
fcd69532ad
Make 'scrolled' themeable
2020-05-21 09:16:18 +02:00
Michael Vetter
469fa8f863
Display when scrolled up
...
Display [SCROLLED] in titlebar if a chat/muc/private win is scrolled up.
Implement https://github.com/profanity-im/profanity/issues/1289
2020-05-21 09:14:45 +02:00
Michael Vetter
d9edfa2da9
Add the word 'hilight' to trigger doc
...
So users are able to search the reference website easier.
2020-05-20 14:25:40 +02:00
Michael Vetter
889e19a5c5
Add executable stub
2020-05-20 14:17:05 +02:00
Michael Vetter
7862542c58
Merge pull request #1341 from profanity-im/feature/urlopen
...
Add urlopen command
2020-05-20 14:15:53 +02:00
Michael Vetter
7b541d0a6d
Add /executable command
...
This is used to set the openers for various commands.
So far for /avatar and /urlopen.
2020-05-20 14:14:49 +02:00
Michael Vetter
21cc53bdfd
Make urlopen command configurable
2020-05-20 10:54:58 +02:00
Michael Vetter
fc5fa62951
Create call_external() helper function
2020-05-20 10:54:58 +02:00
Michael Vetter
aef74f90ec
Only save max 20 urls
2020-05-20 10:54:58 +02:00
Michael Vetter
ce32d874e0
Build URL ac upon printing of message in window
2020-05-20 10:54:54 +02:00
Michael Vetter
22ca81e0b6
Look for URLs via regex
2020-05-20 10:47:46 +02:00
Michael Vetter
03334664fb
Actually open the URL
2020-05-20 10:47:46 +02:00
Michael Vetter
083bf34a77
Start urlopen feature
...
Start https://github.com/profanity-im/profanity/issues/1340
2020-05-20 10:47:40 +02:00
Michael Vetter
7d7f0ef5a5
Update copyright in manpage
2020-05-16 10:03:55 +02:00
Michael Vetter
a1ee1ad139
Add description of new flags to manpage
2020-05-16 10:02:19 +02:00
toogley
03b75c833d
Update mailing list in manpage
2020-05-16 09:49:13 +02:00
Michael Vetter
c99a010e57
Remove autocompletion for unanimous/regular color
...
See 85520ecdc5
2020-05-16 09:44:01 +02:00
Michael Vetter
9c853d9f46
xep-0092: make it possible to ask servers or components for software
...
This adds the new `/serversoftware` command.
```
/software user@domain.org/resource
/serversoftware domain.org
```
Fix https://github.com/profanity-im/profanity/issues/1338
2020-05-14 19:13:27 +02:00
Michael Vetter
9243655a22
Have proper autocompletion for /software in chat window
...
In console autocomplete from roster.
In muc autocomplete from occupants lits.
In 1:1 regular chat autocomplete from active resources of currently
selected user (new).
Also give a hint (/help resource) how to set the resource should a user choose that way.
Fix https://github.com/profanity-im/profanity/issues/1337
2020-05-14 18:09:54 +02:00
Michael Vetter
5cf6ee1bc6
Fix /correction
char display
...
1f8b1eb740
made it possible to have utf8 chars as correction chars. So since then prefs_get_correction_char() doesn't return a regular char but a char*.
Seems like there was an oversight that we need to use %s then.
2020-05-06 13:46:40 +02:00
Michael Vetter
85520ecdc5
Remove unanimous MAM display
...
For some time users could choose to have the old way "unanimous" where
all the MUC history is just grey (or whatever was set). Now it is always
just displayed like regular new incoming MUC text.
2020-04-25 17:19:02 +02:00
Michael Vetter
570863df1b
Merge pull request #1325 from wstrm/docs/improve-correction-help
...
Mention the related commands for /correct and /correction
2020-04-25 09:06:10 +02:00
William Wennerström
7154c357e4
Mention the related commands for /correct and /correction
2020-04-24 19:27:02 +02:00
Michael Vetter
d572ffa061
Merge pull request #1324 from profanity-im/ui-fix
...
Fix condition in wins_show_subwin()
2020-04-23 11:12:27 +02:00
Dmitry Podgorny
4672d0ca19
ui: fix condition
...
Fix mistake in a condition. Also add sanity check to
win_refresh_with_subwin().
2020-04-23 14:30:49 +03:00
Michael Vetter
4a712fcc7b
Fixup for bad56b5062
...
sorry.. doing too many things at once..
2020-04-22 17:01:27 +02:00
Michael Vetter
bad56b5062
wins_show_subwin(): Add windows type test
...
Fix https://github.com/profanity-im/profanity/issues/1321
2020-04-22 14:03:29 +02:00
Michael Vetter
5ec1b03cbc
_handle_carbons(): fix potential memleak
2020-04-21 17:11:04 +02:00
Michael Vetter
813fd637a1
inp_readline() Correct slashguard feature
...
Protect against invalid reads by checking the length.
2020-04-21 16:47:18 +02:00
Michael Vetter
f27bd92731
Make compiler happy about win_refresh_without_subwin
2020-04-20 16:44:47 +02:00
Michael Vetter
b1d71236fe
win_refresh_with_subwin() fixup
...
Fixup for 86af6925d9
2020-04-20 16:35:13 +02:00
Michael Vetter
b9c384d6ca
_iq_id_handler_free() dont set NULL
...
No effect here.
2020-04-20 16:17:09 +02:00
Michael Vetter
fb85cec129
Remove unused func wins_close_current()
2020-04-20 16:16:18 +02:00
Michael Vetter
8d25e18b9a
Remove file_getline() declaration
...
Follow up for a6fa8e8e0d
2020-04-20 16:15:00 +02:00
Michael Vetter
9e73782f72
_destroy_tab() dont set tab to NULL
...
Setting the local pointer to NULL has no effect.
_destroy_tab() is used for g_hash_table_new_full() so we cant use a **
and set tab to NULL.
2020-04-20 16:10:24 +02:00
Michael Vetter
86af6925d9
Simplify win_refresh_with_subwin()
2020-04-20 16:09:40 +02:00
Michael Vetter
70683c07ab
_mucwin_print_mention(): No need to assign pos
2020-04-20 16:02:19 +02:00
Michael Vetter
b2ec6ba4ce
ui_room_join() dont get nick twice
2020-04-20 16:01:05 +02:00
Michael Vetter
785e3f5623
cons_show_aliases() simpify condition
2020-04-20 15:59:31 +02:00
Michael Vetter
5db14b2c48
Fix parsing of alias command
...
This actually only set the local ran pointer to NULL.
But we want an effect on the outside variable.
2020-04-20 15:54:32 +02:00
Michael Vetter
25dbebab17
log: don't log dt
...
Use another name.
2020-04-20 15:48:01 +02:00
Michael Vetter
5a42883c27
log: Dont shadow logp
...
Let's use another name.
2020-04-20 15:46:27 +02:00
Michael Vetter
a6fa8e8e0d
Remove unneeded file_getline()
...
Not needed anymore since 0942d98c61
2020-04-20 15:42:01 +02:00