hiiro 0.1.136 → 0.1.138

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/h-jumplist +10 -9
  3. data/lib/hiiro/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 771ab234e04048e9c86898f2d8e2a265e7323d2876e1bdcde7a4c72653b09cae
4
- data.tar.gz: 7ccfb6999f64c47f10d055aa9a0c0203695638ba0eaf7ae6c42bc2443dc515b6
3
+ metadata.gz: '099d38979e3ab732a19bd85a28d446d95c077c8a3eb08447885f30ab2ad777d1'
4
+ data.tar.gz: b29b10cbef745c64b73dec4d1c3e1281b9e6bebcbbdeed82700b060cfc104b4e
5
5
  SHA512:
6
- metadata.gz: 996b6711ffc8758971f864628168965fa4895599360660897e85abde7f4ea16e6bd5b752571ca5e62dc43533794fc5aae0e403c4251a5f4032b13ec4927667f4
7
- data.tar.gz: 17109c5ea9c6fd28188711e2fbaf00ec953be03e42aff5d511e63b99568734f5a40f0bf88b3824941b26c014a4ded5f96a501181da1a997942525780b5b42655
6
+ metadata.gz: b2a184f607ebd6d1e2ec8c9792e66b706f8a8137f8c71e2f5714df5753afeb70b7ff5ac35050df6e70520f7f1c42c0a2f7fda2dd32cb8dcbb4b66b7e7a715fec
7
+ data.tar.gz: 1fbb7cd3e8f00018872c48920e9e309dfb4cc4ea769447d4d305a468261baeefea7cf7a5bdcf6186ac6a3aece8991ed8a5be061822cfdefd667b2dc87ad940ad
data/bin/h-jumplist CHANGED
@@ -59,9 +59,10 @@ Hiiro.run(*ARGV) do
59
59
  puts <<~SETUP
60
60
  # Add the following to your tmux.conf:
61
61
 
62
- # --- Jumplist hooks (record pane/window navigation) ---
62
+ # --- Jumplist hooks (record pane/window/session navigation) ---
63
63
  set-hook -g after-select-pane "run-shell -b 'h jumplist record'"
64
64
  set-hook -g after-select-window "run-shell -b 'h jumplist record'"
65
+ set-hook -g client-session-changed "run-shell -b 'h jumplist record'"
65
66
 
66
67
  # --- Jumplist keybindings ---
67
68
  bind-key -r C-b run-shell "h jumplist back"
@@ -115,10 +116,10 @@ Hiiro.run(*ARGV) do
115
116
  next
116
117
  end
117
118
 
118
- pane_id = tmux_display('#\{pane_id\}')
119
- window_id = tmux_display('#\{window_id\}')
120
- session_name = tmux_display('#\{session_name\}')
121
- pane_cmd = tmux_display('#\{pane_current_command\}')
119
+ pane_id = tmux_display('#{pane_id}')
120
+ window_id = tmux_display('#{window_id}')
121
+ session_name = tmux_display('#{session_name}')
122
+ pane_cmd = tmux_display('#{pane_current_command}')
122
123
  timestamp = Time.now.to_i.to_s
123
124
 
124
125
  entries = read_entries
@@ -155,10 +156,10 @@ Hiiro.run(*ARGV) do
155
156
 
156
157
  # If at position 0, record current pane first so forward works
157
158
  if pos == 0
158
- pane_id = tmux_display('#\{pane_id\}')
159
- window_id = tmux_display('#\{window_id\}')
160
- session_name = tmux_display('#\{session_name\}')
161
- pane_cmd = tmux_display('#\{pane_current_command\}')
159
+ pane_id = tmux_display('#{pane_id}')
160
+ window_id = tmux_display('#{window_id}')
161
+ session_name = tmux_display('#{session_name}')
162
+ pane_cmd = tmux_display('#{pane_current_command}')
162
163
  timestamp = Time.now.to_i.to_s
163
164
 
164
165
  new_entry = [pane_id, window_id, session_name, timestamp, pane_cmd].join('|')
data/lib/hiiro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.136"
2
+ VERSION = "0.1.138"
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.136
4
+ version: 0.1.138
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota