Broken shortcuts (Ctrl+Up), (Ctrl+Doww), (Tab), (Shift+Tab)
Shortcuts don't work for me. Could you please suggest any ideas why sometimes like this may happen? Thank you
What OS are you on?
It is Windows + Windows Terminal + Powershell
Using the same setup, all of the shortcuts are working for me except Shift+Tab which continues forward through completions rather than going back.
I wonder if they could be conflicting with shortcuts configured in Windows Terminal. Do you have any custom shortcuts defined for these?
Same here on macOS (Sequoia 15.2). Tab works, but Shift+Tab keep going forward. The history related shortcuts (i.e. Ctrl+Up, Ctrl+Down) don't work at all. Neither Shift+Enter for multiline code.
i've run into the same problems and found a variety of causes. on a windows 10 machine, it was powershell 5 settings - there's an option for "ctrl key shortcuts" that was intercepting the input and causing the arrow keys to scroll the screen buffer instead of cycle through command history.
the one thing i haven't been able to fix is tab completion - this works for a "vanilla" repl - i.e. if i just launch and, say, use text completion on a variable of a builtin dotnet type. however, all tab completion stops functioning if i initialize the shell with a dib file that contains all the #r statements required to initialize the environment for my project. in this scenario, tab-completion doesn't even work for a string variable. Any pointers on where i might look to find this feature in the codebase? perhaps i can find where it's going awry.
@mattefowler The completions code is here:
- https://github.com/jonsequitur/dotnet-repl/blob/main/src/dotnet-repl/KernelCompletion.cs
- https://github.com/jonsequitur/dotnet-repl/blob/main/src/dotnet-repl/LineEditorCommands/CompletionCommand.cs#L22
I believe there were some API changes in RadLine at one point that might make this worth revisiting.
Let me know how I can help if you'd like to dig into this.