Michael Vetter
e9a946f75e
Simplify _correction_autocomplete()
2020-11-05 09:35:54 +01:00
Michael Vetter
711ea4887f
Simplify _executable_autocomplete()
2020-11-05 09:35:19 +01:00
Michael Vetter
38978b153b
Simplify _lastactivity_autocomplete()
2020-11-05 09:34:56 +01:00
Michael Vetter
23e9d23a3e
Simplify _who_autocomplete()
2020-11-05 09:33:03 +01:00
Michael Vetter
70c8fd4657
Simplify _tray_autocomplete()
2020-11-05 09:32:25 +01:00
Michael Vetter
36e0bfde46
Simplify _sub_autocomplete()
2020-11-05 09:31:59 +01:00
Michael Vetter
c65f03884e
Simplify cmd_ac_complete_filepath()
2020-11-05 09:27:37 +01:00
Michael Vetter
2184e92c19
Simplify cmd_ac_complete()
2020-11-05 09:24:17 +01:00
Michael Vetter
3d307fe341
Get rid of str_contains()
...
We can use strchr() here.
2020-11-02 18:52:25 +01:00
Michael Vetter
8c0c5cb28c
Fix /correct quotation marks usage
...
Add new `parse_args_as_one()` function to just use everything after the
command as the argument.
Fix https://github.com/profanity-im/profanity/issues/1404
2020-07-23 09:40:22 +02:00
Michael Vetter
a5ca65453e
Fix lastactivity behaviour
...
Autocomplete only completed on|off.
Now:
`/lastactivity get` -> get server uptime
`/lastactivity get <jid>` -> get user lastactivity
`/lastactivity set on` -> enable for self
`/lastactivity set off` -> disable for self
Fix https://github.com/profanity-im/profanity/issues/1411
2020-07-22 13:13:30 +02:00
Michael Vetter
95ab7ee062
Setting: only write in console upon muc mention
...
`/console muc mention` additionally to `first|none|all`.
Fix https://github.com/profanity-im/profanity/issues/1371
2020-07-10 15:16:34 +02:00
DebXWoody
0552e50c78
OX: XEP-0373: OpenPGP for XMPP - Version 0.5.0 (2020-06-19)
...
Discovering Public Keys via PEP
* 4.3 Discovering Public Keys of a User
* 4.4 Requesting Public Keys
* Import Public Keys into GnuPG's local keyring.
Issue: #1331
2020-07-10 13:40:00 +02:00
Michael Vetter
a2726b6a7d
Apply coding style
2020-07-07 14:18:57 +02:00
Michael Vetter
a4cadf78fa
Revert "Apply coding style"
...
This reverts commit 9b55f2dec0
.
Sorting the includes creates some problems.
2020-07-07 13:53:30 +02:00
Michael Vetter
9b55f2dec0
Apply coding style
...
Regards https://github.com/profanity-im/profanity/issues/1396
2020-07-07 09:43:28 +02:00
Michael Vetter
9774b0c550
Merge pull request #1374 from profanity-im/revampUrlopen
...
Rework /url and /executable for filetypes
2020-07-02 11:26:18 +02:00
DebXWoody
2c94ee5a88
Feature request - XEP-0373: OpenPGP for XMPP (OX)
...
Basic implementation of XEP-0373: OpenPGP for XMPP.
https://xmpp.org/extensions/xep-0373.html
Command /ox
Issue: #1331
2020-06-29 19:05:41 +02:00
Pierre Mazière
bcea9c863b
Add /url autocompletion
...
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
2020-06-25 15:03:20 +02:00
Dmitry Podgorny
ac410445af
Add option for legacy authentication
...
New options:
/connect <account> [auth default|legacy]
/account <account> set auth default|legacy
Fixes #1236 .
2020-06-05 11:37:51 +03:00
Michael Vetter
f6799029db
Add /bookmark ignore
autocompletion
...
Regards https://github.com/profanity-im/profanity/issues/1115
2020-05-24 17:55:15 +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
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
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
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
083bf34a77
Start urlopen feature
...
Start https://github.com/profanity-im/profanity/issues/1340
2020-05-20 10:47:40 +02:00
Michael Vetter
c99a010e57
Remove autocompletion for unanimous/regular color
...
See 85520ecdc5
2020-05-16 09:44:01 +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
1cd9bfd2e7
Dont have account otr setting if built without otr
2020-04-03 01:37:25 +02:00
Michael Vetter
35edc56b1d
Dont have otr autocompletion if build without otr support
2020-04-03 00:08:39 +02:00
Michael Vetter
b3f4a5a682
Dont have pgp autocompletion if build without pgp support
2020-04-03 00:06:17 +02:00
Michael Vetter
733d268e90
Dont even create OMEMO ac vars if we build without support
2020-04-03 00:02:21 +02:00
Michael Vetter
df23c34611
Only have OMEMO autocompletion if we build with OEMO support
2020-04-02 23:59:21 +02:00
Michael Vetter
75a43f923f
Fix omemo autocompletion mitake
...
Don't return too early. We still need to check for regular omemo
autocompletion (omemo_ac).
2020-04-02 23:57:06 +02:00
Michael Vetter
1bcfd4ece6
Remove 'use' from titlebar autocompletion
...
This was forgotten in f131680055
.
2020-03-29 23:21:23 +02:00
Michael Vetter
4fc938d804
Add setting to not colorize own nick according to xep-0392
...
Some users might want there nick to always stay white (etc) for easier
recognition.
Now we can do `/color own off` to not generate the color based on
xep-0392. The `me=` color (etc) from the theme will then be used.
Once we run this command `theme_load()` is called again.
And the theme looks totally wrong.
We encountered this at other times already and I think it's nothing
wrong with this new code here now but that there seems to be a missing
closing attr for the color when drawing.
Should be investigated seperately.
Fix https://github.com/profanity-im/profanity/issues/1288
2020-03-25 12:54:25 +01:00
Michael Vetter
f131680055
titlebar: allow displaying MUC name and MUC jid
...
`/titlebar use name|jid` -> `/titlebar show|hide name|jid`
Fix https://github.com/profanity-im/profanity/issues/1284
2020-03-24 22:22:16 +01:00
Michael Vetter
3c56b289ed
Add slashguard feature
...
New command `/slashguard` tries to protect against typing ` /quit` by
not allowing a slash in the first 4 characters.
2020-03-18 18:20:05 +01:00
Michael Vetter
52e7e596aa
xep-0084/avatar: add option to open avatar directly
...
Change:
`/avatar me@somewhere.org` -> `/avatar get me@somewhere.org`
New:
`/avatar cmd feh`
`/avatar open me@somewhere.org`
Implement https://github.com/profanity-im/profanity/issues/1281
2020-03-10 07:12:13 +01:00
Michael Vetter
80dd3fdbb2
Add option to color MUC history like regular messages
...
`/logging group color` has:
* `unanimous` which will color it with one unanimous color. Like it was
done always.
* `regular` which colors it like regular incoming messages.
Regards https://github.com/profanity-im/profanity/issues/1261
2020-02-20 08:11:58 +01:00
Michael Vetter
7d596d8cef
Make /sendfile in PGP session configurable
...
`/pgp sendfile on` allows unencrypted file transfer in an PGP session.
Regards https://github.com/profanity-im/profanity/pull/1270
2020-02-17 08:57:35 +01:00
Michael Vetter
86bcadcbe3
Make /sendfile in OTR session configurable
...
`/otr sendfile on` allows unencrypted file transfer in an OMEMO session.
Regards https://github.com/profanity-im/profanity/pull/1270
2020-02-17 08:51:43 +01:00
Michael Vetter
36713a2ed7
Make /sendfile in OMEMO session configurable
...
`/omemo sendfile on` allows unencrypted file transfer in an OMEMO
session.
Regards https://github.com/profanity-im/profanity/pull/1270
2020-02-17 08:31:46 +01:00
Michael Vetter
8f37afcd37
xep-0308: Make /correct work without quotation marks
...
Now we can specify an unlimited amount of arguments for commands.
Maybe this is also helpful for other commands that use quotation marks
so far.
2020-02-14 10:17:07 +01:00
Michael Vetter
1072cdab0a
xep-0308: Fix sending corrections for multiple words
2020-02-14 10:17:07 +01:00
Michael Vetter
bc571a387d
xep-0308: Add autocompletion of last message for /correct
2020-02-14 10:17:07 +01:00
Michael Vetter
1118110071
xep-0308: Implement /correct
to correct the last send message
...
So far the correction is sent. But the UI in Profanity itself is not
updated.
Also autocompletion for `/correct` with the last sent message is
missing.
2020-02-10 16:17:01 +01:00
Michael Vetter
039bf5d04d
xep-0308: add correction
autocompletion
2020-02-10 13:35:46 +01:00
Michael Vetter
43286e2dc6
Add /omemo char
autocompletion
...
Seems this got forgotten.
2020-02-03 11:06:13 +01:00