rufio 1.3.0 → 1.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.
@@ -147,8 +147,12 @@ module Rufio
147
147
  left_width = (@screen_width * @left_panel_ratio).to_i
148
148
  right_width = @screen_width - left_width
149
149
 
150
- draw_directory_list_to_buffer(screen, entries, left_width, content_height)
151
- draw_file_preview_to_buffer(screen, selected_entry, right_width, content_height, left_width)
150
+ if @keybind_handler.preview_focused?
151
+ draw_file_preview_to_buffer(screen, selected_entry, @screen_width, content_height, 0)
152
+ else
153
+ draw_directory_list_to_buffer(screen, entries, left_width, content_height)
154
+ draw_file_preview_to_buffer(screen, selected_entry, right_width, content_height, left_width)
155
+ end
152
156
 
153
157
  draw_mode_tabs_to_buffer(screen, @screen_height - 1, show_path: false)
154
158
  end
@@ -314,9 +318,10 @@ module Rufio
314
318
 
315
319
  def draw_file_preview_to_buffer(screen, selected_entry, width, height, left_offset)
316
320
  # 事前計算
321
+ fullscreen = @keybind_handler&.preview_focused?
317
322
  cursor_position = left_offset + CURSOR_OFFSET
318
323
  max_chars_from_cursor = @screen_width - cursor_position
319
- safe_width = [max_chars_from_cursor - 2, width - 2, 0].max
324
+ safe_width = fullscreen ? @screen_width : [max_chars_from_cursor - 2, width - 2, 0].max
320
325
 
321
326
  # プレビューコンテンツをキャッシュから取得
322
327
  preview_content = nil
@@ -387,13 +392,13 @@ module Rufio
387
392
  end
388
393
  end
389
394
 
390
- content_x = cursor_position + 1
395
+ content_x = fullscreen ? 0 : cursor_position + 1
391
396
 
392
397
  (0...height).each do |i|
393
398
  line_num = i + CONTENT_START_LINE
394
399
 
395
400
  # 区切り線
396
- screen.put(cursor_position, line_num, '│')
401
+ screen.put(cursor_position, line_num, '│') unless fullscreen
397
402
 
398
403
  next if safe_width <= 0
399
404
 
data/lib/rufio/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rufio
4
- VERSION = '1.3.0'
4
+ VERSION = '1.4.0'
5
5
  end
data/lib/rufio.rb CHANGED
@@ -40,6 +40,7 @@ require_relative 'rufio/script_executor'
40
40
  require_relative 'rufio/dsl_command_loader'
41
41
  require_relative 'rufio/builtin_commands'
42
42
 
43
+ require_relative 'rufio/path_jump'
43
44
  require_relative 'rufio/command_mode'
44
45
  require_relative 'rufio/command_mode_ui'
45
46
  require_relative 'rufio/command_history'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rufio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - masisz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-01 00:00:00.000000000 Z
11
+ date: 2026-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: io-console
@@ -238,6 +238,8 @@ files:
238
238
  - docs/CHANGELOG_v0.9.0.md
239
239
  - docs/architecture_concurrency_ja_v0.82.1.md
240
240
  - docs/fast_zip_design_ja.md
241
+ - docs/guide.md
242
+ - docs/guide_ja.md
241
243
  - examples/bookmarks.yml
242
244
  - examples/config.rb
243
245
  - examples/script_paths.yml
@@ -303,6 +305,7 @@ files:
303
305
  - lib/rufio/navigation_controller.rb
304
306
  - lib/rufio/notification_manager.rb
305
307
  - lib/rufio/parallel_scanner.rb
308
+ - lib/rufio/path_jump.rb
306
309
  - lib/rufio/rakefile_parser.rb
307
310
  - lib/rufio/renderer.rb
308
311
  - lib/rufio/screen.rb