From 9e38e7224d9cc73cb4749a44ff2720c961535498 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 25 Aug 2024 22:19:00 +0200 Subject: [PATCH] rule,split --- spcd/main.sh | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/spcd/main.sh b/spcd/main.sh index 8bad79b..6d53f2f 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -172,6 +172,14 @@ spcd_frame_shut() { echo "${SPCD_FRAME_UP_AND_RIGHT}${1}" } +# ╭──────────┬──────╮ +# │ internal │ rule │ +# ╰──────────┴──────╯ + +SPCD_RULE_HORIZONTAL="─" +SPCD_RULE_LEFT="╴" +SPCD_RULE_RIGHT="╶" + # ╭──────────┬──────╮ # │ internal │ step │ # ╰──────────┴──────╯ @@ -262,6 +270,14 @@ spcd_os_rm() { fi } +# ╭───────────┬───────╮ +# │ functions │ split │ +# ╰───────────┴───────╯ + +spcd_split() { + echo "${SPCD_RULE_RIGHT}${SPCD_RULE_HORIZONTAL}${SPCD_RULE_LEFT}" +} + # ╭───────────┬──────╮ # │ functions │ step │ # ╰───────────┴──────╯ @@ -1193,10 +1209,6 @@ spcd_sed() { fi } -spcd_split() { - echo "${SPCD_SPLT}" -} - spcd_write() { spcd_write__file="${1}" spcd_write__text="${2}" @@ -1210,15 +1222,9 @@ spcd_write() { # constants -SPCD_BOX_RIGHT="╶" - SPCD_PYTHON_VENV="/opt/venv" SPCD_PYTHON_VENV_BINARIES="${SPCD_PYTHON_VENV}/bin" -SPCD_HORIZONTAL="────╌╌╌╌┄┄┄┄┈┈┈┈" - -SPCD_SPLT="${SPCD_BOX_RIGHT}${SPCD_HORIZONTAL}" - # ╭──────╮ # │ main │ # ╰──────╯