summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>2015-04-03 17:38:53 +0200
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>2015-04-07 14:15:36 +0200
commitc271f89d4ae71c45f295ccdaea815809644c3637 (patch)
treefe15b412fd6b8f41aef000314f439488faed5376 /data
parent47f1713f1e7be485c1dfebb3760da1d55da6ade0 (diff)
ges-launch: Add support for +test-clip
Summary: With the pattern as a mandatory argument. Reviewers: thiblahute Differential Revision: http://phabricator.freedesktop.org/D68
Diffstat (limited to 'data')
-rw-r--r--data/completions/ges-launch-1.016
1 files changed, 14 insertions, 2 deletions
diff --git a/data/completions/ges-launch-1.0 b/data/completions/ges-launch-1.0
index 7989a5bf..b93f4529 100644
--- a/data/completions/ges-launch-1.0
+++ b/data/completions/ges-launch-1.0
@@ -66,7 +66,16 @@ _ges_clip () {
then
_gst_mandatory_argument
else
- COMPREPLY=( $(compgen -W "duration= inpoint= start= layer= $(ges-launch-1.0 help all | egrep '^ [a-zA-Z0-9]')" -- $cur) )
+ COMPREPLY=( $(compgen -W "duration= inpoint= start= layer= $(ges-launch-1.0 help all | egrep '^ +')" -- $cur) )
+ fi
+}
+
+_ges_test_clip () {
+ if [[ "$prev" == "$command" ]];
+ then
+ _gst_mandatory_argument
+ else
+ COMPREPLY=( $(compgen -W "duration= inpoint= start= layer= $(ges-launch-1.0 help all | egrep '^ +')" -- $cur) )
fi
}
@@ -96,6 +105,9 @@ _ges_list_properties () {
elif [[ "$real_command" == "+clip" ]]
then
COMPREPLY=( $(compgen -W "set-alpha set-posx set-posy set-width set-height set-volume set-mute" -- $cur) )
+ elif [[ "$real_command" == "+test-clip" ]]
+ then
+ COMPREPLY=( $(compgen -W "set-alpha set-posx set-posy set-width set-height set-volume set-mute" -- $cur) )
elif [[ "$real_command" == "+effect" ]]
then
COMPREPLY=()
@@ -165,7 +177,7 @@ __ges_main ()
if [[ "$command" == "--gst"* ]]; then
completion_func="_${command//-/_}"
else
- completion_func="_ges_${command//-|+/_}"
+ completion_func="_ges_${command//-/_}"
completion_func="${completion_func//+/}"
fi