ah icon indicating copy to clipboard operation
ah copied to clipboard

Reverse intelligent search

Open artemrizhov opened this issue 10 years ago • 3 comments

Saving output history solves one half of the problem. Finding a history item should be as easy as saving. I think this may be accomplished with a search feature just like reverse-search-history in bash, but with some cut of the found output. Then an editor of user's choice may be used to open the selected output. Short outputs may be printed directly to stdout.

artemrizhov avatar Nov 03 '14 20:11 artemrizhov

Will you please elaborate what do you mean? Searching in outputs? Use case: "gimme outputs where we meet that line" Or?

9seconds avatar Nov 04 '14 15:11 9seconds

Actually I mean searching in commands. Searching in outputs is a good idea too, but it is more complex to implement, and imho this is not so important feature. We still can search through the output history file, right?

So the idea is to add the reverse search feature just like Ctrl+r in bash, but it should give some preview of the command output. And it should open the command output when the user presses the Enter button.

artemrizhov avatar Nov 04 '14 23:11 artemrizhov

It is a next plan but unfortunately I have no time realize how curses or termbox will work here. So stay tuned

9seconds avatar Dec 10 '14 09:12 9seconds