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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eddeaacae610f11d820f5e40cc9793a5acb22c1c52fd56f06c7a8cc630af0345
4
- data.tar.gz: b29d5ad2aea54d91c613cecb4067138eef8449457ee6f33327fd057d1a83d9e0
3
+ metadata.gz: f4b1074780997c84fef5f28b121523ae017f26a38a267f36ca7eda34b02cc768
4
+ data.tar.gz: 31659390beed3003e810964f09f7c70d5aa2ea98ddc682b575383f4d3eb190d7
5
5
  SHA512:
6
- metadata.gz: 5e8341fafcb812fb200829d62ecc2a9ac0878c203c9121eecfee3fbb9891b2245278e52202b7b9e6b66adc771882de98cb9b29df95a63e2f959899c7dc3b790a
7
- data.tar.gz: c0d5ae46f2acc4032f3bff7980e110e2835b871dfe05c4e07cf93f822132ce3acaf2aa924be89326b55cc229d238ffd32d6ab71f1937851bed4bc35887ba4871
6
+ metadata.gz: e95bde2e25358eb958a0085bbf2791f35fbb270721e2f134974f156f01750698e8a48efb1989876c68adaf4eda7bc4cf0f354dfc9259548eaf888d1614372feb
7
+ data.tar.gz: 9706715a0228f8732fd925d89cbfb97be6a6e76463c533d4649327992669ffef29a4a592224a1b28c2e3238be8e87f2872bbf987d32ce769400fda11e723aefa
data/CHANGELOG.md CHANGED
@@ -1 +1,17 @@
1
- Done. Updated CHANGELOG.md to consolidate all changes for v0.1.301 (check_version, delayed_update, h-claude verbose flags and glob_path refactor, and tmux session matching fixes) into a single release entry organized by Added/Changed/Fixed.
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
- print r[:prefix]
287
- puts format("%-#{name_pad}s %-#{tree_col}s %-#{branch_col}s %s",
288
- r[:name], r[:tree], r[:branch], r[:session]) + tag_str
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
- puts format(" %-#{avail_name_col}s (available) %s", tree.name, branch_str).rstrip
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
- puts format(" %s %-#{extra_name_col}s (tmux session)", attach, session.name)
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
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.301"
2
+ VERSION = "0.1.302"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiiro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.301
4
+ version: 0.1.302
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota