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

Make keyboard shortcuts (etc.) work as expected on Linux #1306

Closed
TylerRick opened this issue Dec 23, 2016 · 7 comments
Closed

Make keyboard shortcuts (etc.) work as expected on Linux #1306

TylerRick opened this issue Dec 23, 2016 · 7 comments

Comments

@TylerRick
Copy link

TylerRick commented Dec 23, 2016

  • OS version and name: Ubuntu 16.04
  • Hyper version: Hyper 1.0.0
  • The issue is reproducible in vanilla Hyper.app: Yes

Issue

First of all, thanks for creating Hyper and keep up the fantastic work! I'm just trying out the 1.0 release on Linux and am really impressed so far — I really want to switch to it as my primary terminal, but there are just a few blockers preventing me from switching yet, mostly to do with the keyboard bindings.

Making shortcuts customizable (#657, #872) will go a long way towards improving this, but I do also wonder if the defaults on Linux should be changed. Could you please make the default keyboard shortcuts on Linux as much as possible like gnome-terminal's? 😄 Maybe the current defaults make sense to those coming from other terminals and maybe I'm too biased by gnome-terminal (as I'm guessing the current defaults are more biased towards Mac/iTerm/Windows conventions), but to me at least some of the defaults aren't what I'd expect.

In general, I expect Ctrl commands to be received by the CLI app, not the terminal. Fortunately it looks many of these commands will be fixed by changing default prefix from Ctrl to Ctrl+Shift (#1191) 🤞, including hopefully:

Other keyboard shortcuts that are currently not as expected and I don't think/am not sure if #1191 would help with:

Another suggestion for making migration from other terminal apps easier:

A few other features I'm missing from gnome-terminal:

  • The ability to move tabs, both by dragging with the mouse and with keyboard (Shift+Ctrl+PageUp/PageDown)
  • When I open a new tab, I'm used to it keeping the same working directory as the tab I was just on. Not sure how they do that but it's nice to not have to manually cd all the way back into some deep subdirectory. I would especially expect this behavior if I'm splitting an existing tab.
@albinekb
Copy link
Contributor

First: really nice issue 👏
Second: PR-welcome 😘

@nbolten
Copy link

nbolten commented Dec 24, 2016

Hi @TylerRick, I like your accelerator suggestions so I updated #1191 to reflect them! I modified the word skip and switch tab accelerators.

I had to skip some, though:

  • I didn't add the middle click buffer since that's probably a bit more work than just messing with the key bindings.
  • I didn't do anything with the alt-key-to-select-menus either for the same reason. I also can't test it super quickly on my end, because menus are totally broken for hyper on Gnome.

@TylerRick
Copy link
Author

Thanks, @nbolten! Yeah, those other ideas are rather unrelated so that's fine. 😄

@flybayer
Copy link
Contributor

Good ideas, @TylerRick!

On your very last point, I think you want this plugin: https://github.com/hharnisc/hypercwd

@ppot
Copy link
Contributor

ppot commented Feb 12, 2017

@TylerRick I suggest you look at ppot#11
and list in comments the desired keybinding for linux

{
 "window:devtools":"Cmd+Alt+I",
 "window:reload":"Cmd+R",
 "window:reloadFull":"Cmd+Shift+R",
 "window:preferences":"Cmd+,",
 "zoom:reset":"Cmd+0",
 "zoom:in":"Cmd+plus",
 "zoom:out":"Cmd+-",
 "window:new":"Cmd+N",
 "window:minimize": "Cmd+M",
 "window:full": "Cmd-Ctrl-F",
 "window:close":"Cmd+Shift+W",
 
 "tab:new":"Cmd+T",
 "tab:next":"Cmd+shift+]",
 "tab:prev":"Cmd+shift+[",
 "pane:next":"Cmd+]",
 "pane:prev":"Cmd+[",
 "pane:left":"Cmd+Alt+Left",
 "pane:right":"Cmd+Alt+Right",
 "pane:up":"Cmd+Alt+Up",
 "pane:down":"Cmd+Alt+Down",
 "pane:vertical":"Cmd+D",
 "pane:horizontal":"Cmd+Shift+D",
 "pane:close":"Cmd+W",
 
 "editor:undo":"Cmd+Z",
 "editor:redo":"Cmd+Shift+Z",
 "editor:cut":"Cmd+X",
 "editor:copy":"Cmd+C",
 "editor:paste":"Cmd+V",
 "editor:selectAll":"Cmd+A",
 "editor:clearBuffer":"Cmd+K",
 
 "plugins:update": "Cmd+Shift+U"
}

@pecastro
Copy link

pecastro commented Oct 8, 2017

I've searched through the issues and just tried the master branch and I still don't understand one thing ...

I noticed that most of the readline commands still don't work in the terminal.

https://en.wikipedia.org/wiki/GNU_Readline#Emacs_keyboard_shortcuts

Is it possible to define these in the config file or is there work required to be done to make these work ?

@Stanzilla
Copy link
Collaborator

Hey there, please try again with the new Hyper v2 release and open a new issue if the problem stills exists. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants