karabiner 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5d00c913848983372f0894abb2bab585046f66c
4
- data.tar.gz: 8e43560929d02d39ee67c4c656b9240105a69f2b
3
+ metadata.gz: a6223024f8b78b87a4cbd11281079f7a5d6db04e
4
+ data.tar.gz: ccf5792596a2e20b69251d8b63f53e305651b98a
5
5
  SHA512:
6
- metadata.gz: f1009678a72ec6460516d8a422d3fe09500c1f41e63c73ae099bb94bb2b1a44bf2d733aaa87c983616298c2e441041ee7fa7fd4a1486e2d0c0fafc6f11ea3f85
7
- data.tar.gz: 499d924d7d6ab0d2a34cc6c7d6e036bfc503f0ff66e4bfcbb056481818fed1cc734251e20dd7f2e95c9ccc31567862288c47ac7468a3ceeb886292cc9644eeec
6
+ metadata.gz: 06936969d2a768b44d5e778b99ec1d06685aae82c56568e57a436cdc9578bf586e8c1d2e3c3662bbb7fe1d701c15fa60520c71bd9bfb01c681c6f07dacb4761f
7
+ data.tar.gz: 659c1acc3a4cb3b4e7bb39e00ea7268952c4bc650132fcb0020ad51d3f5c7e38e74bcd36016ae73f05db0b3820fa8ad872509984a500e4e7ae7d8482de2e8b87
data/README.md CHANGED
@@ -103,7 +103,7 @@ You have to write "key expression" to specify keys to remap.
103
103
  a b c ... x y z
104
104
  0 1 2 ... 7 8 9
105
105
  F1 F2 ... F11 F12
106
- \ [ ] ; ' , . / - =
106
+ \ [ ] ; ' ` , . / - =
107
107
  Up Down Right Left
108
108
  space tab delete forward_delete capslock
109
109
 
@@ -113,6 +113,33 @@ Cmd_R Cmd_L
113
113
  Shift_R Shift_L
114
114
  ```
115
115
 
116
+ ## Sample
117
+
118
+ ```rb
119
+ item "Application shortcuts" do
120
+ remap "C-o", to: invoke("YoruFukurou")
121
+ remap "C-u", to: invoke("Google Chrome")
122
+ remap "C-h", to: invoke("iTerm")
123
+ end
124
+
125
+ item "Control+PNBF to Up/Down/Left/Right" do
126
+ remap "C-p", to: "Up"
127
+ remap "C-n", to: "Down"
128
+ remap "C-b", to: "Left"
129
+ remap "C-f", to: "Right"
130
+ end
131
+
132
+ appdef "HIPCHAT", equal: "com.hipchat.HipChat"
133
+ item "HipChat Room Change", only: "HIPCHAT" do
134
+ remap "Cmd-K", to: "Cmd-Shift-["
135
+ remap "Cmd-J", to: "Cmd-Shift-]"
136
+ end
137
+
138
+ item "Window change in the same app" do
139
+ remap "Opt-tab", to: "Cmd-F1"
140
+ end
141
+ ```
142
+
116
143
  ## Contributing
117
144
 
118
145
  1. Fork it ( https://github.com/k0kubun/karabiner-dsl/fork )
File without changes
data/lib/karabiner/key.rb CHANGED
@@ -24,6 +24,7 @@ class Karabiner::Key
24
24
  "/" => "SLASH",
25
25
  "=" => "EQUAL",
26
26
  "'" => "QUOTE",
27
+ "`" => "BACKQUOTE",
27
28
  "Ctrl_R" => "CONTROL_R",
28
29
  "Ctrl_L" => "CONTROL_L",
29
30
  "Opt_R" => "OPTION_R",
@@ -1,3 +1,3 @@
1
1
  class Karabiner
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
File without changes
File without changes
@@ -79,6 +79,7 @@ describe Karabiner::Key do
79
79
  "/" => "KeyCode::SLASH",
80
80
  "=" => "KeyCode::EQUAL",
81
81
  "'" => "KeyCode::QUOTE",
82
+ "`" => "KeyCode::BACKQUOTE",
82
83
  "Ctrl_R" => "KeyCode::CONTROL_R",
83
84
  "Ctrl_L" => "KeyCode::CONTROL_L",
84
85
  "Opt_R" => "KeyCode::OPTION_R",
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karabiner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-16 00:00:00.000000000 Z
11
+ date: 2015-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -98,9 +98,9 @@ files:
98
98
  - Rakefile
99
99
  - bin/karabiner
100
100
  - bin/karabiner-dsl
101
- - dotremap.gemspec
102
101
  - img/disabled.png
103
102
  - img/enabled.png
103
+ - karabiner.gemspec
104
104
  - lib/karabiner.rb
105
105
  - lib/karabiner/appdef.rb
106
106
  - lib/karabiner/cli.rb
@@ -119,11 +119,11 @@ files:
119
119
  - lib/karabiner/version.rb
120
120
  - lib/karabiner/vkopenurldef.rb
121
121
  - lib/karabiner/xml_tree.rb
122
- - spec/lib/dotremap/appdef_spec.rb
123
- - spec/lib/dotremap/karabiner_spec.rb
124
- - spec/lib/dotremap/key_spec.rb
125
- - spec/lib/dotremap/remap_spec.rb
126
- - spec/lib/dotremap_spec.rb
122
+ - spec/lib/karabiner/appdef_spec.rb
123
+ - spec/lib/karabiner/karabiner_spec.rb
124
+ - spec/lib/karabiner/key_spec.rb
125
+ - spec/lib/karabiner/remap_spec.rb
126
+ - spec/lib/karabiner_spec.rb
127
127
  - spec/spec_helper.rb
128
128
  homepage: https://github.com/k0kubun/karabiner-dsl
129
129
  licenses:
@@ -145,14 +145,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  requirements: []
147
147
  rubyforge_project:
148
- rubygems_version: 2.2.2
148
+ rubygems_version: 2.4.5
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: Lightweight keyremap configuration DSL
152
152
  test_files:
153
- - spec/lib/dotremap/appdef_spec.rb
154
- - spec/lib/dotremap/karabiner_spec.rb
155
- - spec/lib/dotremap/key_spec.rb
156
- - spec/lib/dotremap/remap_spec.rb
157
- - spec/lib/dotremap_spec.rb
153
+ - spec/lib/karabiner/appdef_spec.rb
154
+ - spec/lib/karabiner/karabiner_spec.rb
155
+ - spec/lib/karabiner/key_spec.rb
156
+ - spec/lib/karabiner/remap_spec.rb
157
+ - spec/lib/karabiner_spec.rb
158
158
  - spec/spec_helper.rb
159
+ has_rdoc: