mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-26 00:02:34 +00:00
docs(prompt): describe the input moving below a long prompt (#767)
This commit is contained in:
@@ -98,6 +98,13 @@ A command that wraps, or one you deliberately break across lines, edits in
|
||||
place. The grid shifts to keep the caret visible instead of scrolling the whole
|
||||
screen away.
|
||||
|
||||
When the prompt itself takes up most of the row — a deep working directory, a
|
||||
busy theme — the line you type starts on the row below it instead, with the
|
||||
full width of the pane. That happens once the prompt leaves fewer than a third
|
||||
of the columns (never fewer than 20); an ordinary prompt keeps the input beside
|
||||
it. To keep the prompt short instead, trim it in the shell: `%2~` in a zsh
|
||||
`PROMPT`, fish's `prompt_pwd`, or starship's `truncation_length`.
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| <kbd>⇧ ⏎</kbd> · <kbd>⌥ ⏎</kbd> | Insert a newline instead of submitting |
|
||||
|
||||
Reference in New Issue
Block a user