hiiro 0.1.301 → 0.1.302
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 +4 -4
- data/CHANGELOG.md +17 -1
- data/lib/hiiro/tasks.rb +9 -5
- data/lib/hiiro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f4b1074780997c84fef5f28b121523ae017f26a38a267f36ca7eda34b02cc768
|
|
4
|
+
data.tar.gz: 31659390beed3003e810964f09f7c70d5aa2ea98ddc682b575383f4d3eb190d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e95bde2e25358eb958a0085bbf2791f35fbb270721e2f134974f156f01750698e8a48efb1989876c68adaf4eda7bc4cf0f354dfc9259548eaf888d1614372feb
|
|
7
|
+
data.tar.gz: 9706715a0228f8732fd925d89cbfb97be6a6e76463c533d4649327992669ffef29a4a592224a1b28c2e3238be8e87f2872bbf987d32ce769400fda11e723aefa
|
data/CHANGELOG.md
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.1.302] - 2026-03-30
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- Truncate output lines to terminal width in tasks plugin
|
|
7
|
+
|
|
8
|
+
## [0.1.301]
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Check version delayed update functionality
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
- h-claude: add verbose flags and refactor glob_path handling
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- Use exact session matching to prevent tmux prefix ambiguity
|
data/lib/hiiro/tasks.rb
CHANGED
|
@@ -279,13 +279,15 @@ class Hiiro
|
|
|
279
279
|
tree_col = rows.map { |r| r[:tree].length }.max
|
|
280
280
|
branch_col = rows.map { |r| r[:branch].length }.max
|
|
281
281
|
|
|
282
|
+
cols = ENV['COLUMNS']&.to_i&.then { |c| c > 0 ? c : nil }
|
|
283
|
+
|
|
282
284
|
rows.each do |r|
|
|
283
285
|
name_pad = name_col - r[:prefix].length
|
|
284
286
|
tags = tag_store.get(r[:name])
|
|
285
287
|
tag_str = tags.any? ? " " + Hiiro::Tags.badges(tags) : ""
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
288
|
+
line = r[:prefix] + format("%-#{name_pad}s %-#{tree_col}s %-#{branch_col}s %s",
|
|
289
|
+
r[:name], r[:tree], r[:branch], r[:session]) + tag_str
|
|
290
|
+
puts cols ? line[0, cols] : line
|
|
289
291
|
end
|
|
290
292
|
|
|
291
293
|
available = environment.all_trees.reject { |t|
|
|
@@ -297,7 +299,8 @@ class Hiiro
|
|
|
297
299
|
avail_name_col = [available.map { |t| t.name.length }.max, name_col].max
|
|
298
300
|
available.each do |tree|
|
|
299
301
|
branch_str = tree.branch ? "[#{tree.branch}]" : tree.detached? ? "[(detached)]" : ""
|
|
300
|
-
|
|
302
|
+
line = format(" %-#{avail_name_col}s (available) %s", tree.name, branch_str).rstrip
|
|
303
|
+
puts cols ? line[0, cols] : line
|
|
301
304
|
end
|
|
302
305
|
end
|
|
303
306
|
|
|
@@ -309,7 +312,8 @@ class Hiiro
|
|
|
309
312
|
extra_name_col = [extra_sessions.map { |s| s.name.length }.max, name_col].max
|
|
310
313
|
extra_sessions.sort_by(&:name).each do |session|
|
|
311
314
|
attach = client_map.key?(session.name) ? "@" : " "
|
|
312
|
-
|
|
315
|
+
line = format(" %s %-#{extra_name_col}s (tmux session)", attach, session.name)
|
|
316
|
+
puts cols ? line[0, cols] : line
|
|
313
317
|
end
|
|
314
318
|
end
|
|
315
319
|
end
|
data/lib/hiiro/version.rb
CHANGED