zsh-workers
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Ideas for new builtins
Date: Wed, 15 Aug 2018 09:34:20 +0200	[thread overview]
Message-ID: <CAKc7PVC2Ojju1=oXoO_Tdh-j4psuNMNEyHGsO-ZRS64XUBFi+A@mail.gmail.com> (raw)

This should be interesting, I'm approaching near evil-fork attempt ;)
to create module with new builtins for basic tasks, and this includes
replacing pointers to an existing builtin with pointer to a custom one
;) Did this once, it's possible, there's the table with pointers to
the builtins.

But the evil-aspect will probably fail, I've browsed list of Zsh
builtins and there's really no idea to customize something. But I can
add new builtins. Has someone an idea for some basic builtin?

I thought about: `intovar'. I would copy most of `coproc' code to implement:

% intovar STRING { for i in 1 2 3; do grep $mywords[i] /etc/services; done; }

So flexibility of coproc's code supply methods connected with read-all
into-parameter. That's the best idea I currently have.

Has someone a dusty feature request for a builtin? Some idea? I could
implement it. The module will be part of Zplugin.

-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin


                 reply	other threads:[~2018-08-15  7:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAKc7PVC2Ojju1=oXoO_Tdh-j4psuNMNEyHGsO-ZRS64XUBFi+A@mail.gmail.com' \
    --to=sgniazdowski@gmail.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).