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

Keyboard shortcut manager plugin #251

Closed
lorensr opened this issue Jul 18, 2016 · 5 comments
Closed

Keyboard shortcut manager plugin #251

lorensr opened this issue Jul 18, 2016 · 5 comments
Labels
👩‍🔬 Status: In Progress Issue or PR is currently active and work is in progress 🛠 Type: Feature Request Issue or PR is a feature request/proposal for Hyper

Comments

@lorensr
Copy link

lorensr commented Jul 18, 2016

I'm interested in a plugin that allows the user to assign keys to the following:

  1. a few included commands like forward-word (moves cursor to end of word)
  2. commands provided by another extensions (for instance open new tab and cd to same directory)
  3. arbitrary JS? (unless this would be ~as difficult as publishing your own extension)

Maybe something like this:

module.exports = {
  config: {
    keys: [
      'alt-f': 'forward-word',
      'ctrl-alt-t': 'hypercwd/new-tab-current-dir',
      'ctrl-w': (store) -> {
        store.dispatch({
          type: 'WOW_MODE_TOGGLE'
        });
      }
    ]
  }
}

Anyone have advice on the best way to architect this? cc @hharnisc

@hharnisc
Copy link
Contributor

Starting to think about this. I'm looking at this chunk of code https://github.com/zeit/hyperterm/blob/master/app/lib/containers/hyperterm.js#L31-L64

I'm thinking of making these props that can be overridden and/or extended. Just an idea at this point though.

@timothyis timothyis added the 🔌 Type: Plugin Request Issue is a plugin request for Hyper label Jul 26, 2016
@iamstarkov
Copy link
Contributor

it will not work as a standalone plugin with current code base

@iamstarkov
Copy link
Contributor

i made a relevant proposal to discuss #872

@iamstarkov
Copy link
Contributor

check #925 out

@ppot ppot mentioned this issue Feb 10, 2017
26 tasks
@chabou chabou added 👩‍🔬 Status: In Progress Issue or PR is currently active and work is in progress 🛠 Type: Feature Request Issue or PR is a feature request/proposal for Hyper and removed 🔌 Type: Plugin Request Issue is a plugin request for Hyper labels Apr 13, 2017
@ppot
Copy link
Contributor

ppot commented Aug 15, 2017

closed in #1876

@ppot ppot closed this as completed Aug 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👩‍🔬 Status: In Progress Issue or PR is currently active and work is in progress 🛠 Type: Feature Request Issue or PR is a feature request/proposal for Hyper
Projects
None yet
Development

No branches or pull requests

6 participants