Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e
Dir : e17/apps/e/data/other Modified Files: enlightenment_remote Log Message: engine set. =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/data/other/enlightenment_remote,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- enlightenment_remote 9 Oct 2005 19:11:52 -0000 1.10 +++ enlightenment_remote 9 Oct 2005 20:19:28 -0000 1.11 @@ -1,4 +1,4 @@ -# $Id: enlightenment_remote,v 1.10 2005/10/09 19:11:52 sebastid Exp $ +# $Id: enlightenment_remote,v 1.11 2005/10/09 20:19:28 sebastid Exp $ # bash-completion script for enlightenment_remote # By Justin Rocha (Xenith) # Additions by Sebastian Dransfeld @@ -18,7 +18,8 @@ prev=${COMP_WORDS[COMP_CWORD-1]} action=${COMP_WORDS[1]} opts=`enlightenment_remote -h | awk '{print $1}' | grep -v "OPTIONS:" | xargs` - CONTEXT="NONE BORDER ZONE CONTAINER MANAGER MENU WINLIST POPUP ANY" + BINDING_CONTEXT="NONE BORDER ZONE CONTAINER MANAGER MENU WINLIST POPUP ANY" + ENGINE_CONTEXT="CONTAINER INIT MENU BORDER ERROR POPUP DRAG WIN ZONE" MODIFIERS="NONE SHIFT| SHIFT CONTROL| CONTROL ALT| ALT WIN| WIN" DIRS="data images fonts themes init icons modules backgrounds" @@ -52,7 +53,7 @@ ;; -binding-key-add) if [[ ${COMP_CWORD} -eq 2 ]]; then - COMPREPLY=($(compgen -W "${CONTEXT}" -- "${cur}")) + COMPREPLY=($(compgen -W "${BINDING_CONTEXT}" -- "${cur}")) elif [[ ${COMP_CWORD} -eq 3 ]]; then COMPREPLY=() elif [[ ${COMP_CWORD} -eq 4 ]]; then @@ -122,6 +123,11 @@ # TODO Add filename expansion, and only match dirs and .edj files return 0 ;; + -default-engine-set) + engines=$(enlightenment_remote -engine-list|grep REPLY:|awk '{print $2}') + COMPREPLY=($(compgen -W "${engines}" -- "${cur}")) + return 0 + ;; -default-profile-set) profiles=$(enlightenment_remote -profile-list|grep REPLY:|awk '{print $2}') COMPREPLY=($(compgen -W "${profiles}" -- "${cur}")) @@ -155,6 +161,15 @@ COMPREPLY=($(compgen -W "${displays}" -- "${cur}")) return 0 ;; + -engine-set) + if [[ ${COMP_CWORD} -eq 2 ]]; then + COMPREPLY=($(compgen -W "${ENGINE_CONTEXT}" -- "${cur}")) + elif [[ ${COMP_CWORD} -eq 3 ]]; then + engines=$(enlightenment_remote -engine-list|grep REPLY:|awk '{print $2}') + COMPREPLY=($(compgen -W "${engines}" -- "${cur}")) + fi + return 0 + ;; -exec-action) if [[ ${COMP_CWORD} -eq 2 ]]; then actions=$(enlightenment_remote -action-list|grep REPLY:|awk '{print $2}') ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs