pry-editline 1.1.0 → 1.1.1
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/README.markdown +1 -1
- data/lib/pry-editline.rb +6 -5
- data/pry-editline.gemspec +1 -1
- metadata +4 -4
data/README.markdown
CHANGED
@@ -33,7 +33,7 @@ already works. It stands for "open".
|
|
33
33
|
> What about vi readline bindings?
|
34
34
|
|
35
35
|
They're supported, too. In addition to `C-x C-e` and `C-o` in insert
|
36
|
-
mode, you can use `o` in normal mode.
|
36
|
+
mode, you can use `o` or `v` in normal mode.
|
37
37
|
|
38
38
|
> It's not working on OS X.
|
39
39
|
|
data/lib/pry-editline.rb
CHANGED
@@ -16,8 +16,8 @@ module PryEditline
|
|
16
16
|
].compact.detect { |x| File.exist?(x) }
|
17
17
|
|
18
18
|
require 'tempfile'
|
19
|
-
file = Tempfile.new('inputrc')
|
20
|
-
file.puts <<-EOF
|
19
|
+
@file = Tempfile.new('inputrc')
|
20
|
+
@file.puts <<-'EOF'
|
21
21
|
set keymap vi-insert
|
22
22
|
"\C-a": beginning-of-line
|
23
23
|
"\C-b": backward-char
|
@@ -32,6 +32,7 @@ set keymap vi-insert
|
|
32
32
|
"\C-o": "\C-e \C-a\t\C-k\C-x\C-l"
|
33
33
|
set keymap vi-command
|
34
34
|
"o": "A \C-a\t\C-k\C-x\C-l\e"
|
35
|
+
"v": "A \C-a\t\C-k\C-x\C-l\e"
|
35
36
|
set keymap emacs
|
36
37
|
"\C-x\C-l": redraw-current-line
|
37
38
|
"\C-x\C-e": "\C-e \C-a\t\C-k\C-x\C-l"
|
@@ -40,9 +41,9 @@ $if mode=vi
|
|
40
41
|
set keymap vi
|
41
42
|
$endif
|
42
43
|
EOF
|
43
|
-
file.puts "$include #{inputrc}" if inputrc
|
44
|
-
file.close
|
45
|
-
ENV['INPUTRC'] = file.path
|
44
|
+
@file.puts "$include #{inputrc}" if inputrc
|
45
|
+
@file.close
|
46
|
+
ENV['INPUTRC'] = @file.path
|
46
47
|
end
|
47
48
|
|
48
49
|
def self.completion_proc
|
data/pry-editline.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-editline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-12-14 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &70304880022060 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70304880022060
|
25
25
|
description:
|
26
26
|
email:
|
27
27
|
- ruby@tpope.org
|