* [Patch] Some more completion stuff
@ 2008-12-27 1:59 Richard Hartmann
2009-01-05 14:16 ` Peter Stephenson
0 siblings, 1 reply; 3+ messages in thread
From: Richard Hartmann @ 2008-12-27 1:59 UTC (permalink / raw)
To: Zsh Workers
[-- Attachment #1: Type: text/plain, Size: 127 bytes --]
Hi all,
please see attached files. 1 & 2 are trivial. 3 adds completion for
a few programs which handle .dvi files.
Richard
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-.bz2-support-for-_ps-completion.patch --]
[-- Type: text/x-diff; name=0001-Add-.bz2-support-for-_ps-completion.patch, Size: 654 bytes --]
From 6df3c7a60d2a8a7bdda8a93165ac180209c2f93b Mon Sep 17 00:00:00 2001
From: Richard Hartmann <richih@net.in.tum.de>
Date: Sat, 27 Dec 2008 01:35:39 +0100
Subject: [PATCH] Add .bz2 support for _ps completion
---
Completion/Unix/Type/_ps | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Completion/Unix/Type/_ps b/Completion/Unix/Type/_ps
index 6caddd9..792a39b 100644
--- a/Completion/Unix/Type/_ps
+++ b/Completion/Unix/Type/_ps
@@ -6,7 +6,7 @@ local expl ext=''
# ps2epsi ps2pdf ps2pdf12 ps2pdf13 ps2pdf14 ps2pdfwr ps2ps
if [[ "$1" == '-z' ]]; then
- ext='(|.gz|.Z)'
+ ext='(|.bz2|.gz|.Z)'
shift
fi
--
1.5.6.5
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-Change-order-of-extensions-to-alphabetical.patch --]
[-- Type: text/x-diff; name=0002-Change-order-of-extensions-to-alphabetical.patch, Size: 623 bytes --]
From 38501ee84b3c106a93733f19248378e10f07ec45 Mon Sep 17 00:00:00 2001
From: Richard Hartmann <richih@net.in.tum.de>
Date: Sat, 27 Dec 2008 01:43:57 +0100
Subject: [PATCH] Change order of extensions to alphabetical
---
Completion/Unix/Type/_pdf | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Completion/Unix/Type/_pdf b/Completion/Unix/Type/_pdf
index 9b51277..994f08f 100644
--- a/Completion/Unix/Type/_pdf
+++ b/Completion/Unix/Type/_pdf
@@ -12,7 +12,7 @@ local expl ext=''
# okular
if [[ "$1" == '-z' ]]; then
- ext='(|.gz|.bz2|.Z)'
+ ext='(|.bz2|.gz|.Z)'
shift
fi
--
1.5.6.5
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: 0003-Introduce-_dvi-completion.patch --]
[-- Type: text/x-diff; name=0003-Introduce-_dvi-completion.patch, Size: 1361 bytes --]
From fda4ea61f2e224428e3b30fd591e16c173cceef3 Mon Sep 17 00:00:00 2001
From: Richard Hartmann <richih@net.in.tum.de>
Date: Sat, 27 Dec 2008 02:49:14 +0100
Subject: [PATCH] Introduce _dvi completion
---
Completion/Unix/Type/.distfiles | 1 +
Completion/Unix/Type/_dvi | 13 +++++++++++++
2 files changed, 14 insertions(+), 0 deletions(-)
create mode 100644 Completion/Unix/Type/_dvi
diff --git a/Completion/Unix/Type/.distfiles b/Completion/Unix/Type/.distfiles
index ecf0867..14a9494 100644
--- a/Completion/Unix/Type/.distfiles
+++ b/Completion/Unix/Type/.distfiles
@@ -10,6 +10,7 @@ _diff_options
_dir_list
_directories
_domains
+_dvi
_email_addresses
_file_systems
_files
diff --git a/Completion/Unix/Type/_dvi b/Completion/Unix/Type/_dvi
new file mode 100644
index 0000000..5edec40
--- /dev/null
+++ b/Completion/Unix/Type/_dvi
@@ -0,0 +1,13 @@
+#compdef dvi2fax dvibook dviconcat dvicopy dvihp dvilj dvilj2p dvilj4 dvilj4l dvilj6 dvipdf dvipdfm dvipdfmx dvipdft dvipos dvips dvired dviselect dvitodvi dvitype okular
+
+local expl ext=''
+
+# Tex tools:
+# dvi2fax dvibook dviconcat dvicopy dvihp dvilj dvilj2p dvilj4 dvilj4l
+# dvilj6 dvipdf dvipdfm dvipdfmx dvipdft dvipos dvips dvired dviselect
+# dvitodvi dvitype
+# KDE 4:
+# okular
+
+_description files expl 'DVI file'
+_files "$@" "$expl[@]" -g "*.(#i)dvi(-.)"
--
1.5.6.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Patch] Some more completion stuff
2008-12-27 1:59 [Patch] Some more completion stuff Richard Hartmann
@ 2009-01-05 14:16 ` Peter Stephenson
2009-01-21 17:09 ` Richard Hartmann
0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2009-01-05 14:16 UTC (permalink / raw)
To: Zsh Workers
On Sat, 27 Dec 2008 02:59:49 +0100
"Richard Hartmann" <richih.mailinglist@gmail.com> wrote:
> Hi all,
>
> please see attached files. 1 & 2 are trivial. 3 adds completion for
> a few programs which handle .dvi files.
There's already a _dvi in Completion/Unix/Command (which is a less obvious
place): you probably need to merge them. I've committed the first two.
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Patch] Some more completion stuff
2009-01-05 14:16 ` Peter Stephenson
@ 2009-01-21 17:09 ` Richard Hartmann
0 siblings, 0 replies; 3+ messages in thread
From: Richard Hartmann @ 2009-01-21 17:09 UTC (permalink / raw)
To: Peter Stephenson; +Cc: Zsh Workers
On Mon, Jan 5, 2009 at 15:16, Peter Stephenson <pws@csr.com> wrote:
> There's already a _dvi in Completion/Unix/Command (which is a less obvious
> place): you probably need to merge them. I've committed the first two.
I was _sure_ I answered that one. Will do asap. I still have a few other
completions in my local repo, but I am moving and work is busy and...
You know how it is :)
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-21 17:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-27 1:59 [Patch] Some more completion stuff Richard Hartmann
2009-01-05 14:16 ` Peter Stephenson
2009-01-21 17:09 ` Richard Hartmann
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).