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.
- checksums.yaml +4 -4
- data/bin/h-jumplist +10 -9
- 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: '099d38979e3ab732a19bd85a28d446d95c077c8a3eb08447885f30ab2ad777d1'
|
|
4
|
+
data.tar.gz: b29b10cbef745c64b73dec4d1c3e1281b9e6bebcbbdeed82700b060cfc104b4e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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('
|
|
119
|
-
window_id = tmux_display('
|
|
120
|
-
session_name = tmux_display('
|
|
121
|
-
pane_cmd = tmux_display('
|
|
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('
|
|
159
|
-
window_id = tmux_display('
|
|
160
|
-
session_name = tmux_display('
|
|
161
|
-
pane_cmd = tmux_display('
|
|
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