From: ☈king <rkingdesk@sharpsaw.org>
To: zsh-users@zsh.org
Subject: Zsh as Application Platform
Date: Sun, 30 Sep 2012 00:57:23 -0500 [thread overview]
Message-ID: <5067DF43.4020708@sharpsaw.org> (raw)
Guys.
Idea
----
Zsh has one of the sweetest CLI interactors around. Readline's chumpy.
Language-specific libs are weak+tedious+incomplete. The best hand-made
implementations will take a very long time to make and still probably
would never be as easily customized as zle.
So, can't we use zsh as the front-end for other tools, to much great
winning profit power?
Example: Pry
------------
Look at the great Ruby REPL, Pry ( http://pryrepl.org/ ).
It comes out of the box using readline, which is sort of nice because
readline is sort of nice. But it hits limits very quickly. Check out
the gnarly hack used here to add just a single keybinding to the REPL:
https://github.com/tpope/pry-editline/blob/master/lib/pry-editline.rb#L11
An alternative is provided via a pure-Ruby alternative, Coolline, but
it's implementation is not sophisticated (has no vi keys; hardcodes
terminal escape sequences), and ended up getting special handling
directly inside pry:
https://github.com/pry/pry/blob/master/lib/pry/pry_instance.rb#L605
So
---
Are there any tools that already do something like this?
I think I could start by simply making ^J/^M do something other than
accept-line (that is, send their buffer to another program via IPC), and
start working on custom completion. But, if there's prior art, I'd like
to study it first.
Thanks!
—☈
next reply other threads:[~2012-09-30 6:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-30 5:57 ☈king [this message]
2012-09-30 16:23 ` Peter Stephenson
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=5067DF43.4020708@sharpsaw.org \
--to=rkingdesk@sharpsaw.org \
--cc=zsh-users@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).