]> git.mdlowis.com Git - projs/tide.git/commitdiff
changed pick title env var from XPICKTITLE to PICKTITLE
authorMichael D. Lowis <mike.lowis@gentex.com>
Wed, 31 May 2017 13:14:25 +0000 (09:14 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Wed, 31 May 2017 13:14:25 +0000 (09:14 -0400)
docs/pick.1.md
pick.c
pickfile
picktag

index 7d0e983e77ce18a19373f93ca83810f4f5970466..4a074078ef7b9dc041a6d25989c370aa63a77d0a 100644 (file)
@@ -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 58afbdc2afb410d2a9cad8c9e602a351bbc42ab3..004bea65b82c3fa1726c094128e93046f818eb43 100644 (file)
--- 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);
index a890643f099aacd658599b5297f30a71886fc487..82202a4220263431853ed5636bb633ae899cefe1 100755 (executable)
--- 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 20f7ab22be4a6afc1984258f31ea73900f2b384b..034332268c6aa8c6e6e065ed568c8b2f7c612225 100755 (executable)
--- 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 ;;