tcsh completion

TK Soh teekaysoh at yahoo.com
Sun Aug 28 19:42:42 CDT 2005


--- Matt Mackall <mpm at selenic.com> wrote:
> On Wed, Aug 24, 2005 at 07:14:16AM -0700, TK Soh wrote:
> > --- Matt Mackall <mpm at selenic.com> wrote:
> > > On Tue, Aug 23, 2005 at 11:42:03PM -0700, TK Soh wrote:
> > > > Run tcsh_completion.sh to generate tcsh_completion, then
> > > > source tcsh_completion in tcsh to add completion support
> > > > for hg. The source filename may be optionally specified 
> > > > by passing as first argument to tcsh_completion.sh
> > > 
> > > That's.. peculiar. Can you somehow embed this inside of a tcsh script
> > > so that people don't have to do the extra step?
> > 
> > I original wanted to do something hg-version-independent like
> bash_completion
> > would do, but another at bash_completion reveal some level of dependent on
> hg
> > version. So another I could do is to maintain the tcsh_completion.sh script
> > locally, and submit the generated file instead.
> > 
> > Let me know if this is okay for you, so I can submit the patch.
> 
> Sure. We can always improve it later, if someone cares.

I do.

# HG changeset patch
# User TK Soh <teekaysoh at yahoo.com>
# Node ID 679c52c813a9daf74f110f433eaef325dc7c0437
# Parent  5ea31d77024ff8c57535d7ccea7771ea0ecf610a
added tcsh completion for Mercurial

diff -r 5ea31d77024f -r 679c52c813a9 contrib/tcsh_completion
--- /dev/null	Mon Aug 29 00:45:45 2005
+++ b/contrib/tcsh_completion	Mon Aug 29 00:46:15 2005
@@ -0,0 +1,32 @@
+#
+# tcsh completion for Mercurial
+#
+# This file has been auto-generated by tcsh_completion.sh for
+# Mercurial Distributed SCM (version a33a7a543803) 
+#
+
+complete hg \
+  'n/--cwd/d/' 'n/-R/d/' 'n/--repository/d/' \
+  'C/-/(-R --repository repository root directory \
+    --cwd change working directory -y \
+    --noninteractive run non-interactively -q --quiet \
+    quiet mode -v --verbose verbose \
+    mode --debug debug mode --traceback \
+    print traceback on exception --time \
+    time how long the command \
+    takes --profile profile --version output \
+    version information and exit -h \
+    --help display help and exit)/' \
+  'p/1/(add addremove annotate cat clone \
+    commit ci copy debugcheckstate debugconfig \
+    debugdata debugindex debugindexdot debugrename debugstate \
+    debugwalk diff export forget grep \
+    heads help identify id import \
+    patch incoming in init locate \
+    log history manifest outgoing out \
+    parents paths pull push rawcommit \
+    recover remove rm revert root \
+    serve status tag tags tip \
+    undo update up checkout co \
+    verify version)/'
+



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


More information about the Mercurial mailing list