zsh-users
 help / color / mirror / code / Atom feed
From: "Mikael Magnusson" <mikachu@gmail.com>
To: "ZSH User List" <zsh-users@sunsite.dk>
Subject: Re: completion for nanoblogger?
Date: Thu, 8 Jun 2006 18:05:01 +0200	[thread overview]
Message-ID: <237967ef0606080905n72213adcwd3a700ca76e51e13@mail.gmail.com> (raw)
In-Reply-To: <20060608132103.GA10421@spiegl.de>

On 6/8/06, Andy Spiegl <zsh.Andy@spiegl.de> wrote:
> Anyone out there who has already written a completion function for
> nanoblogger?  Just wanna save time... :-)
>
> Thanks,
>  Andy.

http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/nanoblogger/files/nb.bashcomp?rev=1.1&view=markup
If you didn't know, you can use some (all?) bash completion scripts if
you do this
autoload bashcompinit
bashcompinit
source nb.bashcomp

It looks like this one works more or less fine.

In the case of programs with gnu output you can just use
compdef _gnu_generic nb
but it doesn't handle the arguments for options like --blogdir, it's
good for stuff like rm and mv though.

-- 
Mikael Magnusson


  reply	other threads:[~2006-06-08 16:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-08 13:21 Andy Spiegl
2006-06-08 16:05 ` Mikael Magnusson [this message]
2006-06-16 15:42   ` completion for nanoblogger Andy Spiegl

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=237967ef0606080905n72213adcwd3a700ca76e51e13@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=zsh-users@sunsite.dk \
    /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).