From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-request@euclid.skiles.gatech.edu Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.6/8.7.3) with ESMTP id FAA09824 for ; Fri, 22 Nov 1996 05:44:13 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id NAA29986; Thu, 21 Nov 1996 13:39:20 -0500 (EST) Resent-Date: Thu, 21 Nov 1996 13:25:59 -0500 (EST) From: "Bart Schaefer" Message-Id: <961121102956.ZM2495@candle.brasslantern.com> Date: Thu, 21 Nov 1996 10:29:56 -0800 In-Reply-To: pckizer@tamu.edu (Philip Kizer) "Re: Ctrl-Space kills zsh" (Nov 21, 10:29am) References: <18346.848593795@gonzo.tamu.edu> Reply-To: schaefer@nbn.com X-Mailer: Z-Mail (4.0b.820 20aug96) To: pckizer@tamu.edu, zsh-users@math.gatech.edu Subject: Re: Ctrl-Space bindings (was: kills zsh) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"15f5T.0.HF7.sw9bo"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/511 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Nov 21, 10:29am, Philip Kizer wrote: } Subject: Re: Ctrl-Space kills zsh } } bindkey -s '\000' '\\ ' } so I don't have to go edit a whole line to surround it with quotes if I } want a space without separating to a new argument. Although the above binding is useful, don't forget that there are default bindings for quote-line (ESC ') and quote-region (ESC "). Other useful bindings, which work only if ctrl-space is still bound to set-mark-command: # Quote-arguments -- wraps everything from the cursor back to the start # of the first argument in quotes, then inserts a space and sets mark # so that a subsequent call to quote-region quotes the next part. bindkey -s '^X"' '^@^A\ef\e" ^@' # Quote-region-and-mark -- quote region, then insert space and mark for # subsequent calls to quote-region-and-mark. bindkey -s "^X'" '\e" ^@' -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.nbn.com/people/lantern