zsh-users
 help / color / mirror / code / Atom feed
From: Chris Johnson <cjohnson@cs.utk.edu>
To: "N.J. Thomas" <njt@ayvali.org>
Cc: zsh-users@sunsite.dk
Subject: Re: directory stack expansion
Date: Thu, 18 Jan 2007 18:15:06 -0500	[thread overview]
Message-ID: <20070118231506.GA2202@cetus30.cs.utk.edu> (raw)
In-Reply-To: <20070118224819.GE31068@ayvali.org>

N.J. Thomas sent me the following 0.8K:

> Right now, the only way I can do this is by typing this at the prompt:
> 
>     $ cd `echo ~+1`
> 
> and then hitting tab after the second backtick. Is there a way to get
> Zsh to get to expand without the backticks?

The zshzle man page lists all the builtin widgets that zsh provides, and
the one that seems to do the trick for me is:

    expand-word (^X*) (unbound) (unbound)
        Attempt shell expansion on the current word.

Control-X followed by * (Shift-8) is bound in the emacs keymap.  That's
not exactly easy to type, but you should be able to map it to something
easier:

   bindkey '^X^D' expand-word

-- 
Chris Johnson
cjohnson@cs.utk.edu
http://www.cs.utk.edu/~cjohnson


  reply	other threads:[~2007-01-18 23:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-18 22:48 N.J. Thomas
2007-01-18 23:15 ` Chris Johnson [this message]
2007-01-18 23:21   ` N.J. Thomas

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=20070118231506.GA2202@cetus30.cs.utk.edu \
    --to=cjohnson@cs.utk.edu \
    --cc=njt@ayvali.org \
    --cc=zsh-users@sunsite.dk \
    /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).