From b59137c255dbebfd41f34366410d342f08d391aa Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sat, 30 Sep 2017 23:16:41 -0700 Subject: [PATCH] zsh completions: --image suggests files, --hardcopy does NOT suggest files --image reads existing files, so it should ask for existing files --hardcopy creates new files, so it shouldn't suggest existing files --- completions/zsh/_feedgnuplot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/completions/zsh/_feedgnuplot b/completions/zsh/_feedgnuplot index 49d5e22..1575c2d 100644 --- a/completions/zsh/_feedgnuplot +++ b/completions/zsh/_feedgnuplot @@ -33,10 +33,10 @@ _arguments -S '*--set[Additional 'set' gnuplot commands]:set-option' \ '*--unset[Additional 'unset' gnuplot commands]:unset-option' \ '*--equation[Raw symbolic equation]:equation' \ - '--image[Image file to render beneath the data]:image filename:_files' \ + '--image[Image file to render beneath the data]:image:_files -g "(#i)*.(jpg|jpeg|png|gif)"' \ '--square[Plot data with square aspect ratio]' \ '--square_xy[For 3D plots, set square aspect ratio for ONLY the x,y axes]' \ - '--hardcopy[Plot to a file]:plot output filename:_files' \ + '--hardcopy[Plot to a file]:new filename' \ '--maxcurves[The maximum allowed number of curves]:number of curves' \ '(--3d)--monotonic[Resets plot if an X in the past is seen]' \ '(--rangesizeall)--extraValuesPerPoint[How many extra values are given for each data range]:N'\