#!/bin/sh
#  Directives for shellcheck directly after bang path are global
#
#   Copyright (c) 2022-2024: Jacob.Lundqvist@gmail.com
#   License: MIT
#
#   Part of https://github.com/jaclu/tmux-menus
#
#   Moving current pane within same session or to other session.
#
#   THIS IS NOT USED ATM!
#

#  Full path to tmux-menux plugin
D_TM_BASE_PATH="$(realpath "$(dirname -- "$(dirname -- "$0")")")"

# shellcheck source=scripts/helpers.sh
. "$D_TM_BASE_PATH"/scripts/helpers.sh

#  Directives for shellcheck directly after bang path are global

_this="move_menu.sh" # error prone if script name is changed :(
[ "$current_script" != "$_this" ] && error_msg "$_this should NOT be sourced"

error_msg "THIS IS NOT USED ATM! - $_this"

action="$1"
# param_1="$2"
# param_2="$3"

if [ -z "$action" ]; then
    error_msg "move_menu.sh was called without action param"
fi

#  It will be created with defaults if not present
read_config

# if [ "$action" = "C" ]; then
#     location_x="C"
#     location_y="C"
# elif [ "$action" = "R" ]; then
#     location_x="R"
# elif [ "$action" = "P" ]; then
#     location_x="P"
#     location_y="P"
# elif [ "$action" = "W" ]; then
#     location_x="W"
#     location_y="S"
# elif [ "$action" = "coord" ]; then
#     location_x="$param_1"
#     location_y="$param_2"
# fi

write_config
