Skip to content

Commit 07c1742

Browse files
committed
keys: Add new readline command to cut the whole line.
1 parent cece037 commit 07c1742

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

zulipterminal/config/keys.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,11 @@ class KeyBinding(TypedDict):
383383
'help_text': 'Cut backwards to the start of the current word',
384384
'key_category': 'editor_text_manipulation',
385385
},
386+
'CUT_WHOLE_LINE' + READLINE_SUFFIX: {
387+
'keys': ['meta x'],
388+
'help_text': 'Cut the current line',
389+
'key_category': 'text_operations',
390+
},
386391
'PASTE_LAST_CUT' + READLINE_SUFFIX: {
387392
'keys': ['ctrl y'],
388393
'help_text': 'Paste last cut section',

0 commit comments

Comments
 (0)