Commit message Age Author Refs
r28952:39c7d0e0
update darker/black (#14567)
M Bussonnier
0
r28951:020e036b
reencode properly
M Bussonnier
0
r28950:ac9ed9c1
do not use .magic(...) that has been deprecated for a decade (#14566)
M Bussonnier
0
r28949:5d95565e
FIX: Typing annotations (#12683) Running `mypy -p IPython.sphinxext` raised a few errors. Fix them and strip some trailing whitespace from a few places.
M Bussonnier
0
r28948:65ad9e8f
Reformat all files that woudl lead to less than 4 lines changed.
M Bussonnier
0
r28947:dbf3a922
update darker/black
M Bussonnier
0
r28946:209f369e
formatting
M Bussonnier
0
r28945:08be4c99
PR: Unassigned allowed commands (#14564) From git git: > Modify binding mechanism to allow binding to one of a set of whitelisted commands, Add five such commands ("beginning_of_buffer", "end_of_buffer", "end_of_line", "forward_word", "unix_line_discard"). Currently, only commands which are assigned by default are allowed to be reassigned: ```python known_commands = { create_identifier(binding.command): binding.command for binding in KEY_BINDINGS } ... if command_id not in known_commands: ... raise ValueError( f"{command_id} is not a known shortcut command." f" Allowed commands are: \n - {allowed_commands}" ) ``` This PR adds a List UNASSIGNED_ALLOWED_COMMANDS and updates `known_commands` (now renamed to be more clear as `allowed_commands`): ```python allowed_commands.update({ create_identifier(command): command for command in UNASSIGNED_ALLOWED_COMMANDS }) ``` The five unassigned allowed commands are: ```python UNASSIGNED_ALLOWED_COMMANDS = [ nc.beginning_of_buffer, nc.end_of_buffer, nc.end_of_line, nc.forward_word, nc.unix_line_discard, ] ``` Motivation tldr: Until now, it is not possible to bind eg the common keybindng `ctrl+e` to prompt_toolkit's `end_of_line` (because it is not bound by default). Full motivation: https://github.com/ipython/ipython/issues/14369
M Bussonnier
0
r28944:f42bfc84
do not use .magic(...) that has been deprecated for a decade
M Bussonnier
0
r28943:a9633587
remove some cast_unicode (#14562)
M Bussonnier
0
< 1 .. 8 9 10 11 12 .. 2905 >