Have separate settings for intype

Old: `/intype on|of`
Typing information is printed in console and titlebar.

New: `/intype titlebar|console on|off`
Typing information can be configured in more detail.

Regards https://github.com/profanity-im/profanity/issues/1516
This commit is contained in:
Michael Vetter
2021-05-08 19:33:58 +02:00
parent 1ef700f918
commit 1d8061e89b
7 changed files with 62 additions and 14 deletions

View File

@@ -1803,6 +1803,7 @@ _get_group(preference_t pref)
case PREF_WINTITLE_GOODBYE:
case PREF_FLASH:
case PREF_INTYPE:
case PREF_INTYPE_CONSOLE:
case PREF_HISTORY:
case PREF_OCCUPANTS:
case PREF_OCCUPANTS_JID:
@@ -1967,6 +1968,8 @@ _get_key(preference_t pref)
return "adv.notify.discoversion";
case PREF_INTYPE:
return "intype";
case PREF_INTYPE_CONSOLE:
return "intype.console";
case PREF_HISTORY:
return "history";
case PREF_CARBONS:

View File

@@ -59,6 +59,7 @@ typedef enum {
PREF_TRAY_READ,
PREF_ADV_NOTIFY_DISCO_OR_VERSION,
PREF_INTYPE,
PREF_INTYPE_CONSOLE,
PREF_HISTORY,
PREF_CARBONS,
PREF_RECEIPTS_SEND,