Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[terminal] Pressing HOME no longer goes to beginning of line, but scrolls up #7304

Closed
jankeromnes opened this issue Mar 10, 2020 · 7 comments
Assignees
Labels
bug bugs found in the application help wanted issues meant to be picked up, require help terminal issues related to the terminal

Comments

@jankeromnes
Copy link
Member

Description

There was an XtermJS upgrade recently, and I think that it broke the HOME shortcut in Theia's Terminal.

Here is a screencast showing the new problem: https://youtu.be/_auOJvi17Rs

Reproduction Steps

  1. Start typing some command into Theia's terminal
  2. Press your HOME key (or corresponding key-stroke, e.g. fn + LeftArrow on a Macbook)

Expected: Cursor jumps to beginning of typed command

Actual: Terminal scrolls all the way to the top(!)

OS and Theia version: latest Theia (in Gitpod on Mac OS)

Diagnostics:

@akosyakov akosyakov added bug bugs found in the application help wanted issues meant to be picked up, require help terminal issues related to the terminal labels Mar 10, 2020
@akosyakov
Copy link
Member

It's a regression after #7121

@AndrienkoAleksandr AndrienkoAleksandr self-assigned this Mar 10, 2020
@AndrienkoAleksandr
Copy link
Contributor

I will take a look.

@AndrienkoAleksandr
Copy link
Contributor

We should use `shift+Home' shortcut.

@akosyakov
Copy link
Member

Resolved by #7305

@jankeromnes
Copy link
Member Author

Thanks again for fixing this @AndrienkoAleksandr!

I confirm that it now works well, but I also noticed a few weird behaviors FYI:

  • Home works as expected 🎉 ❤️
  • End too
  • Shift+Home scrolls to top of Terminal, so works as expected too
  • Shift+End just adds the letter F for some reason (keybinding not actually implemented in Theia, so this is probably Mac OS weirdness, and End already scrolls to bottom of Terminal)
  • PageUp / PageDown don't work in Terminals, except in paginated output (less / git log) where it works well. I think this behavior was pre-existing, and is fine by me.
  • Shift+PageUp / Shift+PageDown forcefully jumps one page up or down, even if you're looking at paginated content (i.e. the less "window" will scroll out of view). I guess that's ok.

@jankeromnes
Copy link
Member Author

I also added two minor questions in #7305 (comment), please take a look when you have time.

@akosyakov
Copy link
Member

@jankeromnes it would be better to put weird behaviour in a new issue, closed issues are not actionable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application help wanted issues meant to be picked up, require help terminal issues related to the terminal
Projects
None yet
Development

No branches or pull requests

3 participants