prompt-toolkit / ptpython

A better Python REPL
BSD 3-Clause "New" or "Revised" License
5.23k stars 281 forks source link

feature suggestion: display the autocomplete menu/list on backspace too, not just on the insertion of new characters #583

Open wis opened 5 months ago

wis commented 5 months ago

Currently when backspacing, when you get to a period, the autocompletion menu/list does not display, you have to backspace the period too and then type it again for the autocompletion menu/list to display.

Edit: users would expect the autocomplete list/menu to display after backspace when the new last character on the line is [ too, or when the line ends with a dot followed by the start of an identifier, e.g. some.propert ... when you backspace the t it should display the autocomplete menu with property in it. -- this behavior matches VSCode and most other IDEs. I changed the title to match the actual expected behavior and the suggested change: display the autocomplete menu/list on backspace too, not just on the insertion of new characters.