File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,12 @@ main() {
48
48
items=" $( op::get_all_items) "
49
49
spinner::stop
50
50
51
+ synchronize_panes_reset_value=$( tmux::disable_synchronize_panes)
52
+
51
53
selected_item=" $( echo " $items " | awk -F ' ,' ' { print $1 }' | fzf " ${fzf_opts[@]} " ) "
52
54
55
+ tmux::set_synchronize_panes " ${synchronize_panes_reset_value} "
56
+
53
57
if [[ -n " $selected_item " ]]; then
54
58
selected_item_name=${selected_item#* ,}
55
59
selected_item_uuid=" $( echo " $items " | grep " ^$selected_item_name ," | awk -F ' ,' ' { print $2 }' ) "
Original file line number Diff line number Diff line change @@ -17,3 +17,16 @@ tmux::get_option() {
17
17
tmux::display_message () {
18
18
tmux display-message " tmux-1password: $1 "
19
19
}
20
+
21
+ tmux::disable_synchronize_panes () {
22
+ if [ " $( tmux show-options -wv synchronize-panes) " == " on" ]; then
23
+ tmux::set_synchronize_panes " off"
24
+ echo " on"
25
+ else
26
+ echo " off"
27
+ fi
28
+ }
29
+
30
+ tmux::set_synchronize_panes () {
31
+ tmux set-window-option synchronize-panes " ${1} "
32
+ }
You can’t perform that action at this time.
0 commit comments