marvi 0.3.0 → 0.4.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5df9bb69ae060cf562d656a78f4aa152223a4ad58178af6b6b18891e19cb525
4
- data.tar.gz: 1590ce11f925c30f25e256e1e0f0571355a4a4fd7690cc636310d9bf20e349eb
3
+ metadata.gz: b0110473458c01229add5274f0ab0df77dad55587286ee01c426612fa0505707
4
+ data.tar.gz: 8e59b8386b4fb283613a2fc81d2841473ccd78eaa216a4608e10c17ae62c61b0
5
5
  SHA512:
6
- metadata.gz: 1541589372fbdd04e4dbf7fe929de77788f7308c4abdf31ed8fea657712de058d1e38f7a48000c1122405b0c8a44f679b57946937ed8c779dcc81e2e7f4cfd10
7
- data.tar.gz: 8637f420f782945d396f8dfa97ec3f4b748ffd056bb43baf23c6e6adbd54c6e8d9f8b3dbe896a1540faf46c6affa772cb7637bc929a9c9fe60e626c0420392e3
6
+ metadata.gz: 3abaf2190555600e5e04cd0a04d7176d6ef5b8384afc902cff76389ec782a448bd99609cf2474d7f62827bc24750514b7517cf780b61739c327a665bb3cc9821
7
+ data.tar.gz: 2caddfb8de48b8fc5f6c894f839d06239b57845993a67f576f8cde2cb6591509d3167dbe35d11636e1c03f5cb140e2c16cfeec945bf8204eeb4095f3a31c8bcb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.0] - 2026-05-18
4
+
5
+ - Bind `Ctrl-D` / `Ctrl-U` for vim-style half-page scrolling in the curses pager.
6
+
3
7
  ## [0.3.0] - 2026-05-18
4
8
 
5
9
  - Render tables correctly when cells contain East Asian wide characters and emoji (uses `unicode-display_width`).
@@ -20,6 +20,9 @@ module Marvi
20
20
 
21
21
  FILE_POLL_INTERVAL_MS = 500
22
22
 
23
+ CTRL_D = 4
24
+ CTRL_U = 21
25
+
23
26
  def render(markdown, file: nil)
24
27
  @file = file
25
28
  @markdown = markdown
@@ -103,8 +106,8 @@ module Marvi
103
106
  when "q", "Q", 27 then throw :quit
104
107
  when "j", ::Curses::Key::DOWN then scroll_by(1)
105
108
  when "k", ::Curses::Key::UP then scroll_by(-1)
106
- when "d" then scroll_by(page_size / 2)
107
- when "u" then scroll_by(-page_size / 2)
109
+ when "d", CTRL_D then scroll_by(page_size / 2)
110
+ when "u", CTRL_U then scroll_by(-page_size / 2)
108
111
  when "f", " ", ::Curses::Key::NPAGE then scroll_by(page_size)
109
112
  when "b", ::Curses::Key::PPAGE then scroll_by(-page_size)
110
113
  when "g" then @scroll = 0
data/lib/marvi/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Marvi
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marvi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitsutaka Mimura