zsh-users
 help / color / mirror / code / Atom feed
* completion for nanoblogger?
@ 2006-06-08 13:21 Andy Spiegl
  2006-06-08 16:05 ` Mikael Magnusson
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Spiegl @ 2006-06-08 13:21 UTC (permalink / raw)
  To: ZSH User List

Anyone out there who has already written a completion function for
nanoblogger?  Just wanna save time... :-)

Thanks,
 Andy.

-- 
 Of all the people in the world, those who want the most
 are those who have the most.  -- David Grayson


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: completion for nanoblogger?
  2006-06-08 13:21 completion for nanoblogger? Andy Spiegl
@ 2006-06-08 16:05 ` Mikael Magnusson
  2006-06-16 15:42   ` completion for nanoblogger Andy Spiegl
  0 siblings, 1 reply; 3+ messages in thread
From: Mikael Magnusson @ 2006-06-08 16:05 UTC (permalink / raw)
  To: ZSH User List

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: completion for nanoblogger
  2006-06-08 16:05 ` Mikael Magnusson
@ 2006-06-16 15:42   ` Andy Spiegl
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Spiegl @ 2006-06-16 15:42 UTC (permalink / raw)
  To: ZSH User List

Hi Mikael,

> http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/nanoblogger/files/nb.bashcomp?rev=1.1&view=markup

Thanks a lot for the pointer!
So far I had no idea that bash completions can be used by zsh.

But in this case it doesn't make much sense because the bash function is
_very_ rudimentary and - except for directory completion - worse than a
simple "compdef _gnu_generic nb".

So, I started writing my own and here it is:
 http://spiegl.de/andy/shareware/_nb  (GPL)

Suggestions, comments and improvements are VERY welcome!

I need help to solve some problems (see the "TODO" section in the file)
but the basic and most used stuff works - including a list of categories
and blog entries.

So, maybe the zsh experts here could take a look at it please?

Thanks,
 Andy.

-- 
 Draco dormiens nunquam titillandus.  (Albus Dumbledore)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-06-16 15:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-08 13:21 completion for nanoblogger? Andy Spiegl
2006-06-08 16:05 ` Mikael Magnusson
2006-06-16 15:42   ` completion for nanoblogger Andy Spiegl

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).