ruco 0.0.52 → 0.0.53
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +6 -1
- data/Readme.md +4 -0
- data/VERSION +1 -1
- data/lib/ruco/keyboard.rb +3 -2
- data/ruco.gemspec +7 -3
- metadata +11 -8
data/Rakefile
CHANGED
@@ -50,9 +50,14 @@ begin
|
|
50
50
|
gem.email = "michael@grosser.it"
|
51
51
|
gem.homepage = "http://github.com/grosser/#{gem.name}"
|
52
52
|
gem.authors = ["Michael Grosser"]
|
53
|
+
gem.post_install_message = <<-TEXT
|
54
|
+
|
55
|
+
Ubuntu: sudo apt-get install xclip
|
56
|
+
|
57
|
+
TEXT
|
53
58
|
end
|
54
59
|
|
55
60
|
Jeweler::GemcutterTasks.new
|
56
61
|
rescue LoadError
|
57
62
|
puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
|
58
|
-
end
|
63
|
+
end
|
data/Readme.md
CHANGED
@@ -15,6 +15,7 @@ Features:
|
|
15
15
|
- stays at last position when reopening a file
|
16
16
|
- opens file at line with `ruco foo/bar.rb:32` syntax
|
17
17
|
- keeps whatever newline format you use (\r \n \r\n)
|
18
|
+
- working backspace and delete key on Termial.app
|
18
19
|
- (optional) remove trailing whitespace on save
|
19
20
|
- (optional) blank line before eof on save
|
20
21
|
- (optional) line numbers
|
@@ -80,6 +81,9 @@ TIPS
|
|
80
81
|
|
81
82
|
TODO
|
82
83
|
=====
|
84
|
+
- check writeable status every x seconds (e.g. in background) -> faster while typing
|
85
|
+
- search help e.g. 'Nothing found' '#4 of 6 hits' 'no more hits, start from beginning ?'
|
86
|
+
- hightlight current work when reopening search (so typing replaces it)
|
83
87
|
- align soft-tabs
|
84
88
|
- highlight tabs (e.g. strange character or reverse/underline/color)
|
85
89
|
- big warning when editing a not-writable file
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.53
|
data/lib/ruco/keyboard.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'curses'
|
2
2
|
|
3
3
|
class Keyboard
|
4
|
+
SWAP_DELETE = (ENV['TERM'] == 'xterm-color')
|
4
5
|
MAX_CHAR = 255
|
5
6
|
ENTER = 13
|
6
7
|
ESCAPE = 27
|
@@ -80,8 +81,8 @@ class Keyboard
|
|
80
81
|
when 9 then :tab
|
81
82
|
when 353 then :"Shift+tab"
|
82
83
|
when ENTER then :enter # shadows Ctrl+m
|
83
|
-
when 263, 127 then :backspace
|
84
|
-
when Curses::KEY_DC then :delete
|
84
|
+
when 263, (SWAP_DELETE ? Curses::KEY_DC : 127) then :backspace
|
85
|
+
when '^[3~', (SWAP_DELETE ? 127 : Curses::KEY_DC) then :delete
|
85
86
|
|
86
87
|
# misc
|
87
88
|
when 0 then :"Ctrl+space"
|
data/ruco.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ruco}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.53"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael Grosser"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-05-06}
|
13
13
|
s.default_executable = %q{ruco}
|
14
14
|
s.email = %q{michael@grosser.it}
|
15
15
|
s.executables = ["ruco"]
|
@@ -64,8 +64,12 @@ Gem::Specification.new do |s|
|
|
64
64
|
"spec/spec_helper.rb"
|
65
65
|
]
|
66
66
|
s.homepage = %q{http://github.com/grosser/ruco}
|
67
|
+
s.post_install_message = %q{
|
68
|
+
Ubuntu: sudo apt-get install xclip
|
69
|
+
|
70
|
+
}
|
67
71
|
s.require_paths = ["lib"]
|
68
|
-
s.rubygems_version = %q{1.
|
72
|
+
s.rubygems_version = %q{1.6.2}
|
69
73
|
s.summary = %q{Commandline editor written in ruby}
|
70
74
|
s.test_files = [
|
71
75
|
"spec/ruco/application_spec.rb",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruco
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 117
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 53
|
10
|
+
version: 0.0.53
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Grosser
|
@@ -15,11 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-05-06 00:00:00 +02:00
|
19
19
|
default_executable: ruco
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
22
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
23
23
|
none: false
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
@@ -30,8 +30,8 @@ dependencies:
|
|
30
30
|
- 9
|
31
31
|
- 4
|
32
32
|
version: 0.9.4
|
33
|
+
requirement: *id001
|
33
34
|
prerelease: false
|
34
|
-
version_requirements: *id001
|
35
35
|
type: :runtime
|
36
36
|
name: clipboard
|
37
37
|
description:
|
@@ -95,7 +95,10 @@ has_rdoc: true
|
|
95
95
|
homepage: http://github.com/grosser/ruco
|
96
96
|
licenses: []
|
97
97
|
|
98
|
-
post_install_message:
|
98
|
+
post_install_message: |+
|
99
|
+
|
100
|
+
Ubuntu: sudo apt-get install xclip
|
101
|
+
|
99
102
|
rdoc_options: []
|
100
103
|
|
101
104
|
require_paths:
|
@@ -121,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
124
|
requirements: []
|
122
125
|
|
123
126
|
rubyforge_project:
|
124
|
-
rubygems_version: 1.
|
127
|
+
rubygems_version: 1.6.2
|
125
128
|
signing_key:
|
126
129
|
specification_version: 3
|
127
130
|
summary: Commandline editor written in ruby
|