Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: cscope completion
- X-seq: zsh-workers 40020
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: cscope completion
- Date: Fri, 25 Nov 2016 22:27:41 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1480109262; bh=lDM6Frl3CA6E8/Lms+2pYS+5CmRUWJDTE/tq0nB9+xM=; h=From:To:Subject:Date:From:Subject; b=d7/edh7WFSHOr7F9L75EtG5h5DZWOysIG3Fn0k+BTNhDqjtHP15A1GRifX76lhe34CqwQtwr5k0MTqmvTNsT2Sq7EfX6gwVC9RHe+gpRZjvz/lOq617srRHxpdfRFDs4VgaZ/Yn1ZorP3zIWOL2sCdUjv5FRg436G2GYLr2ZkVTYt8h6+luGRuRXfvwRoAPvpmKaREj/MgqFr/TLsHk0m67B+fnTgd7ZIB55hUIx5Ak4nv2MRbAhFfkuRacaKJ3GFeCiG3o3Sj9s0GGcnAopFiGDxCws3b1e9aFZfjTIVh9TQgIUQv2DqnTIeEZkzV3T8s5d9IGOF2fYOCSv9tS+4g==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
new completion for cscope
Oliver
diff --git a/Completion/Unix/Command/_cscope b/Completion/Unix/Command/_cscope
new file mode 100644
index 0000000..8c3839d
--- /dev/null
+++ b/Completion/Unix/Command/_cscope
@@ -0,0 +1,29 @@
+#compdef cscope
+
+_arguments -s -S \
+ '-b[build the cross-reference only]' \
+ '-C[ignore letter case when searching]' \
+ "-c[use only ASCII characters in the cross-ref file (don't compress)]" \
+ "-d[don't update the cross-reference]" \
+ '-e[suppress the <Ctrl>-e command prompt between files]' \
+ '-F+[read symbol reference lines from specified file]:symbol-reference file:_files' \
+ '-f+[specify cross-reference file]:cross-reference file [cscope.out]:_files' \
+ '(-)'{-h,--help}'[display help information]' \
+ '*-I+[specify directory to search for #include files]:include directory:_directories' \
+ '-i+[specify file containing a list if files to browse]:file [cscope.file]:_files' \
+ "-k[kernel mode - don't use /usr/include for #include files]" \
+ '-L[do a single search with line-oriented output]' \
+ '-l[line-oriented interface]' \
+ -{0,1,2,3,4,5,6,7,8,9}'+:pattern' \
+ '-P+[prepend path to relative file names in pre-built cross-ref file]:path:_directories' \
+ '-p+[specify number of path components to display]:path components [1]' \
+ '-q[build an inverted index for quick symbol searching]' \
+ '-R[recurse directories for files]' \
+ '-s+[specify directory to search for additional source files]:directory:_directories' \
+ '-T[use only the first eight characters to match against C symbols]' \
+ '-U[check file time stamps]' \
+ '-u[unconditionally build the cross-reference file]' \
+ '-v[be more verbose in line mode]' \
+ '-X[remove the cscope reference file and inverted indexes at end]' \
+ '(-)'{-V,--version}'[display version information]' \
+ '*:file:_files'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author