##// END OF EJS Templates
Clear filter
Show hidden
Commit Message Age Author Refs
load previous
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
merge
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
merge
0
r28942:42e4bd10
format
M Bussonnier
0
r28941:0a67c967
Pypi.io -> Pypi.org (#14565)
M Bussonnier
merge
0
r28940:4ee19300
pypi.io -> pypi.org
M Bussonnier
0
r28939:dd9d5363
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").
Hacker-Dom
0
r28938:706acc3c
remove some cast_unicode
M Bussonnier
0
r28937:912098e2
reformat
M Bussonnier
0
r28936:b65cf89c
validate ESC_PAREN ('/') is followed by a callable name and not empty (#12690) When running a single python expression with just a slash - `/`, a tuple is returned. ```python In [1]: / Out[1]: () ``` This weird case happens because when a line starts with `/` the `inputtransformer` transforms it into a call of the first word after the `/` as the callable name and rest tokens after as arguments. This PR fixes that issue by validating that at least a callable name is given and it's not empty, if not a `SyntaxError` will be raised. ```python In [1]: / File "<ipython-input-1-8f27084b6294>", line 1 / ^ SyntaxError: invalid syntax In [2]: ``` Validated that tests are passing.
M Bussonnier
merge
0
r28935:e8c98709
validate that ESC_PAREN ('/') is followed by a callable name and not empty
Guy Bortnikov
0
r28934:c8d94694
FIX: Typing annotations Running `mypy -p IPython.sphinxext` raised a few errors. Fix them and strip some trailing whitespace from a few places.
farisachugthai
0
r28933:6aa7cdc7
back to dev
M Bussonnier
0
r28932:af19fb05
release 8.29.0
M Bussonnier
0
r28931:b2fc3082
Whats new 8.29 (#14560)
M Bussonnier
merge
0
r28930:9c221bbe
Whats new 8.29
M Bussonnier
0
r28929:d0226573
Fix line stripping edge case for %load magic command (#14495) Closes: #14494
M Bussonnier
merge
0
r28928:25703b5b
Refactor with Pathlib for setupbase.py (#14543) Continued efforts for #12515 though it has been closed. Validated to be okay by running the following. - `pip install -e ".[all]"` - `pytest` Please note that there are also some syntactical modifications, and part of them are from the darker linter.
M Bussonnier
merge
0
load next
< 1 2 3 4 5 6 7 .. 1361 >
showing 20 out of 27211 commits