Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e
Dir : e17/apps/e/data/other Modified Files: enlightenment_remote Log Message: Action list. =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/data/other/enlightenment_remote,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- enlightenment_remote 28 Sep 2005 18:56:28 -0000 1.8 +++ enlightenment_remote 28 Sep 2005 22:47:17 -0000 1.9 @@ -1,4 +1,4 @@ -# $Id: enlightenment_remote,v 1.8 2005/09/28 18:56:28 sebastid Exp $ +# $Id: enlightenment_remote,v 1.9 2005/09/28 22:47:17 sebastid Exp $ # bash-completion script for enlightenment_remote # By Justin Rocha (Xenith) # Additions by Sebastian Dransfeld @@ -10,10 +10,6 @@ # -binding-wheel-add, -binding-wheel-del # -desktop-bg-add, -desktop-bg-del # -desktop-name-add, -desktop-name-del -# -exec-action -# -# Add in enlightenment_remote -# -action-list _enlightenment_remote() { local cur prev opts @@ -78,7 +74,8 @@ elif [[ ${COMP_CWORD} -eq 5 ]]; then COMPREPLY=($(compgen -W "0 1" -- "${cur}")) elif [[ ${COMP_CWORD} -eq 6 ]]; then - COMPREPLY=() + actions=$(enlightenment_remote -action-list|grep REPLY:|awk '{print $2}') + COMPREPLY=($(compgen -W "${actions}" -- "${cur}")) elif [[ ${COMP_CWORD} -eq 7 ]]; then COMPREPLY=() fi @@ -158,6 +155,15 @@ COMPREPLY=($(compgen -W "${displays}" -- "${cur}")) return 0 ;; + -exec-action) + if [[ ${COMP_CWORD} -eq 2 ]]; then + actions=$(enlightenment_remote -action-list|grep REPLY:|awk '{print $2}') + COMPREPLY=($(compgen -W "${actions}" -- "${cur}")) + elif [[ ${COMP_CWORD} -eq 3 ]]; then + COMPREPLY=() + fi + return 0 + ;; -focus-policy-set) COMPREPLY=($(compgen -W "CLICK MOUSE SLOPPY" -- "${cur}")) return 0 ------------------------------------------------------- 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