Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Feature request for easier keybinding setup #163

Open
ilanbiala opened this issue Aug 22, 2014 · 13 comments
Open

Feature request for easier keybinding setup #163

ilanbiala opened this issue Aug 22, 2014 · 13 comments

Comments

@ilanbiala
Copy link

I'm currently experimenting with Atom keymaps, and I noticed that creating a keybinding seems somewhat complicated. I'd like to suggest a feature to make it simpler for most keymaps people will want to change. Take this list of bindings for example:

screenshot 2014-08-18 17 24 35

If I'd like to change the keystroke for the first command (autocomplete-plus:confirm), I can just click on the <li>, and it will record my keystroke and override the package's default by inserting it into a keymap.cson. Something like this
screenshot 2014-08-18 17 28 17
would show up and I could record my new keybinding.

It's just a thought, but I think that if it were implemented, many people would appreciate it and use it most of the time when altering keymaps in Atom.

@gespinha
Copy link

This would help solve a lot of keybinding issues I've read over the discussions pages. At least, temporarily ;)

@ilanbiala
Copy link
Author

@izuzak do you know if this would be accepted as a part of the core settings-view package? I'm interested in making this happen if it's something you guys are interested in adding to Atom config.

@kevinsawicki
Copy link
Contributor

do you know if this would be accepted as a part of the core settings-view package?

Definitely 👍

@gespinha
Copy link

@ilanbiala Just to add to your main idea at the top: there should always be a button that would restore the defaults.

@ilanbiala
Copy link
Author

@gespinha yeah that would be nice. Should be somewhat easy too, considering package developers specify the default shortcuts.

@kevinsawicki is the proposed implementation as it stands now what you guys are interested in, or a different implementation of the same idea?

@kevinsawicki
Copy link
Contributor

is the proposed implementation as it stands now what you guys are interested in

Yeah, having the keybindings be editable, and allowing you to press the keybinding you want to change it to, and then it writing that out to your ~/.atom/keymap.cson file sounds good to me.

@ilanbiala
Copy link
Author

Alright, I'll see what I can put together.

@kevinsawicki
Copy link
Contributor

Great, thanks!

@gespinha
Copy link

@ilanbiala Once you start working on this please post here the link to the repo, I'll gladly help you test this!

@ilanbiala
Copy link
Author

@gespinha @kevinsawicki I'm actually a little too busy right now to work on this. I just wanted to let anyone know that they shouldn't hold back if they'd like to put together an implementation.

@ilanbiala
Copy link
Author

Has anyone started working on this?

@thedaniel
Copy link
Contributor

No, not yet.

@ilanbiala
Copy link
Author

I put together a small POC for recording keybindings. @thedaniel @kevinsawicki in what formatting are keybindings stored?

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

No branches or pull requests

5 participants