nushell / nushell/reedline

Move prompt to the top/bottom of the terminal

Open
#195 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-Prompt enhancement P-low
Dominant language
Rust
Stars
818
Forks
249
Avg merge
4d 14h
Merged PRs (30d)
30

Description

Instead of repeating the prompt on every line, display the prompt only at the top/bottom of the terminal.

This is how it works now (the top/bottom lines denote terminal window boundary):

------------------------------------------------------------------------------------------------
~/git/extern/reedline                                                     12/05/2021 12:48:28 AM
〉foo
Our buffer: foo

~/git/extern/reedline                                                     12/05/2021 12:48:30 AM
〉bar
Our buffer: bar

~/git/extern/reedline                                                     12/05/2021 12:48:33 AM
〉baz
Our buffer: baz





------------------------------------------------------------------------------------------------

This is what I suggest:

------------------------------------------------------------------------------------------------
〉foo
Our buffer: foo

〉bar
Our buffer: bar

〉baz
Our buffer: baz







~/git/extern/reedline                                                     12/05/2021 12:48:33 AM
------------------------------------------------------------------------------------------------

Of course, this should be configurable.

Disadvantage of this is that you won't see the previous prompts so you cannot check e.g. what directory you were when running "foo". Whether this matters or not I think depends on personal preference.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the issue discussion and the terminal prompt behavior in Reedline. Determine where prompt placement and its configuration are handled, then verify that prompts can be shown at the terminal top or bottom without repeating earlier prompts and that the choice is configurable.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.