From: Michael D. Lowis Date: Wed, 31 May 2017 13:14:25 +0000 (-0400) Subject: changed pick title env var from XPICKTITLE to PICKTITLE X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=09be464ab52ce4f893ae733f28811a6339a6d07b;p=projs%2Ftide.git changed pick title env var from XPICKTITLE to PICKTITLE --- diff --git a/docs/pick.1.md b/docs/pick.1.md index 7d0e983..4a07407 100644 --- a/docs/pick.1.md +++ b/docs/pick.1.md @@ -18,7 +18,7 @@ TODO: Document this ## ENVIRONMENT -* `XPICKTITLE`: +* `PICKTITLE`: If this variable is set its contents are used to populate the status region of the `pick` window. diff --git a/pick.c b/pick.c index 58afbdc..004bea6 100644 --- a/pick.c +++ b/pick.c @@ -223,7 +223,7 @@ static KeyBinding Bindings[] = { #ifndef TEST int main(int argc, char** argv) { - char* title = getenv("XPICKTITLE"); + char* title = getenv("PICKTITLE"); load_choices(); if (vec_size(&Choices) > 1) { win_dialog("pick", onerror); diff --git a/pickfile b/pickfile index a890643..82202a4 100755 --- a/pickfile +++ b/pickfile @@ -4,5 +4,5 @@ if [ "$#" -ne 1 ]; then exit 1 fi -export XPICKTITLE="Pick File ($PWD)" +export PICKTITLE="Pick File ($PWD)" find $1 -not -path '*/\.*' -type f | sed "s|^\./||" | pick diff --git a/picktag b/picktag index 20f7ab2..0343322 100755 --- a/picktag +++ b/picktag @@ -41,7 +41,7 @@ fetch(){ ' "$TAGFILE" | /bin/sh | pick } -export XPICKTITLE="Pick CTag ($PWD)" +export PICKTITLE="Pick CTag ($PWD)" case "$ACTION" in "print") print ;; "fetch") fetch ;;