fish-shell / fish-shell/fish-shell
Feature request: history-word-search-*?
- Dominant language
- Rust
- Stars
- 34.2k
- Forks
- 2.4k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 13
Description
The `history-token` functions search the list of previously used arguments as they were passed to executed commands. This is great! There is one use-case, though, where I keep thinking "maybe there could be a better way":
in history:
`ansible-playbook all.yml --limit first-host,second-host,third-host`
later:
`$ ansible-playbook all.yml --limit sec` + `history-token-search-backward`
result:
`$ ansible-playbook all.yml --limit first-host,second-host,third-host`
What happens: the argument `first-host,second-host,third-host` is auto completed. This is great for auto completing _arguments_, but not _partial arguments_, which is what I frequently need, too. So I propose
new:
`$ ansible-playbook all.yml --limit sec` + `history-word-search-backward`
result:
`$ ansible-playbook all.yml --limit second-host`
also:
`$ ansible-playbook all.yml --limit third-host,sec` + `history-word-search-backward`
result:
`$ ansible-playbook all.yml --limit third-host,second-host`
Contributor guide
Assessment
This issue has not been assessed yet.