Skip to content

Commit

Permalink
refactor: use lower for extrakto_inital_mode environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
marcdeop committed May 9, 2024
1 parent 64bc530 commit 8313096
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions scripts/open.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 8313096

Please sign in to comment.