75 Commits

Author SHA1 Message Date
Kevin Sawicki
4c65d711b0 Log warning when ~/.atom/keymap.cson can't be parsed
Previously an uncaught error would be thrown and the file
would no longer be watched
2014-02-20 14:31:27 -08:00
Kevin Sawicki
c515cf880c Verify selector before registering keybinding 2014-02-20 12:23:08 -08:00
Kevin Sawicki
4cc18cd936 Require File from pathwatcher 2014-02-19 09:19:08 -08:00
Kevin Sawicki
8cd164ef5e 📝 doc parameters in keymap.coffee 2014-02-06 16:39:23 -08:00
Kevin Sawicki
43ba0b9529 📝 Mark Keymap class as public 2014-02-04 10:04:06 -08:00
probablycorey
7d1be155fa 💄 2014-01-21 17:55:05 -08:00
probablycorey
e53ed10169 Only allow one platform specific keybinding file. 2014-01-21 16:34:52 -08:00
probablycorey
2e4e178091 Don't load keymap files with other platforms in the suffix
Example: On osx `keymap.cson` and `keymap-darwin.cson` would load. But
`keymap-win32.cson` would not load.
2014-01-21 16:03:34 -08:00
Kevin Sawicki
8436e8f62e Reload user keymap when it is moved/removed 2014-01-20 10:37:13 -08:00
probablycorey
d56137e3c0 Always try to unwatch current user keymap 2014-01-02 09:56:41 -08:00
probablycorey
88ee021b4d Watch user's keycap for changes and apply them 2013-12-31 15:21:42 -08:00
Kevin Sawicki
3ce6176313 Rename rootView to workspaceView 2013-11-26 11:02:53 -08:00
Matt Colyer
6c1b63d352 Pass originalEvent property on command events
vim-mode needs access to the original keystroke that triggered the
event.
2013-11-21 17:49:07 -05:00
Matt Colyer
66171e0301 Modifiers need to be added in alphabetical order 2013-11-21 16:17:37 -05:00
Matt Colyer
161c9a62b5 Merge branch 'master' into meta-to-command
Conflicts:
	spec/keymap-spec.coffee
2013-11-21 09:59:49 -05:00
Kevin Sawicki
f9498732a5 Add atom prefix to rootView 2013-11-20 17:23:47 -08:00
Ben Ogle
819ac9ea68 Add keyBindingsForCommandMatchingElement to keymap 2013-11-20 15:43:02 -08:00
Matt Colyer
55e90f8ae1 Use cmd instead of command 2013-11-19 15:29:37 -08:00
Matt Colyer
1e4504e7f3 Use command instead of meta 2013-11-19 15:16:55 -08:00
probablycorey
a0c6a94409 Added documentation for Keymap's public classes 2013-11-15 14:23:52 -08:00
probablycorey
80cdf61fa4 Update remove spec 2013-11-15 14:09:24 -08:00
probablycorey
29c3fadb6f Move public methods to top of file 2013-11-15 14:07:01 -08:00
probablycorey
1ae3806c69 Use source instead of name 2013-11-15 14:06:03 -08:00
probablycorey
98b509441c Move methods into KeyBinding class 2013-11-15 14:05:35 -08:00
probablycorey
cb8e378af6 Use keyBinding in place of binding in method names 2013-11-15 13:49:17 -08:00
probablycorey
8ed4923e58 Replace binding-set with key-binding 2013-11-15 13:32:09 -08:00
probablycorey
529c829438 💄 2013-11-15 11:54:18 -08:00
probablycorey
809a02ca10 Clone keyBindings by default 2013-11-15 11:54:09 -08:00
probablycorey
4852ba6d95 Don't store binding sets, instead store a keyBinding array 2013-11-15 10:21:38 -08:00
probablycorey
ca8ae9ad61 Remove bindingsForElement 2013-11-14 16:45:09 -08:00
probablycorey
2fb00af255 Rename keyMapping to keyBinding 2013-11-14 16:20:35 -08:00
probablycorey
fc0a46d6b2 Add mappingsForKeystrokeMatchingElement 2013-11-14 16:05:10 -08:00
probablycorey
fd443a8b68 Reorder args 2013-11-14 16:05:01 -08:00
probablycorey
c43f277c5b Remove getAllKeyMappings 2013-11-14 14:46:21 -08:00
probablycorey
dd0938dca6 Merge remote-tracking branch 'origin/master' into cj-keymap-cleanup 2013-11-14 14:43:37 -08:00
probablycorey
c3aea1d149 Remove keymap.keystrokeByCommmandForSelector 2013-11-14 14:18:54 -08:00
probablycorey
21060ae85a Update public keymap interface 2013-11-14 08:33:23 -08:00
probablycorey
8f9f5ed0ed Update specs 2013-11-11 15:46:17 -08:00
probablycorey
d71e58ec33 Use keystroke even when referring to multiKeystrokes
The use of keystroke and keystrokes was becoming confusing. When I 
started thinking of a keystroke as a set of keys that trigger a
command it became easier to think about.
2013-11-11 14:05:48 -08:00
probablycorey
8c8f1bc048 Make keymap changes backwards compatible 2013-11-11 11:42:11 -08:00
probablycorey
9914085ead Simplify keymap selector matching 2013-11-11 11:42:10 -08:00
Kevin Sawicki
e31dbfd7d6 Store resourcePath as ivar 2013-11-11 10:40:50 -08:00
Kevin Sawicki
ad0d0473b3 Add missing paren 2013-11-11 10:33:09 -08:00
Kevin Sawicki
0b78450917 🔥 config.bundledKeymapsDirPath 2013-11-11 10:33:09 -08:00
Kevin Sawicki
23c8db09b7 💉 paths into Keymap constructor 2013-11-11 09:05:39 -08:00
probablycorey
b041c0176c Merge remote-tracking branch 'origin/master' into cj-sublime-bindings 2013-11-01 11:33:13 -07:00
probablycorey
b22d64745f Handle multi-keystroke keybinding
Previously for a binding like `meta-x meta-y` you had to hold down the 
meta key. This makes it possible to release the meta key between
key presses.
2013-11-01 11:15:01 -07:00
probablycorey
9e8b1fb661 Handle modifier keydown events
When only a modifier is pressed it still triggers a keydown event. This
normalizes the keystroke name for those events.
2013-11-01 11:02:46 -07:00
Kevin Sawicki
83dcf79bcf Use fs-plus 2013-11-01 08:46:02 -07:00
probablycorey
cde0fae1f3 Rename Keymap::loadUserKeymaps to Keymap::loadUserKeymap 2013-10-28 09:19:23 -07:00