hiiro 0.1.103 → 0.1.104

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: 9a10f35b3d066b06834cb59ac651c430314e158326648e7c03857d8619fe98ac
4
- data.tar.gz: '0281effef29f43bc895ea11c72740c5467a66200ab9d0936ac91db5977ed111a'
3
+ metadata.gz: 91b42e1f81626b60d53e555716eb8dd2f5ed78430150d5f459f057c1866c1fc5
4
+ data.tar.gz: 752c39ce5b291f32e23b5ad542f7b92659f65e3ace6290dbd014609113bca83e
5
5
  SHA512:
6
- metadata.gz: bfd05cc89b33bddf85607dadfddafa4e5a299309484afe6d402467c220b5cb201f624a9e35ce6fa5f52ff13d3138da41991d56638a9c30f9f76d4369e4965cc6
7
- data.tar.gz: d5060e6f075475f3f95e48edbadc8dd4cab5d6ea539bbe817d54efd47b417b14c9655e72a04554c86abc9f104754c1cea5379a0eaefe27d97dad3e67e9c1a8ca
6
+ metadata.gz: 6d33442eb08708cd8a77e29c8e8534925951703ee158f81109d0137004d25facaa5640d2381679885f1e9cc1a9d78efba927af1fae7e71f742826adfc342c029
7
+ data.tar.gz: 6d8f6df9a92a723ebeee3c0bdb77b9d8260d538012e84aa391ac5aacf0b6ebe9f81770a159449bdaa39b20ebabe4326bee083e4eb6171d6c656ccc6e1cc0c992
data/bin/h-window CHANGED
@@ -133,4 +133,48 @@ Hiiro.run(*ARGV, plugins: [Pins]) do
133
133
  puts "Window not found"
134
134
  end
135
135
  }
136
+
137
+ add_subcmd(:vsplit) {
138
+ system('tmux', 'select-layout', 'even-horizontal')
139
+ }
140
+
141
+ add_subcmd(:hsplit) {
142
+ system('tmux', 'select-layout', 'even-vertical')
143
+ }
144
+
145
+ add_subcmd(:layout) { |q=nil|
146
+ layouts = {
147
+ mhorizontal: 'main-vertical',
148
+ main_horizontal: 'main-vertical',
149
+ ehorizontal: 'even-vertical',
150
+ horizontal: 'even-vertical',
151
+ even_horizontal: 'even-vertical',
152
+
153
+ even_vertical: 'even-horizontal',
154
+ evertical: 'even-horizontal',
155
+ vertical: 'even-horizontal',
156
+ main_vertical: 'main-horizontal',
157
+ mvertical: 'main-horizontal',
158
+ main_vertical_mirrored: 'main-horizontal-mirrored',
159
+ mmvertical: 'main-horizontal-mirrored',
160
+
161
+ tiled: 'tiled',
162
+ }
163
+
164
+ if q.nil?
165
+ layout = fuzzyfind(layouts)
166
+ end
167
+
168
+ if layouts.values.include?(q)
169
+ layout = q
170
+ end
171
+
172
+ if layout.nil?
173
+ begin
174
+ _, layout = Hiiro::Matcher.resolve(layouts, q) { |k,v| k }
175
+ end
176
+ end
177
+
178
+ system('tmux', 'select-layout', layout)
179
+ }
136
180
  end
data/lib/hiiro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.103"
2
+ VERSION = "0.1.104"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiiro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.103
4
+ version: 0.1.104
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-02-26 00:00:00.000000000 Z
11
+ date: 2026-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -125,12 +125,12 @@ files:
125
125
  - plugins/pins.rb
126
126
  - plugins/project.rb
127
127
  - plugins/tasks.rb
128
- - script/compare
129
- - script/install
130
- - script/publish
131
- - script/sync
132
- - script/test
133
- - script/update
128
+ - scripts/compare
129
+ - scripts/install
130
+ - scripts/publish
131
+ - scripts/sync
132
+ - scripts/test
133
+ - scripts/update
134
134
  homepage: https://github.com/unixsuperhero/hiiro
135
135
  licenses:
136
136
  - MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes