10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4579c03 commit 19d68e2Copy full SHA for 19d68e2
README.md
@@ -1531,6 +1531,22 @@ echo "We're in the docker container now!" | lolcat
1531
```
1532
Don't forget that `Alt+Enter` can run the command from any place where the cursor is.
1533
1534
+### Use `prompt` instead of `input` for multiline input
1535
+
1536
+In python there is `input` function but it has no support of multiline pasting. Use `prompt`:
1537
1538
+```xsh
1539
+from prompt_toolkit import prompt
1540
1541
+echo @(prompt('Content:\n')) > /tmp/myfile
1542
+# Content:
1543
+# <Paste multiline text "1\n\2\n" from clipboard>
1544
1545
+cat /tmp/myfile
1546
+# 1
1547
+# 2
1548
+```
1549
1550
### Using the name of the alias in alias logic
1551
```xsh
1552
@aliases.register(",")
0 commit comments