vercel / vercel/hyper

clearBuffer when prompt have a line break

Open
#4,245 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate

Issue

I'm using the Spaceship prompt plugin.
By default, the prompt add a line break that displays the prompt in two separate lines.

As you can see in the video below, when using the clearBuffer keymap (Command + K by default), it clears to the second line of the prompt.
Enregistrement de l’écran 2020-02-07 à 09 55 54

Is there a way to tell Hyper to clear showing the 2 last lines instead of only the last one ?

PS : The clear command works as expected though. It's doing it only for the Hyper keymap.

Contributor guide

No contributing guide indexed for this repository

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

No source file or test is identified in the issue. Reproduce the behavior on macOS Catalina with the Spaceship prompt, then compare Hyper's Command+K clearBuffer keymap with the working clear command; done means clearing removes both prompt lines rather than only the last one.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.