Currently, hiSHtory searches are always returned sorted by timestamp of when they ran. As @mustafa0x pointed out here, it may be interesting to instead return commands ranked by their relevance (similar to how fzf works). This could make it so that a search for for i in returns a command like for i in 5 above foobar -i for tin.
Currently, hiSHtory searches are always returned sorted by timestamp of when they ran. As @mustafa0x pointed out here, it may be interesting to instead return commands ranked by their relevance (similar to how fzf works). This could make it so that a search for
for i in
returns a command likefor i in 5
abovefoobar -i for tin
.