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

More portable control key awarness (windows and linux) #1525

Closed
KalenAnson opened this Issue Feb 16, 2017 · 11 comments

Comments

Projects
None yet
@KalenAnson
Copy link

KalenAnson commented Feb 16, 2017

  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate
  • Windows 10:
  • 1.2.1:
  • Vanilla:
  • *N/A:
  • Is Vanilla:

Issue

First - I love Hyper and am using it mainly on Windows where I need to crowbar Windows to run bash. The terminal emulator UI is awesome.

The Question

Why does the hyper app use control keys to do anything at all? I am not aware of another terminal emulator that does anything but pass control key codes straight to the shell unless they are paired with another key such as shift or alt.

I know that the control key is used heavily on Windows applications as the shortcut dejour, but hyper is a terminal emulator and these kinds of applications inherently need a different type of control key usage.

Consider:

When running a bash shell in hyper on a Windows machine:

  1. Running tmux with standard alt binding of ctrl - a as the tmux leader does not work. Hyper eats ctrl - a and instead helpfully selects all the text in the current pane.
  2. Using simple bash shortcuts such as ctrl-p to get last command (up arrow replacement) and then ctrl - n to get the next command in history (down arrow replacement) is awkward. Hyper eats crtl - n and creates a new window.
  3. Bash job control. </3 My heart breaks even now, hyper eats ctrl - z.
  4. Don't even try to run vim as any combo of ctrl and one of the following n,t,e,o,w,z,x,v,k,r,m will disappear into hyper and do magical things.

Suggestion:

Can we configure hyper to ignore control keys all together? There are so many problems with running a sh shell (bash, zsh, etc) and having the terminal emulator eat your control keys. (I am aware that this is mainly a problem with the Windows flavor of hyper).

Personally I would be fine with just having the option to disable the hyper control keys, but a case could be made for remapping them to something else so as not to lose features.

I think this issue touches on a lot of others around here as well (copy/paste for example which has just recently been improved).

Edited

I updated the issue name and added the section below to help clarify what seems to be the issue.

Related Issues

#1200 (Control characters not working!)
#1120 (1.0.0 release broke some keybindings) Uncertain
#1047 (Text Navigation with control keys)
#833 (Most common readline keybinding don't work (ctrl-a, ctrl-e, ctrl-w etc.) )
#422 (unable to page scroll using alt using tmux) Possibly related
#233 (Tmux bind `)

@hf

This comment has been minimized.

Copy link

hf commented Feb 21, 2017

I completely agree and has made working with Hyper impossible for me at this time.

@niedzielski

This comment has been minimized.

Copy link

niedzielski commented Feb 23, 2017

This is also a problem on Linux. For example, if I want to type ctrl-r to perform a reverse history look up or if I have my .inputrc configured to for ctrl-left / right (see also #1047), among other bindings, these are all intercepted.

@KalenAnson KalenAnson changed the title More portable Windows control keys??? More portable control keys (windows and linux)??? Feb 23, 2017

@KalenAnson KalenAnson changed the title More portable control keys (windows and linux)??? More portable control key awarness (windows and linux) Feb 23, 2017

@LukeFlynn

This comment has been minimized.

Copy link

LukeFlynn commented Mar 5, 2017

I also am using Bash on Ubuntu for Windows. Over the years, working in a *nix environment, I've become very familiar with control-a to jump to the beginning of a line, etc. This works fine in the actual wrapper around bash.exe, but not in hyper.

@elchinot7

This comment has been minimized.

Copy link

elchinot7 commented Mar 6, 2017

I been used CTRL-a as prefix for tmux, however in a Hyper terminal CTRL-a selects all text. This simple issue is stopping me from use Hyper as my every-day terminal app.

@dawnerd

This comment has been minimized.

Copy link

dawnerd commented Mar 6, 2017

Keep running into this after switching between my mac and linux desktop.

@webframp

This comment has been minimized.

Copy link

webframp commented Mar 8, 2017

Hyper works great on macOS for me, but this is also keeping me from switching to it as my default on Windows 10

@samrocksc

This comment has been minimized.

Copy link

samrocksc commented Apr 2, 2017

I use Ctrl-a for tmux as well. It's a pretty popular configuration for screen/tmux/monad users.

@adambair

This comment has been minimized.

Copy link

adambair commented Apr 12, 2017

Bash on Windows; recently switched from OSX to Windows. I use tmux, vim, and multitude of other console apps. Tried out hyper, worked great on OSX but on Windows it's impossible to do actual work because it swallows the CTRL key.

:facepalm:

edit -- Looks like there might be a solution in the works:

see #1191 and #1509

For the enterprising among us, you can check out / download the PRs and try them... (I'll try this later on)

@Kerwood

This comment has been minimized.

Copy link

Kerwood commented Aug 2, 2017

Sooooo... No solution to this ?

@ppot

This comment has been minimized.

Copy link
Collaborator

ppot commented Aug 2, 2017

@Kerwood You can try latest master I included keymaps

@ppot

This comment has been minimized.

Copy link
Collaborator

ppot commented Aug 15, 2017

close in #1876

@ppot ppot closed this Aug 15, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.