Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: compctl help needed for IRC channel names
- X-seq: zsh-users 22961
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Aleksandr Miroslav <alexmiroslav@xxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: compctl help needed for IRC channel names
- Date: Fri, 10 Nov 2017 14:42:46 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=X/Qjduw/tymUIDLbChhX+CTeo2zCkvAfxE0GlJi6KCY=; b=TUcD+zm4mXsCl4TimKcOj2e24tLsPsNXzJ+Va1BgDUxcJ3EjKWohzFMo6Wg+deX3Tq MclrPbpqxVcWMkTJQabILWCPSPUbsFU0ghmOtGMrb7Xd0FSefTHuiZ/MQ5litOeLikLH HaCMAe95+uOPeazpc/4L+l62Ec42x9vo2tQICBQ55aegXwI1vKxVEi2bX44K6cmzliXh vb1T/uivvJ27/9ggzPxkhRgTJ2sIWkh7d0ngoDNIujEUex2i7LbcNUBrZtTI5M9JnAJ2 3E5kcLw0wM0u8UZdAs4Ohn2+2qYhz6jQH0qk8zmvWJTi/IVXtnZjity7+F75NUd804Jz HkRA==
- In-reply-to: <CACcSE1xm8noE1p8mtR=jxhVjmOkkL=QwbLqtLGPW6urbj11gWQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author