Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e
Dir : e17/apps/e/data/other
Modified Files:
enlightenment_remote
Log Message:
Yay!
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/data/other/enlightenment_remote,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- enlightenment_remote 27 Sep 2005 18:01:05 -0000 1.4
+++ enlightenment_remote 27 Sep 2005 19:12:11 -0000 1.5
@@ -1,4 +1,4 @@
-# $Id: enlightenment_remote,v 1.4 2005/09/27 18:01:05 sebastid Exp $
+# $Id: enlightenment_remote,v 1.5 2005/09/27 19:12:11 sebastid Exp $
# bash-completion script for enlightenment_remote
# By Justin Rocha (Xenith)
# Additions by Sebastian Dransfeld
@@ -76,25 +76,28 @@
any_mod=${COMP_WORDS[5]}
action=${COMP_WORDS[6]}
params=${COMP_WORDS[7]}
+ SIFS=$IFS
+ IFS=$'\n'
if [[ ${COMP_CWORD} -eq 2 ]]; then
- binding=$(enlightenment_remote -binding-key-list|grep
'REPLY:'|sed -e "s/.*CONTEXT=\(\S\+\).*/\1/"|grep -v 'REPLY:')
+ binding=$(enlightenment_remote -binding-key-list|grep
'REPLY:'|sed -e
"s/.*CONTEXT=\(\S\+\)\s\+KEY=\"\(\S\+\)\"\s\+MODIFIERS=\(\S\+\)\s\+ANY_MOD=\(\S\+\)\s\+ACTION=\"\(\S\+\)\"\s\+PARAMS=\"\(\S\+\)\".*/'\1
\2 \3 \4 \5 \6'/"|grep -v 'REPLY:')
COMPREPLY=($(compgen -W "${binding}" -- "${cur}"))
elif [[ ${COMP_CWORD} -eq 3 ]]; then
- binding=$(enlightenment_remote -binding-key-list|grep
'REPLY:'|sed -e "s/.*CONTEXT=${context}\s\+KEY=\(\S\+\).*/\1/"|grep -v 'REPLY:')
+ binding=$(enlightenment_remote -binding-key-list|grep
'REPLY:'|sed -e
"s/.*CONTEXT=${context}\s\+KEY=\"\(\S\+\)\"\s\+MODIFIERS=\(\S\+\)\s\+ANY_MOD=\(\S\+\)\s\+ACTION=\"\(\S\+\)\"\s\+PARAMS=\"\(\S\+\)\".*/'\1
\2 \3 \4 \5'/"|grep -v 'REPLY:')
COMPREPLY=($(compgen -W "${binding}" -- "${cur}"))
elif [[ ${COMP_CWORD} -eq 4 ]]; then
- binding=$(enlightenment_remote -binding-key-list|grep
'REPLY:'|sed -e
"s/.*CONTEXT=${context}\s\+KEY=\"${key}\"\s\+MODIFIERS=\(\S\+\).*/\1/"|grep -v
'REPLY:')
- COMPREPLY=($(compgen -P "'" -S "'" -W "${binding}" --
"${cur}"))
+ binding=$(enlightenment_remote -binding-key-list|grep
'REPLY:'|sed -e
"s/.*CONTEXT=${context}\s\+KEY=\"${key}\"\s\+MODIFIERS=\(\S\+\)\s\+ANY_MOD=\(\S\+\)\s\+ACTION=\"\(\S\+\)\"\s\+PARAMS=\"\(\S\+\)\".*/'\1
\2 \3 \4'/"|grep -v 'REPLY:')
+ COMPREPLY=($(compgen -W "${binding}" -- "${cur}"))
elif [[ ${COMP_CWORD} -eq 5 ]]; then
- binding=$(enlightenment_remote -binding-key-list|grep
'REPLY:'|sed -e
"s/.*CONTEXT=${context}\s\+KEY=\"${key}\"\s\+MODIFIERS=${modifiers}\s\+ANY_MOD=\(\S\+\).*/\1/"|grep
-v 'REPLY:')
+ binding=$(enlightenment_remote -binding-key-list|grep
'REPLY:'|sed -e
"s/.*CONTEXT=${context}\s\+KEY=\"${key}\"\s\+MODIFIERS=${modifiers}\s\+ANY_MOD=\(\S\+\)\s\+ACTION=\"\(\S\+\)\"\s\+PARAMS=\"\(\S\+\)\".*/'\1
\2 \3'/"|grep -v 'REPLY:')
COMPREPLY=($(compgen -W "${binding}" -- "${cur}"))
elif [[ ${COMP_CWORD} -eq 6 ]]; then
- binding=$(enlightenment_remote -binding-key-list|grep
'REPLY:'|sed -e
"s/.*CONTEXT=${context}\s\+KEY=\"${key}\"\s\+MODIFIERS=${modifiers}\s\+ANY_MOD=${any_mod}\s\+ACTION=\(\S\+\).*/\1/"|grep
-v 'REPLY:')
+ binding=$(enlightenment_remote -binding-key-list|grep
'REPLY:'|sed -e
"s/.*CONTEXT=${context}\s\+KEY=\"${key}\"\s\+MODIFIERS=${modifiers}\s\+ANY_MOD=${any_mod}\s\+ACTION=\"\(\S\+\)\"\s\+PARAMS=\"\(\S\+\)\".*/'\1
\2'/"|grep -v 'REPLY:')
COMPREPLY=($(compgen -W "${binding}" -- "${cur}"))
elif [[ ${COMP_CWORD} -eq 7 ]]; then
- binding=$(enlightenment_remote -binding-key-list|grep
'REPLY:'|sed -e
"s/.*CONTEXT=${context}\s\+KEY=\"${key}\"\s\+MODIFIERS=${modifiers}\s\+ANY_MOD=${any_mod}\s\+ACTION=\"${action}\"\s\+PARAMS=\(\S\+\).*/\1/"|grep
-v 'REPLY:')
+ binding=$(enlightenment_remote -binding-key-list|grep
'REPLY:'|sed -e
"s/.*CONTEXT=${context}\s\+KEY=\"${key}\"\s\+MODIFIERS=${modifiers}\s\+ANY_MOD=${any_mod}\s\+ACTION=\"${action}\"\s\+PARAMS=\"\(\S\+\)\".*/'\1'/"|grep
-v 'REPLY:')
COMPREPLY=($(compgen -W "${binding}" -- "${cur}"))
fi
+ IFS=$SIFS
return 0
;;
-border-shade-transition-set)
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs