From ef1bee0f48c9a30c4fe179712da576838fd7eb98 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 10 Aug 2022 20:00:20 +0530 Subject: [PATCH] Shorten text --- kitty/boss.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/kitty/boss.py b/kitty/boss.py index 2d79e7c0c..7fa1c0f64 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -484,12 +484,15 @@ class Boss: return False wid = 0 if window is None else window.id overlay_window = self.choose( - _('A program wishes to control kitty.\n\n' - 'Action: {1}\n' 'Password: {0}\n\n' - 'Note that allowing the password will allow all future actions using the same password, in this kitty instance.' - ).format(styled(pcmd['password'], fg='yellow'), styled(pcmd['cmd'], fg='magenta')), + _('A program wishes to control kitty.\n' + 'Action: {1}\n' 'Password: {0}\n' '{2}' + ).format( + styled(pcmd['password'], fg='yellow'), styled(pcmd['cmd'], fg='magenta'), + '\x1b[m' + styled(_( + 'Note that allowing the password will allow all future actions using the same password, in this kitty instance.' + ), dim=True)), partial(self.remote_cmd_permission_received, pcmd, wid, peer_id), - 'a;green:Allow this request', 'p;yellow:Allow this password', 'r;magenta:Deny this request', 'd;red:Deny this password', + 'a;green:Allow request', 'p;yellow:Allow password', 'r;magenta:Deny request', 'd;red:Deny password', window=window, default='a' ) if overlay_window is None: