atom-terminal-tab icon indicating copy to clipboard operation
atom-terminal-tab copied to clipboard

Add linux/windows keybindings

Open sylvaindumont opened this issue 7 years ago • 7 comments

Add alt-shift-t keybinding to open terminal. It allows non mac user to open terminal with keybinding.

It could help with #6 if we remove cmd-shift-t.

sylvaindumont avatar Jan 10 '18 19:01 sylvaindumont

+1 for platform-agnostic keybindings

daviwil avatar Jan 10 '18 19:01 daviwil

Agree that cmd-shift-t is probably not a good default, although that is what I would choose to map personally. We shouldn't clobber existing conventions out of the box, though.

jsmecham avatar Jan 10 '18 20:01 jsmecham

I noticed that they keybinding-resolver package uses these CSS classes to do platform-specific bindings:

{
  ".platform-darwin": {
    "cmd-.": "key-binding-resolver:toggle"
  },
  ".platform-win32": {
    "ctrl-.": "key-binding-resolver:toggle"
  },
  ".platform-linux": {
    "ctrl-.": "key-binding-resolver:toggle"
  }
}

I wonder if we could do something similar?

daviwil avatar Jan 17 '18 13:01 daviwil

as proposed by @daviwil I added platform specific bindings, it doesn't change anything for mac users, cmd-shift-t still open terminal instead of reopening last closed tab.

alt-shift-t open terminal for windows/linux users to avoid introducing #6 on windows/linux

sylvaindumont avatar Feb 11 '18 17:02 sylvaindumont

I'm going to address this in #66. Would you mind rebasing this PR on that branch? I'll merge it there and probably make a bunch of changes for Windows and Mac, as well.

jsmecham avatar Feb 12 '18 00:02 jsmecham

@jsmecham rebased on #66 and copy/paste conflicts fixed

sylvaindumont avatar Feb 14 '18 22:02 sylvaindumont

What's the status of this?

forresthopkinsa avatar Aug 04 '21 22:08 forresthopkinsa