zsh-users
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: pckizer@tamu.edu, zsh-users@math.gatech.edu
Subject: Re: Ctrl-Space bindings (was: kills zsh)
Date: Thu, 21 Nov 1996 10:29:56 -0800	[thread overview]
Message-ID: <961121102956.ZM2495@candle.brasslantern.com> (raw)
In-Reply-To: pckizer@tamu.edu (Philip Kizer) "Re: Ctrl-Space kills zsh" (Nov 21, 10:29am)

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


  reply	other threads:[~1996-11-21 18:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-21 11:41 Ctrl-Space kills zsh Aki Vehtari
1996-11-21 13:51 ` Vincent Lefevre
1996-11-21 16:29   ` Philip Kizer
1996-11-21 18:29     ` Bart Schaefer [this message]
1996-11-21 18:54       ` Ctrl-Space bindings (was: kills zsh) Philip Kizer
1996-11-21 20:57     ` Ctrl-Space kills zsh Aki Vehtari
1996-11-22  2:49 ` Geoff Wing

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=961121102956.ZM2495@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=pckizer@tamu.edu \
    --cc=schaefer@nbn.com \
    --cc=zsh-users@math.gatech.edu \
    /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).