Skip to content

Commit 11e1f40

Browse files
authored
Add prompt_toolkit's unix_word_rubout to assignable commands for shortcuts (#15105)
`unix-word-rubout` / `nc.unix_word_rubout` is closer to a lot of folks' shell's Ctrl-W behaviour, so it would be nice to be able to set it up cleanly in config files. As best as I can tell the set of unassigned allowed commands is neither tested nor documented anywhere; it's not clear what warrants inclusion or exclusion from the group.
2 parents 10c8ecc + adc4967 commit 11e1f40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

IPython/terminal/shortcuts/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,4 +635,5 @@ def win_paste(event):
635635
nc.forward_char,
636636
nc.forward_word,
637637
nc.unix_line_discard,
638+
nc.unix_word_rubout,
638639
]

0 commit comments

Comments
 (0)