zsh-users
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: prevent some lines directly coming from the history from being executed
Date: Thu, 2 Jun 2022 09:59:32 +0000	[thread overview]
Message-ID: <20220602095932.GC28173@tarpaulin.shahaf.local2> (raw)
In-Reply-To: <1388910908.482590.1653901645100@mail2.virginmedia.com>

Peter Stephenson wrote on Mon, May 30, 2022 at 10:07:25 +0100:
> so maybe a self-insert example is good enough.
> Alternatively, a subsequent sentence like "In a similar way,
> to perform a final action on all lines returned from Zle, the accept-line
> widget can be rebound to a function that performs an action on the current
> line, then calls the .accept-line widget to return the line to the shell."

I'll err on the side of including such an example in v3.

It'll still use the sh function definition syntax; extending
workers/50312 to the docs is beyond the scope of this thread.

> I won't complicate the discussion on the currently proposed text further
> (don't see any fundamental problems), but I wonder if it would be useful to
> give an example of accept-line being adapted?  There is a problem of making
> the documentation too verbose (if technology allowed, it would be useful
> to have a two level manual, the fundamentals and a running commentary,
> but that's a pipedream),

I think it's achievable.  For instance, The TeXbook annotates some
paragraphs as "dangerous bends" (and other paragraphs as "double
dangerous bends") using icons on the the first line of the paragraph.
Those icons designate a paragraph as more advanced material that one may
want to skip on first reading.

For starters, I'll add em(foo) subheadings in v3, as already done in
_arguments.

Cheers,

Daniel


  reply	other threads:[~2022-06-02 10:03 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-24 15:47 Vincent Lefevre
2022-05-24 18:58 ` Bart Schaefer
2022-05-25  2:54   ` Vincent Lefevre
2022-05-25  3:59     ` Bart Schaefer
2022-05-25  8:49       ` Vincent Lefevre
2022-05-26  1:25         ` Bart Schaefer
2022-05-26 14:36           ` Vincent Lefevre
2022-05-26 15:53             ` Daniel Shahaf
2022-05-26 16:13               ` Peter Stephenson
2022-05-27 12:40                 ` Daniel Shahaf
2022-05-28  0:07                   ` Vincent Lefevre
2022-05-28 10:06                     ` Daniel Shahaf
2022-05-28 18:43                       ` Bart Schaefer
2022-05-29 22:55                         ` Daniel Shahaf
2022-05-30  4:04                           ` Bart Schaefer
2022-05-30  9:07                             ` Peter Stephenson
2022-06-02  9:59                               ` Daniel Shahaf [this message]
2022-06-02 10:19                               ` Daniel Shahaf
2022-06-02  9:59                             ` Daniel Shahaf
2022-05-30  9:02                       ` Vincent Lefevre
2022-06-02 10:17                         ` Daniel Shahaf
2022-06-02 13:54                           ` Vincent Lefevre
2022-05-26 16:37             ` Bart Schaefer

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=20220602095932.GC28173@tarpaulin.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=p.w.stephenson@ntlworld.com \
    --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).