zsh-workers
 help / color / mirror / code / Atom feed
From: Hendrik Jaeger <ml_zsh-workers@henk.geekmail.org>
To: zsh-workers@zsh.org
Subject: Feature Request: completion for history events
Date: Thu, 29 Dec 2022 13:39:59 +0100	[thread overview]
Message-ID: <20221229133959.27ce81c6@frustcomp.hnjs.home.arpa> (raw)

[-- Attachment #1: Type: text/plain, Size: 947 bytes --]

Hi

I want to request a feature: completion for history events.

I imagine it to work like this:
typing this:
```
ls !<TAB>
```
should provide similar output to the 'first event' output when typing:
```
fc -<TAB>
```

I sometimes find myself in the situation that I need to reuse some argument from an earlier command (usually a filename) but I have no idea how many commands ago I used that argument.
Having tab-completion for '!' would allow me to see the history and pick the right command (e.g. -3) and following this up with the right argument index (e.g. :4) without having to cancel the command I already typed to look at the history.

I hope this description is clear but I’m happy to clarify any questions.
Also if there is another way of achieving the same goal, I might not be aware of it and would appreciate a pointer.

Thank you very much for considering this, but also for how awesome zsh already is!

henk

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2022-12-29 12:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-29 12:39 Hendrik Jaeger [this message]
2023-01-17  2:34 ` Bart Schaefer
2023-01-17  2:36   ` 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=20221229133959.27ce81c6@frustcomp.hnjs.home.arpa \
    --to=ml_zsh-workers@henk.geekmail.org \
    --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).