ruco 0.0.23 → 0.0.24
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.md +2 -2
- data/VERSION +1 -1
- data/lib/ruco/application.rb +8 -0
- data/ruco.gemspec +1 -1
- data/spec/ruco/application_spec.rb +8 -0
- metadata +3 -3
data/Readme.md
CHANGED
@@ -5,7 +5,7 @@ Alpha, lets see if this works...
|
|
5
5
|
Finished:
|
6
6
|
|
7
7
|
- viewing / scrolling / editing / saving / creating
|
8
|
-
- selecting via Shift+left/right/up/down
|
8
|
+
- selecting via Shift+left/right/up/down and Ctrl+a(all)
|
9
9
|
- Home/End + Page up/down
|
10
10
|
- basic Tab support (tab == 2 space)
|
11
11
|
- change-indicator (*)
|
@@ -69,7 +69,7 @@ TODO
|
|
69
69
|
- syntax highlighting
|
70
70
|
- raise when binding to a unsupported key
|
71
71
|
- search & replace
|
72
|
-
- 1.8: unicode support <-> already finished but
|
72
|
+
- 1.8: unicode support <-> already finished but unusable due to Curses (see encoding branch)
|
73
73
|
|
74
74
|
Author
|
75
75
|
======
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.24
|
data/lib/ruco/application.rb
CHANGED
@@ -149,6 +149,13 @@ module Ruco
|
|
149
149
|
editor.delete_line
|
150
150
|
end
|
151
151
|
|
152
|
+
action :select_all do
|
153
|
+
@focused.move(:to, 0, 0)
|
154
|
+
@focused.selecting do
|
155
|
+
move(:to, 9999, 9999)
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
152
159
|
action :find do
|
153
160
|
ask("Find: ", :cache => true){|result| editor.find(result) }
|
154
161
|
end
|
@@ -161,6 +168,7 @@ module Ruco
|
|
161
168
|
bind :"Ctrl+q", :quit
|
162
169
|
bind :"Ctrl+g", :go_to_line
|
163
170
|
bind :"Ctrl+f", :find
|
171
|
+
bind :"Ctrl+a", :select_all
|
164
172
|
bind :"Ctrl+d", :delete_line
|
165
173
|
bind :"Ctrl+x", :cut
|
166
174
|
bind :"Ctrl+c", :copy
|
data/ruco.gemspec
CHANGED
@@ -74,6 +74,14 @@ describe Ruco::Application do
|
|
74
74
|
app.key(:enter).should == :quit
|
75
75
|
end
|
76
76
|
end
|
77
|
+
|
78
|
+
it "can select all" do
|
79
|
+
write("1\n2\n3\n4\n5\n")
|
80
|
+
app.key(:down)
|
81
|
+
app.key(:"Ctrl+a")
|
82
|
+
app.key(:delete)
|
83
|
+
app.view.should include("\n\n\n")
|
84
|
+
end
|
77
85
|
|
78
86
|
describe 'go to line' do
|
79
87
|
it "goes to the line" do
|
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: 47
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 24
|
10
|
+
version: 0.0.24
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Grosser
|