WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [ ab ] suggested additions of some useful existing features.  (Read 5684 times)

Offline frimical

  • Jr. Member
  • **
  • Posts: 75
[ ab ] suggested additions of some useful existing features.
« on: March 14, 2011, 12:43:20 PM »
ab is very helpful fast ans concise, I suggest adding these existing features, like displaying:

- tree,
- size
- info if needed again; ( that helped making the 'default' menu option to redisplay the menu choices instead of displaying the info again and again ).
- some screen 'clear'-ing for readability
 
here is a suggested diff:

--- old ab
+++ new ab
@@ -6,0 +7 @@
+  clear
@@ -13,0 +15 @@
+  clear
@@ -36,0 +39,9 @@
+displayTree(){
+  tce-fetch.sh "$EXTN".tree
+  less "$EXTN".tree
+  rm "$EXTN".tree
+}
+displaySize(){
+  clear
+  tce-size "$EXTN"
+}
@@ -51,2 +62,2 @@
-[ -n "$EXTN" ] && echo -n "I)nstall O)nDemand D)epends F)iles L)ist "
-echo -n "S)earch, P)rovides, or Q)uit: "; read -s -n1 ANS; echo
+[ -n "$EXTN" ] && echo && echo -n "A)bout I)nstall O)nDemand D)epends T)ree F)iles siZ)e L)ist "
+echo -n "S)earch P)rovides or Q)uit: "; read -s -n1 ANS; echo
@@ -53,0 +65 @@
+  A|a) displayInfo ;;
@@ -56,0 +69,2 @@
+  T|t) displayTree ;;
+  Z|z) displaySize ;;
@@ -62 +76 @@
-  *) displayInfo ;;
+  *) ;; #displayInfo ;;


hope this can be useful

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: [ ab ] suggested additions of some useful existing features.
« Reply #1 on: March 14, 2011, 01:06:17 PM »
As a file please, pasting it off the forum wouldn't really work.
The only barriers that can stop you are the ones you create yourself.

Offline frimical

  • Jr. Member
  • **
  • Posts: 75
Re: [ ab ] suggested additions of some useful existing features.
« Reply #2 on: March 14, 2011, 03:01:05 PM »
ok, here is the whole ab file I'm using. ( sorry but I don't have the original file anymore to make a diff)


Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: [ ab ] suggested additions of some useful existing features.
« Reply #3 on: March 14, 2011, 03:08:19 PM »
I was able to patch from your posted diff. Thanks for your kind comments about ab and your suggested additions have now incorporated.
10+ Years Contributing to Linux Open Source Projects.

Offline frimical

  • Jr. Member
  • **
  • Posts: 75
Re: [ ab ] suggested additions of some useful existing features.
« Reply #4 on: March 14, 2011, 05:10:03 PM »
@roberts
Thanks for your kind comments about ab and your suggested additions have now incorporated.

great it was taken into consideration and incorporated.
Nothing is more kind than making TC available to all of us.




Offline frimical

  • Jr. Member
  • **
  • Posts: 75
Re: [ ab ] suggested additions of some useful existing features.
« Reply #5 on: March 14, 2011, 05:20:40 PM »
oops!!

While reading the first post (the diff one) I noticed that I missed to add one thing:

--- old-new ab
+++ latest ab
@@ -62 +62 @@
-[ -n "$EXTN" ] && echo  && echo -n "A)bout I)nstall O)nDemand D)epends T)ree F)iles siZ)e L)ist "
+[ -n "$EXTN" ] && echo "#*****[ $EXTN ]*****#" && echo -n "A)bout I)nstall O)nDemand D)epends T)ree F)iles siZ)e L)ist "

to show the selected extension's name,  above the choices menu. ( I noticed that this small detail can be helpful especially after jumping from one selection to the other, then to the next-to the previous-then to the next... and I ended forgetting why am I here for... and which the one I will end up installing...)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: [ ab ] suggested additions of some useful existing features.
« Reply #6 on: March 15, 2011, 06:57:35 AM »
As a file please, pasting it off the forum wouldn't really work.

;)
The only barriers that can stop you are the ones you create yourself.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: [ ab ] suggested additions of some useful existing features.
« Reply #7 on: March 15, 2011, 07:22:45 PM »
oops!!

While reading the first post (the diff one) I noticed that I missed to add one thing:

--- old-new ab
+++ latest ab
@@ -62 +62 @@
-[ -n "$EXTN" ] && echo  && echo -n "A)bout I)nstall O)nDemand D)epends T)ree F)iles siZ)e L)ist "
+[ -n "$EXTN" ] && echo "#*****[ $EXTN ]*****#" && echo -n "A)bout I)nstall O)nDemand D)epends T)ree F)iles siZ)e L)ist "

to show the selected extension's name,  above the choices menu. ( I noticed that this small detail can be helpful especially after jumping from one selection to the other, then to the next-to the previous-then to the next... and I ended forgetting why am I here for... and which the one I will end up installing...)


Now you know why I was redisplaying the info file.
Idea to display extension name only accepted.
Implemented slightly different.

Look for it starting with v3.6.

« Last Edit: March 15, 2011, 07:33:02 PM by roberts »
10+ Years Contributing to Linux Open Source Projects.