From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: completion fails if dir referenced via variable.
Date: Tue, 25 Feb 2014 07:21:12 -0800 [thread overview]
Message-ID: <530CB4E8.8050305@eastlink.ca> (raw)
In-Reply-To: <CAH+w=7aqdvx52VFv6MCrkUKqt+5tzH665H_X6U1e1SMvNQF1ig@mail.gmail.com>
When I open an xterm it automatically assigns its current directory to a
variable, eg. the current directory in 'pts/1' will always be '$t1'. I
use this shorthand for moving stuff. Say I'm in xterm 'pts/2' and I want
to copy something from the current dir in 'pts/1', I just " cp
$t1/filename .' " Works fine. However completion does not work. Using
that last example, if I type " cp $t1/filen [tab] " what happens is that
" $t1 " expands just fine followed by " filen ". On the line below it
says: " Completing all expansions ", but nothing happens. If I press
[tab] again the expansion of " $t1 " collapses and on the next line it
says: " Completing original " from then on [tab] alternates between
those two states. Can I overcome this? It seems strange since the
variable expands just fine, so completion 'knows' what it's looking for
as if I typed the full path by hand (and if I do, type it by hand,
completion works fine, of course). I'm betting there's a setopt for this.
next prev parent reply other threads:[~2014-02-25 15:21 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-04 4:09 How to make a function use inbuilt completions of another command? Keerthan jai.c
2014-02-04 15:39 ` Bart Schaefer
2014-02-04 16:10 ` Frank Terbeck
2014-02-04 18:08 ` Bart Schaefer
2014-07-21 0:52 ` Keerthan jai.c
2014-02-04 16:25 ` Access command that called a function within the function Ray Andrews
2014-02-05 3:46 ` Bart Schaefer
2014-02-05 18:33 ` Ray Andrews
2014-02-05 20:21 ` Bart Schaefer
2014-02-05 22:54 ` Ray Andrews
2014-02-22 18:35 ` key bindings table? Ray Andrews
2014-02-23 23:40 ` Bart Schaefer
2014-02-24 3:31 ` Ray Andrews
2014-02-25 15:21 ` Ray Andrews [this message]
2014-02-25 17:46 ` completion fails if dir referenced via variable Bart Schaefer
2014-02-25 18:25 ` Ray Andrews
2014-02-25 19:21 ` Bart Schaefer
2014-02-25 19:41 ` Ray Andrews
2014-02-27 2:29 ` Bart Schaefer
2014-02-27 5:06 ` Ray Andrews
2014-02-27 5:34 ` key codes table Ray Andrews
2014-03-01 5:08 ` Bart Schaefer
2014-03-01 20:44 ` Ray Andrews
2014-03-01 22:50 ` shawn wilson
2014-03-02 17:27 ` Bart Schaefer
2014-03-02 18:18 ` shawn wilson
2014-03-03 1:52 ` Ray Andrews
2014-02-25 20:02 ` completion fails if dir referenced via variable Oliver Kiddle
2014-02-25 21:57 ` Ray Andrews
2014-02-27 2:32 ` Bart Schaefer
2014-02-05 22:45 ` Access command that called a function within the function Ray Andrews
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=530CB4E8.8050305@eastlink.ca \
--to=rayandrews@eastlink.ca \
--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).