From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Workers <zsh-workers@zsh.org>
Subject: Re: [PATCH] Add _sqlite for sqlite and sqlite3 completion.
Date: Sat, 19 Mar 2011 09:11:20 -0700 [thread overview]
Message-ID: <110319091120.ZM29723@torch.brasslantern.com> (raw)
In-Reply-To: <1300543889-21998-1-git-send-email-zsh@benizi.com>
On Mar 19, 10:11am, Benjamin R. Haskell wrote:
} Subject: [PATCH] Add _sqlite for sqlite and sqlite3 completion.
}
} 1. Is there an easy way to specify to _arguments that '-opt' and
} '--opt' should be treated as equivalent?
No, not really. Because of the possibility that "-opt" is short for
"-o -p -t", _arguments makes it the job of the caller to distinguish.
} Is there a quick way to specify:
}
} Prefer files that match *.$service
} If no files match that, try *.db or *.sqlite(|3)
} If no files match that, show all files
That's a job for the file-patterns style. Don't attempt to figure out
in the _arguments settings what files are suitable; before calling
_arguments, check whether file-patterns is set for the appropriate
context and if it is not then assert a setting for it. (Or don't,
and make the user do it.) Then let _files work out the conditional.
prev parent reply other threads:[~2011-03-19 16:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-19 14:11 Benjamin R. Haskell
2011-03-19 16:11 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=110319091120.ZM29723@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).