Commit c1e5cc5 1 parent ef41f12 commit c1e5cc5 Copy full SHA for c1e5cc5
File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ def has_single_pane(self):
257
257
258
258
def get_next_mode (self , next ):
259
259
if next == "initial" :
260
- return self .modes_list [0 ]
260
+ return os . environ . get ( "extrakto_inital_mode" , self .modes_list [0 ])
261
261
else :
262
262
return self .next_mode [next ]
263
263
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ if [ "$split_direction" = "a" ]; then
19
19
fi
20
20
fi
21
21
22
+ extrakto_inital_mode=" $2 "
22
23
if [ " $split_direction " = " p" ]; then
23
24
popup_size=$( get_option " @extrakto_popup_size" " 90%" )
24
25
popup_width=$( echo $popup_size | cut -d' ,' -f1)
@@ -35,11 +36,15 @@ if [ "$split_direction" = "p" ]; then
35
36
-h " ${popup_height:- ${popup_width} } " \
36
37
-x " ${popup_x} " \
37
38
-y " ${popup_y:- $popup_x } " \
39
+ -e extrakto_inital_mode=" ${extrakto_inital_mode} " \
38
40
-E " ${extrakto} ${pane_id} popup"
39
41
rc=$?
40
42
done
41
43
exit $rc
42
44
else
43
45
split_size=$( get_option " @extrakto_split_size" 7)
44
- tmux split-window -${split_direction} -l ${split_size} " tmux setw remain-on-exit off; ${extrakto} ${pane_id} split"
46
+ tmux split-window \
47
+ -${split_direction} \
48
+ -e extrakto_inital_mode=" ${extrakto_inital_mode} " \
49
+ -l ${split_size} " tmux setw remain-on-exit off; ${extrakto} ${pane_id} split"
45
50
fi
You can’t perform that action at this time.
0 commit comments