zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Aleksandr Miroslav <alexmiroslav@gmail.com>, zsh-users@zsh.org
Subject: Re: compctl help needed for IRC channel names
Date: Fri, 10 Nov 2017 14:42:46 -0800	[thread overview]
Message-ID: <171110144246.ZM16292@torch.brasslantern.com> (raw)
In-Reply-To: <CACcSE1xm8noE1p8mtR=jxhVjmOkkL=QwbLqtLGPW6urbj11gWQ@mail.gmail.com>

On Nov 7,  1:13pm, Aleksandr Miroslav wrote:
} 
} My IRC bouncer (ZNC), writes out IRC logs into directories that look like
} this:
} 
} /path/network1/#channel1
} /path/network1/##channel2
} /path/network1/user1
} /path/network2/#channel3
} /path/network2/##channel4
} /path/network2/user2
} 
} I would like compctl to autocomplete for me

It'd be more typical nowadays to run 'compinit' from your startup files
and use the "new" (now 15+ years old) completion system.

} with these options:
} 
} channel1 channel2 user1 channel3 channel4 user2

Meaning these are what show up in a completion listing, e.g., on ^D or
when TAB produces an ambiguous result; but when one is substituted into
the command line, the full path should appear?

} But, when I choose channel1 or whatever, it should return the full real
} path (/path/network1/#channel1)
} 
} How can I do this?


-- 
Barton E. Schaefer


  parent reply	other threads:[~2017-11-10 22:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-07 21:13 Aleksandr Miroslav
2017-11-08  0:08 ` Aleksandr Miroslav
2017-11-10 22:42 ` Bart Schaefer [this message]
2017-11-10 23:15   ` 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=171110144246.ZM16292@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=alexmiroslav@gmail.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).