diff --git a/scripts/helpers.sh b/scripts/helpers.sh index bd69a7a..599c773 100644 --- a/scripts/helpers.sh +++ b/scripts/helpers.sh @@ -163,7 +163,7 @@ get_next_mode() { local next=$1 if [ $next == "initial" ]; then - echo ${EXTRAKTO_INITAL_MODE:-${modes_list[0]}} + echo ${extrakto_inital_mode:-${modes_list[0]}} else echo ${next_mode[$next]} fi diff --git a/scripts/open.sh b/scripts/open.sh index 5fa1275..d9c5da3 100755 --- a/scripts/open.sh +++ b/scripts/open.sh @@ -8,7 +8,7 @@ extrakto="$current_dir/extrakto.sh" pane_id=$1 split_direction=$(get_option "@extrakto_split_direction") -EXTRAKTO_INITAL_MODE="$2" +extrakto_inital_mode="$2" if [[ $split_direction == a ]]; then if [[ -n $(tmux list-commands popup) ]]; then split_direction=p @@ -27,7 +27,7 @@ if [[ $split_direction == p ]]; then -h ${popup_height:-$popup_width} \ -x ${popup_x} \ -y ${popup_y:-$popup_x} \ - -e EXTRAKTO_INITAL_MODE="${EXTRAKTO_INITAL_MODE}" \ + -e extrakto_inital_mode="${extrakto_inital_mode}" \ -E "${extrakto} ${pane_id} popup" rc=$? done @@ -36,6 +36,6 @@ else split_size=$(get_option "@extrakto_split_size") tmux split-window \ -${split_direction} \ - -e EXTRAKTO_INITAL_MODE="${EXTRAKTO_INITAL_MODE}" \ + -e extrakto_inital_mode="${extrakto_inital_mode}" \ -l ${split_size} "tmux setw remain-on-exit off; ${extrakto} ${pane_id} split" fi