Commit Graph
2 Commits
Author SHA1 Message Date
Geza LoreandEric Freese 73f774bd5d Add match_prev_cmd strategy.
A new suggestion strategy 'match_prev_cmd' is available. This is a bit
more context aware variaton on the default strategy.
The suggestion will be:
- The newest history entry that matches the current prefix, AND
- Whose preceding history entry also matches the previously executed
command.

See src/strategies/match_prev_cmd.zsh for an example.
2016-03-14 16:51:20 -06:00
Geza LoreandEric Freese 976acc708c Fix default suggestion strategy and add testing 2016-03-14 16:51:20 -06:00