You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some downstream applications, we want to paste code directly into the input. If a tab character is included in the code, the prompt displays it as ^I.
For a specific instance, when coding in an R script in VSCode, the "vscode-R" extension could send a block of code into the REPL of the Python package radian, which utilizes prompt-toolkit as the IO in the REPL. If the block of code contains tabs, the REPL will display abnormally. randy3k/radian#313
Thankfully, reproducing this behavior is not a hard task.
I have tried a solution mentioned in tmbo/questionary#154 (comment), which patches prompt_toolkit.layout.screen .Char.display_mappings['\t'] = '\t', and a solution in Issue #1452, which listens for the tab key to insert spaces. However, it still does not work properly. I also found a workaround mentioned in Issue #556, but it is not suitable in our situation.
The text was updated successfully, but these errors were encountered:
In some downstream applications, we want to paste code directly into the input. If a tab character is included in the code, the prompt displays it as
^I
.For a specific instance, when coding in an R script in VSCode, the "vscode-R" extension could send a block of code into the REPL of the Python package
radian
, which utilizesprompt-toolkit
as the IO in the REPL. If the block of code contains tabs, the REPL will display abnormally. randy3k/radian#313Thankfully, reproducing this behavior is not a hard task.
tab char > <
, resulting in:I have tried a solution mentioned in tmbo/questionary#154 (comment), which patches
prompt_toolkit.layout.screen .Char.display_mappings['\t'] = '\t'
, and a solution in Issue #1452, which listens for the tab key to insert spaces. However, it still does not work properly. I also found a workaround mentioned in Issue #556, but it is not suitable in our situation.The text was updated successfully, but these errors were encountered: