jaanauati / hyper-search

Search-text plugin for Hyper.js
173 stars 21 forks source link

Search bottom up #66

Closed hector closed 5 years ago

hector commented 5 years ago

Currently the search is done like you would expect in a file: first found element is the first from the begging of the file, and then next etc until the bottom.

When I search on the shell I normally prefer to find the occurrences from the bottom to the top. Is this something configurable in the plugin?

hector commented 5 years ago

BTW, this is the behaviour of iTerm

samuelyeungkc commented 5 years ago

this is actually easy. swap ahdleSearchPrev and handleSearchNext would solve this problem

In containers.js

if (event.key === ENTER && event.shiftKey) { this.handleSearchPrev(); } else if (event.key === ENTER) { this.handleSearchNext();

jaanauati commented 5 years ago

implemented in v0.4.0.