From: "Jörg Sommer" <joerg@jo-so.de>
To: zsh-workers@zsh.org
Subject: File completion with git ls-files
Date: Sun, 7 Jan 2024 19:05:13 +0100 [thread overview]
Message-ID: <ujth4vhk5oeyo2oq22tlwbnwzlw7um6xny5cnwr55dfvgsxlry@prk6w3ib3rbi> (raw)
[-- Attachment #1: Type: text/plain, Size: 566 bytes --]
Hi,
I am looking for a way to complete the full path to files in a subdirectory
by its name. I would like to enter `less foo`, hit TAB (or a special short
cut) and cycle through the list of `dir/subd-1/subd-2/foo…`,
`dir2/abc/foo…`, `dir2/s1/s2/s3/foo`. Because that's most of the time in a
git repo, the usage of `git ls-files` would be useful. Does Zsh provide
anything to do this?
Regards Jörg
--
Erfahrung heißt gar nichts. Man kann seine Sache auch 35 Jahre schlecht
machen.
(Kurt Tucholsky)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 269 bytes --]
next reply other threads:[~2024-01-07 18:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-07 18:05 Jörg Sommer [this message]
2024-01-07 18:46 ` 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=ujth4vhk5oeyo2oq22tlwbnwzlw7um6xny5cnwr55dfvgsxlry@prk6w3ib3rbi \
--to=joerg@jo-so.de \
--cc=zsh-workers@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).