rufio 1.6.0 → 2.0.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.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +49 -0
  3. data/README.md +17 -10
  4. data/README_ja.md +17 -9
  5. data/SECURITY.md +14 -6
  6. data/docs/csv_cell_preview_design_ja.md +682 -0
  7. data/docs/guide.md +109 -47
  8. data/docs/guide_ja.md +110 -48
  9. data/docs/image_preview_design_ja.md +335 -0
  10. data/docs/native_fuzzy_search_design_ja.md +2 -2
  11. data/examples/config.rb +23 -0
  12. data/info/help.md +32 -27
  13. data/info/keybindings.md +42 -12
  14. data/info/welcome.md +4 -6
  15. data/lib/rufio/background_status.rb +7 -0
  16. data/lib/rufio/bookmark_controller.rb +0 -45
  17. data/lib/rufio/clipboard.rb +162 -0
  18. data/lib/rufio/command_locator.rb +49 -0
  19. data/lib/rufio/config.rb +7 -2
  20. data/lib/rufio/config_loader.rb +56 -21
  21. data/lib/rufio/csv_table_source.rb +125 -0
  22. data/lib/rufio/encoding_detector.rb +152 -0
  23. data/lib/rufio/file_operation_controller.rb +41 -0
  24. data/lib/rufio/file_preview.rb +92 -19
  25. data/lib/rufio/graphics_layer.rb +223 -0
  26. data/lib/rufio/health_checker.rb +27 -10
  27. data/lib/rufio/help_menu.rb +16 -11
  28. data/lib/rufio/image_preview_view.rb +421 -0
  29. data/lib/rufio/image_source.rb +158 -0
  30. data/lib/rufio/keybind_handler.rb +21 -35
  31. data/lib/rufio/kitty_graphics.rb +128 -0
  32. data/lib/rufio/native/aarch64-linux-gnu/librufio_zig.so +0 -0
  33. data/lib/rufio/native/aarch64-linux-musl/librufio_zig.so +0 -0
  34. data/lib/rufio/native/aarch64-macos/librufio_zig.dylib +0 -0
  35. data/lib/rufio/native/aarch64-windows/rufio_zig.dll +0 -0
  36. data/lib/rufio/native/x86_64-linux-gnu/librufio_zig.so +0 -0
  37. data/lib/rufio/native/x86_64-linux-musl/librufio_zig.so +0 -0
  38. data/lib/rufio/native/x86_64-macos/librufio_zig.dylib +0 -0
  39. data/lib/rufio/native/x86_64-windows/rufio_zig.dll +0 -0
  40. data/lib/rufio/native_content_search.rb +1 -1
  41. data/lib/rufio/native_image.rb +177 -0
  42. data/lib/rufio/native_scanner_zig.rb +22 -0
  43. data/lib/rufio/navigation_controller.rb +47 -16
  44. data/lib/rufio/preview_registry.rb +86 -0
  45. data/lib/rufio/preview_view.rb +363 -0
  46. data/lib/rufio/renderer.rb +8 -8
  47. data/lib/rufio/screen.rb +33 -0
  48. data/lib/rufio/search_prompt.rb +50 -0
  49. data/lib/rufio/{global_search.rb → search_screen.rb} +41 -14
  50. data/lib/rufio/sheet_picker.rb +87 -0
  51. data/lib/rufio/sqlite_table_source.rb +205 -0
  52. data/lib/rufio/tab_mode_manager.rb +1 -3
  53. data/lib/rufio/table_cursor.rb +117 -0
  54. data/lib/rufio/table_document.rb +261 -0
  55. data/lib/rufio/table_layout.rb +231 -0
  56. data/lib/rufio/table_preview_view.rb +376 -0
  57. data/lib/rufio/table_query.rb +240 -0
  58. data/lib/rufio/table_source.rb +46 -0
  59. data/lib/rufio/terminal_graphics.rb +168 -0
  60. data/lib/rufio/terminal_ui.rb +63 -111
  61. data/lib/rufio/text_utils.rb +27 -0
  62. data/lib/rufio/ui_renderer.rb +379 -16
  63. data/lib/rufio/version.rb +1 -1
  64. data/lib/rufio/xlsx_table_source.rb +112 -0
  65. data/lib/rufio.rb +19 -5
  66. data/lib_zig/rufio_native/Makefile +6 -4
  67. data/lib_zig/rufio_native/build.zig +10 -0
  68. data/lib_zig/rufio_native/src/image.zig +525 -0
  69. data/lib_zig/rufio_native/src/image_bmp.zig +111 -0
  70. data/lib_zig/rufio_native/src/image_jpeg.zig +878 -0
  71. data/lib_zig/rufio_native/src/image_png.zig +561 -0
  72. data/lib_zig/rufio_native/src/image_resize.zig +170 -0
  73. data/lib_zig/rufio_native/src/image_test.zig +401 -0
  74. data/lib_zig/rufio_native/src/main.zig +1 -0
  75. data/lib_zig/rufio_native/src/search.zig +38 -19
  76. data/lib_zig/rufio_native/src/search_test.zig +35 -0
  77. data/lib_zig/rufio_native/src/testdata/alpha.png +0 -0
  78. data/lib_zig/rufio_native/src/testdata/gradient.bmp +0 -0
  79. data/lib_zig/rufio_native/src/testdata/gradient.jpg +0 -0
  80. data/lib_zig/rufio_native/src/testdata/gradient.png +0 -0
  81. data/retag.sh +4 -4
  82. metadata +37 -9
  83. data/lib/rufio/fuzzy_candidate_cache.rb +0 -258
  84. data/lib/rufio/fuzzy_finder.rb +0 -313
  85. data/lib/rufio/fuzzy_preview_loader.rb +0 -107
  86. data/lib/rufio/rga_result_source.rb +0 -89
  87. data/lib/rufio/search_controller.rb +0 -94
  88. data/lib_zig/rufio_native/src/main.zig.sync +0 -205
@@ -0,0 +1,223 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'kitty_graphics'
4
+ require_relative 'terminal_graphics'
5
+
6
+ module Rufio
7
+ # 端末に置いた画像の状態を持ち、セル差分描画の後に APC を書き出す層。
8
+ #
9
+ # 描画側(UIRenderer)は毎フレーム request / clear を呼ぶだけで、実際に送るかは
10
+ # ここが決める。前のフレームと同じ画像・同じ位置で、矩形の中が書き換えられても
11
+ # いなければ 1 バイトも出さない(静止時のコストを 0 にして、差分描画の方針に合わせる)。
12
+ #
13
+ # 送る条件:
14
+ # - 置いていない画像を頼まれた(別のファイルへ移ったときは少し待つ = デバウンス)
15
+ # - 置き場所・切り出し(ズーム)が変わった
16
+ # - 置いてある矩形の中のセルが書き換えられた(通知やモード切替で画像が削れたとき)
17
+ class GraphicsLayer
18
+ # 画像 ID は他アプリと衝突しないよう rufio の印と PID から決める
19
+ ID_BASE = 0x5200_0000
20
+ # 別のファイルへ移ってから送るまでの待ち(j/k の連打で MB 級の転送を繰り返さない)
21
+ DEFAULT_DEBOUNCE = 0.08
22
+ # 覚えておく画像の枚数と合計バイト数(Base64 後)
23
+ DEFAULT_CACHE_ENTRIES = 4
24
+ DEFAULT_CACHE_BYTES = 8 * 1024 * 1024
25
+
26
+ Placement = Struct.new(:source, :key, :payload, :encoded, :row, :col, :cols, :rows,
27
+ :area_rows, :format, :pixels, :crop, keyword_init: true)
28
+
29
+ attr_reader :id
30
+
31
+ def initialize(id: nil, passthrough: false, debounce: DEFAULT_DEBOUNCE,
32
+ cache_entries: DEFAULT_CACHE_ENTRIES, cache_bytes: DEFAULT_CACHE_BYTES)
33
+ @id = id || (ID_BASE | ((Process.pid & 0xffff) << 8))
34
+ @passthrough = passthrough
35
+ @debounce = debounce.to_f
36
+ @cache_entries = cache_entries
37
+ @cache_bytes = cache_bytes
38
+ @cache = {}
39
+ @cache_size = 0
40
+ @placed = nil
41
+ @desired = nil
42
+ @failed = nil
43
+ @last_source = nil
44
+ @pending_since = nil
45
+ end
46
+
47
+ # このフレームで出したい画像を伝える(毎フレーム呼ばれる)
48
+ #
49
+ # @param source [Object] ペイロードの同一性(パスと mtime など)。これが変わると
50
+ # 別の画像として扱い、少し待ってから送る
51
+ # @param payload [String, #call] 端末へ送るバイト列。Proc を渡すと、実際に送ると
52
+ # 決まったときだけ呼ばれる(毎フレーム大きなファイルを読まないため)
53
+ # @param row [Integer] 矩形の左上の行(1 始まりの端末座標)
54
+ # @param col [Integer] 矩形の左上の桁(1 始まりの端末座標)
55
+ # @param crop [Array(Integer, Integer, Integer, Integer), nil] 元画像から切り出す
56
+ # 領域 [x, y, 幅, 高さ](ズーム)。nil なら全体
57
+ # @param encoded [Boolean] payload が既に Base64 済みなら true(ネイティブ経路)
58
+ def request(source:, payload:, row:, col:, cols: nil, rows: nil, area_rows: nil, encoded: false,
59
+ format: KittyGraphics::FORMAT_PNG, pixels: nil, crop: nil, now: monotonic)
60
+ # 別のファイルに移ったときだけ待つ(最初の 1 枚と置き直しは待たせない)
61
+ @pending_since = now if @last_source && @last_source != source
62
+ @last_source = source
63
+ occupied_rows = (area_rows || rows).to_i
64
+ @desired = Placement.new(source: source, key: [source, row, col, cols, rows, crop],
65
+ payload: payload, encoded: encoded, row: row, col: col,
66
+ cols: cols, rows: rows, area_rows: occupied_rows,
67
+ format: format, pixels: pixels, crop: crop)
68
+ true
69
+ end
70
+
71
+ # このフレームでは画像を出さない(置いてあれば flush で消える)。
72
+ # 直前に頼まれた画像(デバウンスの基準)は忘れない。描画側は毎フレーム
73
+ # clear してから request し直すため、ここで忘れると待ち時間が効かなくなる
74
+ def clear
75
+ @desired = nil
76
+ end
77
+
78
+ def placed?
79
+ !@placed.nil?
80
+ end
81
+
82
+ # 変化があれば端末へ書く
83
+ #
84
+ # @param rewritten_rows [Array<Integer>, nil] このフレームで Renderer が書き換えた
85
+ # 行(0 始まりの画面行)。画像の矩形と交差したら置き直す
86
+ # @return [Boolean] 何か書いたか
87
+ def flush(output, rewritten_rows: nil, now: monotonic)
88
+ return false if output.nil?
89
+ return false if @desired.nil? && @placed.nil?
90
+ return remove(output) if @desired.nil?
91
+
92
+ if @placed && @placed.key == @desired.key
93
+ # 同じ画像・同じ位置。矩形の中が書き換えられたときだけ置き直す
94
+ return false unless painted_over?(rewritten_rows)
95
+
96
+ return send_image(output)
97
+ end
98
+
99
+ # 別のファイルへ移ったときは、古い画像を先に消してから待つ
100
+ return remove(output) if @placed && @placed.source != @desired.source
101
+ return false if waiting?(now)
102
+ return false if @placed.nil? && @desired.key == @failed
103
+
104
+ send_image(output)
105
+ end
106
+
107
+ # 置いてある画像をすべて消す(終了処理・全画面の再描画)
108
+ def clear_all(output)
109
+ @desired = nil
110
+ @placed = nil
111
+ @failed = nil
112
+ @last_source = nil
113
+ @pending_since = nil
114
+ write(output, KittyGraphics.delete_all(passthrough: @passthrough))
115
+ end
116
+
117
+ private
118
+
119
+ def monotonic
120
+ Process.clock_gettime(Process::CLOCK_MONOTONIC)
121
+ end
122
+
123
+ def waiting?(now)
124
+ return false if @pending_since.nil? || @debounce <= 0
125
+
126
+ now - @pending_since < @debounce
127
+ end
128
+
129
+ # 画像の矩形(端末座標の 1 始まり)と、書き換えられた画面行(0 始まり)が重なるか
130
+ def painted_over?(rewritten_rows)
131
+ return false if rewritten_rows.nil? || rewritten_rows.empty?
132
+ return false unless @placed.area_rows.to_i.positive?
133
+
134
+ top = @placed.row - 1
135
+ bottom = top + @placed.area_rows - 1
136
+ rewritten_rows.any? { |row| row >= top && row <= bottom }
137
+ end
138
+
139
+ def remove(output)
140
+ return false unless @placed
141
+
142
+ @placed = nil
143
+ write(output, KittyGraphics.delete(id: @id, passthrough: @passthrough))
144
+ end
145
+
146
+ def send_image(output)
147
+ encoded = encoded_payload(@desired)
148
+ if encoded.nil? || encoded.empty?
149
+ # 読めなかった画像は覚えておき、毎フレーム読み直さない
150
+ @failed = @desired.key
151
+ return false
152
+ end
153
+
154
+ sequence = +''
155
+ # 置き換えは先に消す(同じ ID を上書きしない端末があるため)
156
+ sequence << KittyGraphics.delete(id: @id, passthrough: @passthrough) if @placed
157
+ sequence << KittyGraphics.place_at(row: @desired.row, col: @desired.col,
158
+ id: @id, payload: encoded, encoded: true,
159
+ cols: @desired.cols, rows: @desired.rows,
160
+ format: @desired.format, pixels: @desired.pixels,
161
+ crop: @desired.crop, passthrough: @passthrough)
162
+ return false unless write(output, sequence)
163
+
164
+ @placed = @desired
165
+ @failed = nil
166
+ @pending_since = nil
167
+ true
168
+ end
169
+
170
+ # Base64 済みのペイロードを返す。同じ画像は読み直さず、符号化もし直さない
171
+ def encoded_payload(desired)
172
+ key = desired.source
173
+ cached = @cache[key]
174
+ if cached
175
+ # 直近に使ったものを残す(LRU)
176
+ @cache.delete(key)
177
+ @cache[key] = cached
178
+ return cached
179
+ end
180
+
181
+ bytes = resolve(desired.payload)
182
+ return nil if bytes.nil? || bytes.empty?
183
+
184
+ # ネイティブ経路は Zig 側で Base64 済み(Ruby で数 MB を符号化しない)
185
+ encoded = desired.encoded ? bytes : [bytes].pack('m0')
186
+ store(key, encoded)
187
+ encoded
188
+ end
189
+
190
+ def store(key, encoded)
191
+ # 1 枚で上限を超える画像は覚えない(キャッシュが丸ごと入れ替わるのを防ぐ)
192
+ return if encoded.bytesize > @cache_bytes
193
+
194
+ @cache[key] = encoded
195
+ @cache_size += encoded.bytesize
196
+ while @cache.size > @cache_entries || @cache_size > @cache_bytes
197
+ oldest, value = @cache.first
198
+ break if oldest.nil?
199
+
200
+ @cache.delete(oldest)
201
+ @cache_size -= value.bytesize
202
+ end
203
+ end
204
+
205
+ # 送ると決まってから初めてバイト列を用意する
206
+ def resolve(payload)
207
+ payload.respond_to?(:call) ? payload.call : payload
208
+ rescue StandardError
209
+ nil
210
+ end
211
+
212
+ # 端末が閉じていても落ちない(画像はおまけの機能なので操作を止めない)
213
+ def write(output, sequence)
214
+ return false if output.nil? || sequence.nil? || sequence.empty?
215
+
216
+ output.write(sequence)
217
+ output.flush
218
+ true
219
+ rescue IOError, SystemCallError
220
+ false
221
+ end
222
+ end
223
+ end
@@ -18,9 +18,10 @@ module Rufio
18
18
  checks = [
19
19
  { name: ConfigLoader.message('health.ruby_version'), method: :check_ruby_version },
20
20
  { name: ConfigLoader.message('health.required_gems'), method: :check_required_gems },
21
- { name: ConfigLoader.message('health.rga'), method: :check_rga },
21
+ { name: ConfigLoader.message('health.sqlite3'), method: :check_sqlite3 },
22
22
  { name: ConfigLoader.message('health.zoxide'), method: :check_zoxide },
23
23
  { name: ConfigLoader.message('health.bat'), method: :check_bat },
24
+ { name: ConfigLoader.message('health.clipboard'), method: :check_clipboard },
24
25
  { name: ConfigLoader.message('health.file_opener'), method: :check_file_opener }
25
26
  ]
26
27
 
@@ -85,9 +86,10 @@ module Rufio
85
86
  end
86
87
  end
87
88
 
88
- def check_rga
89
- if system("which rga > /dev/null 2>&1")
90
- version = `rga --version 2>/dev/null | head -1`.strip
89
+ # SQLite のプレビュー(表として読む)に使う
90
+ def check_sqlite3
91
+ if system("which sqlite3 > /dev/null 2>&1")
92
+ version = `sqlite3 --version 2>/dev/null | head -1`.strip
91
93
  {
92
94
  status: :ok,
93
95
  message: version,
@@ -96,8 +98,8 @@ module Rufio
96
98
  else
97
99
  {
98
100
  status: :warning,
99
- message: "rga #{ConfigLoader.message('health.tool_not_found')}",
100
- details: install_instruction_for('rga')
101
+ message: "sqlite3 #{ConfigLoader.message('health.tool_not_found')}",
102
+ details: install_instruction_for('sqlite3')
101
103
  }
102
104
  end
103
105
  end
@@ -136,6 +138,21 @@ module Rufio
136
138
  end
137
139
  end
138
140
 
141
+ # y でコピーするときに使える手段を表示する。
142
+ # コマンドが無くても OSC 52 で動く可能性があるため、警告ではなく注意書きにする。
143
+ def check_clipboard
144
+ command = Clipboard.available_command
145
+ if command
146
+ { status: :ok, message: command.join(' '), details: nil }
147
+ else
148
+ {
149
+ status: :ok,
150
+ message: ConfigLoader.message('health.clipboard_osc52'),
151
+ details: ConfigLoader.message('health.clipboard_hint')
152
+ }
153
+ end
154
+ end
155
+
139
156
  def check_file_opener
140
157
  case RUBY_PLATFORM
141
158
  when /darwin/
@@ -174,8 +191,8 @@ module Rufio
174
191
  case RUBY_PLATFORM
175
192
  when /darwin/
176
193
  case tool
177
- when 'rga'
178
- "#{ConfigLoader.message('health.install_brew')} rga"
194
+ when 'sqlite3'
195
+ "#{ConfigLoader.message('health.install_brew')} sqlite"
179
196
  when 'zoxide'
180
197
  "#{ConfigLoader.message('health.install_brew')} zoxide"
181
198
  when 'bat'
@@ -183,8 +200,8 @@ module Rufio
183
200
  end
184
201
  when /linux/
185
202
  case tool
186
- when 'rga'
187
- ConfigLoader.message('health.rga_releases')
203
+ when 'sqlite3'
204
+ "#{ConfigLoader.message('health.install_apt')} sqlite3 (Ubuntu/Debian) or check your package manager"
188
205
  when 'zoxide'
189
206
  "#{ConfigLoader.message('health.install_apt')} zoxide (Ubuntu/Debian) or check your package manager"
190
207
  when 'bat'
@@ -57,26 +57,31 @@ module Rufio
57
57
  "#{key(:preview)}: Fullscreen file preview | ESC: Back to file list",
58
58
  'Text preview: first 64 KiB; PDF bodies are not previewed.',
59
59
  'Preview: j/k scroll, Ctrl+D/U page down/up',
60
+ " #{key(:search)}: Search in the file | n/N: Next / previous match",
61
+ "Preview .csv/.tsv/.xlsx/SQLite: grid; hjkl moves a cell, #{key(:copy_to_clipboard)} copies it",
62
+ ' [ / ]: Previous / next sheet | t: Sheet or table list',
63
+ " #{key(:search)}: Filter rows (price > 100, name a%) | ESC: Clear",
64
+ " #{key(:select)}: Select a column | #{key(:copy_to_clipboard)}: Copy the selected columns of the row",
60
65
  "#{key(:top)}/#{key(:bottom)}: First / last entry",
61
66
  "#{key(:open_file)}: Open in external editor",
62
67
  "#{key(:open_explorer)}: Open directory in file explorer",
63
68
  'Preview .zip: Entry list (size, method, date, name)',
69
+ 'Preview images: .png/.jpg/.bmp shown by the terminal (kitty graphics)',
70
+ ' +/-: Zoom | 0: Fit | hjkl: Pan while zoomed',
64
71
  "#{key(:refresh)}: Refresh directory",
65
72
  '', 'Selection and file operations',
66
73
  "#{key(:select)}: Select / unselect file",
67
74
  "#{key(:copy_selected)}/#{key(:move_selected)}/#{key(:delete_selected)}: Copy / move / delete selected files",
75
+ "#{key(:copy_to_clipboard)}: Copy the path of the current or selected files to the clipboard",
68
76
  "#{key(:zoxide)}: Extract selected .zip files / compress selected items",
69
77
  " Runs as a job: #{key(:job_mode)} Jobs mode shows progress; x cancels",
70
78
  "#{key(:rename)}/#{key(:delete)}: Rename / delete current file",
71
79
  "#{key(:create_file)}/#{key(:create_dir)}: Create file / directory",
72
80
  '', 'Search and bookmarks',
73
81
  "#{key(:filter)}: Filter | Enter: Apply | ESC: Clear",
74
- "#{key(:file_search)} or #{key(:file_search_alt)}: Fuzzy file name search",
75
- "#{key(:rga_search)}: Content search (rga), then pick a result",
76
- 'In search: Ctrl+R rescans; wide screens show a preview',
77
- "#{key(:global_search)}: Fuzzy file names or literal contents across all bookmarks",
82
+ "#{key(:search)}: Search under this directory (file names or contents)",
83
+ ' Tab: Switch File names (fuzzy) / Content (literal) | Enter: Go to file',
78
84
  "#{key(:add_bookmark)}/#{key(:bookmark_menu)}: Add / manage bookmarks",
79
- 'Tab / Shift+Tab: Next / previous bookmark',
80
85
  "1-9: Jump to bookmark | #{key(:start_dir)}: Start directory",
81
86
  "#{key(:zoxide)}: Directory history (zoxide, when nothing is selected)",
82
87
  "#{key(:quit)}: Quit (with confirmation)",
@@ -90,24 +95,24 @@ module Rufio
90
95
  'The config directory is created if it does not exist.',
91
96
  'Navigation, previews and file operations work as in Files.',
92
97
  "#{key(:navigate_parent)}: Parent directory; leaving config returns to Files.",
93
- '', "[#{key(:global_search)}] Global search",
94
- 'Search file names or text inside every bookmarked directory.',
95
- 'Tab: Switch File names (fuzzy, as s) / Content (literal, case insensitive)',
98
+ '', "[#{key(:search)}] Search",
99
+ 'Search file names or text under the current directory.',
100
+ 'Tab: Switch File names (fuzzy) / Content (literal, case insensitive)',
96
101
  'Content results show file, line number and matching text.',
97
102
  'Documents: .pdf (page), .xlsx (sheet/cell), .pptx (slide)',
98
103
  'Ruby extracts document text; no Python or Office is needed.',
99
104
  'Unchanged document text is cached in memory for faster searches.',
100
105
  'Images need OCR; legacy .xls/.ppt and slide notes are unsupported.',
101
106
  'Yellow Searching... + spinner: Search is running.',
102
- 'Green Search complete: All bookmarked directories scanned.',
107
+ 'Green Search complete: The directory tree was scanned.',
103
108
  'Exclude extensions in ~/.config/rufio/config.rb:',
104
- 'GLOBAL_SEARCH_EXCLUDED_EXTENSIONS = %w[.zip .log /node_modules]',
109
+ 'SEARCH_EXCLUDED_EXTENSIONS = %w[.zip .log /node_modules]',
105
110
  'Applies to names and contents. Restart Rufio after editing.',
106
111
  'Extensions ignore case; leading dots are optional; [] excludes none.',
107
112
  '/name skips a directory with that name, or a file with exactly that name.',
108
113
  'Type to filter | Up/Down or Ctrl+J/K or Ctrl+N/P: Select',
109
114
  'Enter: Go to the selected file in Files mode',
110
- 'ESC: Return to the previous mode | Ctrl+U: Clear query',
115
+ 'ESC: Return to Files mode | Ctrl+U: Clear query',
111
116
  '', "[#{key(:log_viewer)}] Logs",
112
117
  "Browse command logs. #{key(:preview)} opens a fullscreen preview.",
113
118
  'ESC: Leave preview; ESC again: Return to Files.',