From 26c81386ee5a61744a713f334e8ad5607e4abe1d Mon Sep 17 00:00:00 2001 From: sebastid Date: Wed, 28 Sep 2005 22:47:17 +0000 Subject: [PATCH] Action list. SVN revision: 17052 --- data/other/enlightenment_remote | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/data/other/enlightenment_remote b/data/other/enlightenment_remote index b1dc0b69b..3072cd34f 100644 --- a/data/other/enlightenment_remote +++ b/data/other/enlightenment_remote @@ -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 @@ _enlightenment_remote() { 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 @@ _enlightenment_remote() { 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