warpdotdev / warpdotdev/warp

Command History Blocks Recent Command Output

Open
#3,570 2 comments 18 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:search enhancement triaged
Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Discord username (optional)

No response

Describe the solution you'd like?
I'd like to be able to recall recent commands using the up arrow without 5 rows of command history blocking my view of recent command output in the terminal. Currently it seems like there is no way to view the command history and last lines of the most recent command output at the same time.
Is your feature request related to a problem? Please describe.
With warp's current behavior, I can't modify my most recent command to address typos, etc. based on error messages/output from my most recent command execution. Warp's behavior prevents me from quickly fixing mistakes. This departs from my expectations based on years of CLI usage - normally you can press the up arrow to recall your most recent command and edit it in-place while viewing the most recent command output to see where you made a mistake.
Additional context

Here's a few options that would resolve this issue:

  • add the ability to disable warp's command history functionality and allow default shell behavior - in my experience this means start by recalling the most recent command to the prompt, each up arrow press recalls the next command down the history
  • create a way to display history without overlaying it on top of command output. This could look like adding a way to specify the number of lines of history to display, or presenting the overlay on top of the prompt rather than command output blocks
  • create another input position mode that handles the prompt like 'pin to the top' by having the command prompt pinned to the top of the window, but displays command output like 'pin to the bottom'.
  • implement a context-aware capability to scroll past the bottom of the command output block while there is a command history overlay displayed.

Here's an example. it doesn't fully capture how aggravating this is because you can see the typo over the history overlay, but I hope it demonstrates enough - there's no way to see the last lines of output while the command history is displayed. Since there's no way to recall commands and view the last few lines of output at the same time (command search is an even bigger overlay) I have to give up on my previous command and re-type it again if I want to view the last reported error while I'm fixing my command.
Screenshot 2023-08-22 at 10 04 28 AM

How important is this feature to you?

5 (Can't work without it!)

Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087

None

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

Start by reproducing the command-history overlay with the up arrow and compare it with the most recent command output. Determine which interaction best allows both command editing and viewing the latest output, then verify that the chosen behavior addresses the listed use case without obscuring the error output.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.