ruco 0.2.15 → 0.2.16

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruco (0.2.15)
4
+ ruco (0.2.16)
5
5
  clipboard (>= 0.9.8)
6
6
  language_sniffer
7
7
  textpow1x (>= 1.2.5)
@@ -58,6 +58,7 @@ module Ruco
58
58
  when :"Shift+up" then @focused.selecting { move(:relative, -1, 0) }
59
59
  when :"Shift+left" then @focused.selecting { move(:relative, 0, -1) }
60
60
  when :"Ctrl+Shift+left", :"Alt+Shift+left" then @focused.selecting{ move(:jump, :left) }
61
+ when :"Ctrl+Shift+right", :"Alt+Shift+right" then @focused.selecting{ move(:jump, :right) }
61
62
  when :"Shift+end" then @focused.selecting{ move(:to_eol) }
62
63
  when :"Shift+home" then @focused.selecting{ move(:to_bol) }
63
64
 
data/lib/ruco/keyboard.rb CHANGED
@@ -188,7 +188,7 @@ class Keyboard
188
188
  else
189
189
  # when connected via ssh escape sequences are used
190
190
  if escape_sequence?(sequence)
191
- stringified = bytes_to_string(sequence).sub("\e",'^').sub('[[','[')
191
+ stringified = bytes_to_string(sequence).sub(/\e+/,'^').sub('[[','[')
192
192
  [translate_key_to_code(stringified)]
193
193
  else
194
194
  bytes_to_key_codes(sequence)
data/lib/ruco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ruco
2
- VERSION = Version = "0.2.15"
2
+ VERSION = Version = "0.2.16"
3
3
  end
@@ -101,6 +101,16 @@ describe Keyboard do
101
101
  output.should == [:"Shift+up"]
102
102
  end
103
103
 
104
+ it "recognises escape sequence for mac iterm Ctrl+Shift+right" do
105
+ type [27, 91, 67]
106
+ output.should == [:"Ctrl+Shift+right"]
107
+ end
108
+
109
+ it "recognises escape sequence for mac iterm Ctrl+Shift+left" do
110
+ type [27, 27, 91, 68]
111
+ output.should == [:"Ctrl+Shift+left"]
112
+ end
113
+
104
114
  if RUBY_VERSION > '1.9.0'
105
115
  it "can handle strings from 1.9" do
106
116
  type ['a']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.15
4
+ version: 0.2.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-13 00:00:00.000000000 Z
12
+ date: 2012-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clipboard
@@ -145,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  segments:
147
147
  - 0
148
- hash: 4357382411809922102
148
+ hash: 1329174606110486476
149
149
  required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements:
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  segments:
156
156
  - 0
157
- hash: 4357382411809922102
157
+ hash: 1329174606110486476
158
158
  requirements: []
159
159
  rubyforge_project:
160
160
  rubygems_version: 1.8.24