clearBuffer when prompt have a line break
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
- OS version and name: macOS Catalina 10.15.3
- Hyper.app version: 3.0.2 (stable)
- Link of a Gist with the contents of your .hyper.js: https://gist.github.com/crtlf/503a1fe59032cda1c526caeebf3f273a
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.

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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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