mireru 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49dc2f9847431c7c454e31a51a6fab121a121385
4
- data.tar.gz: 1c16885733d833d203b7e341b0c54ba633f317ea
3
+ metadata.gz: 7a5e44166849dd0f28a9ca3fed76087cafe5e3e9
4
+ data.tar.gz: 04edc5e6fed3407dbc9ccaf755b393a5ea6c652f
5
5
  SHA512:
6
- metadata.gz: 573345ab9d63ea7492d9e0fe8c3c904164d9b6621e767f394ff75d4fde896bfc8896a28bc8c4eee1e5b038c892740d6edeaa2975c7a55b4c10bbc017eeec83e4
7
- data.tar.gz: d03f11c3e35095921c868cec068215d4a7660eddf5235da61487dc4253386f819239daea24b1e1926dae0e693c944ccd017ba87f906464ff1aed69fcc9671fb4
6
+ metadata.gz: ab3cc3ee7bdb3a33e4a179d629778366e442c2fe26e8a7798052270337a9d14b9f26cfae2998c42d2c3bc8798f7ecad5deb6ba0492b7433eaf08f6daab676ddb
7
+ data.tar.gz: ca3c1b7cfc990c67b649a555667eae975fa3a77441aefdf798d3e588ef841157171de166518d6be5dfaa5f5a64d3c8f6ca089d607d8b60ecc208c4765cef4f9a
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
- # Mireru - Flexible File Viewer
1
+ # Mireru - Flexible File Viewer Keyboard Friend
2
2
 
3
3
  A file viewer with a focus on flexibility by Ruby/GTK3.
4
4
 
5
+ A friend of a keyboard.
6
+
5
7
  ## Installation
6
8
 
7
9
  $ gem install mireru
@@ -26,6 +28,16 @@ r: reload
26
28
 
27
29
  q: quit
28
30
 
31
+ #### Scroll
32
+
33
+ h: left
34
+
35
+ j: down
36
+
37
+ k: up
38
+
39
+ l: right
40
+
29
41
  #### Image
30
42
 
31
43
  f: fits window size
@@ -52,6 +52,12 @@ Keybind:
52
52
  r: reload
53
53
  q: quit
54
54
 
55
+ scroll:
56
+ h: left
57
+ j: down
58
+ k: up
59
+ l: right
60
+
55
61
  image:
56
62
  f: fits window size
57
63
  o: original size
@@ -1,3 +1,3 @@
1
1
  module Mireru
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -40,6 +40,14 @@ module Mireru
40
40
  pixbuf = Gdk::Pixbuf.new(@file)
41
41
  @widget.pixbuf = pixbuf
42
42
  end
43
+ when Gdk::Keyval::GDK_KEY_h
44
+ @scroll.hadjustment.value -= 17
45
+ when Gdk::Keyval::GDK_KEY_j
46
+ @scroll.vadjustment.value += 17
47
+ when Gdk::Keyval::GDK_KEY_k
48
+ @scroll.vadjustment.value -= 17
49
+ when Gdk::Keyval::GDK_KEY_l
50
+ @scroll.hadjustment.value += 17
43
51
  when Gdk::Keyval::GDK_KEY_q
44
52
  Gtk.main_quit
45
53
  end
@@ -47,6 +55,8 @@ module Mireru
47
55
  end
48
56
 
49
57
  def add_from_file(file)
58
+ @scroll.hadjustment.value = 0
59
+ @scroll.vadjustment.value = 0
50
60
  @scroll.each {|child| @scroll.remove(child) }
51
61
  @widget = Mireru::Widget.create(file, *self.size)
52
62
  if @widget.is_a?(Gtk::Scrollable)
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Mireru::VERSION
9
9
  spec.authors = ["Masafumi Yokoyama"]
10
10
  spec.email = ["myokoym@gmail.com"]
11
- spec.summary = %q{Flexible File Viewer}
12
- spec.description = %q{A file viewer with a focus on flexibility by Ruby/GTK3.}
11
+ spec.summary = %q{Flexible File Viewer Keyboard Friend}
12
+ spec.description = %q{A file viewer with a focus on flexibility by Ruby/GTK3. A friend of a keyboard.}
13
13
  spec.homepage = "https://github.com/myokoym/mireru"
14
14
  spec.license = "MIT"
15
15
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mireru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masafumi Yokoyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-08 00:00:00.000000000 Z
11
+ date: 2013-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gtk3
@@ -108,7 +108,8 @@ dependencies:
108
108
  - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- description: A file viewer with a focus on flexibility by Ruby/GTK3.
111
+ description: A file viewer with a focus on flexibility by Ruby/GTK3. A friend of a
112
+ keyboard.
112
113
  email:
113
114
  - myokoym@gmail.com
114
115
  executables:
@@ -164,7 +165,7 @@ rubyforge_project:
164
165
  rubygems_version: 2.0.0
165
166
  signing_key:
166
167
  specification_version: 4
167
- summary: Flexible File Viewer
168
+ summary: Flexible File Viewer Keyboard Friend
168
169
  test_files:
169
170
  - test/fixtures/LICENSE.txt
170
171
  - test/fixtures/nijip.png