hstr icon indicating copy to clipboard operation
hstr copied to clipboard

cat any-text-file | hh

Open dvorka opened this issue 11 years ago • 4 comments

Filter any file in hh style ~ hh grep.

dvorka avatar Jan 29 '14 23:01 dvorka

Is cat-ing to hh supported?

I can't find any documentation for it, nor does it work when I try cat file | hh

edkolev avatar Feb 18 '15 12:02 edkolev

Unfortunately it is not supported as I though that there is no use case. Would it be useful for you? Do you want to process your history file OR you have any other idea? Thanks!

dvorka avatar Feb 18 '15 13:02 dvorka

These use cases come to mind (they are not related to the shell history):

  • print_tmux_pane_contents | grep -o "SOME-REGEX" | hh - Something like this to paste some text visible in the current pane on the commend like.
  • vi $(find . | hh)

There exist shell fuzzy finders (like fzf) which accomplish such tasks, but those tools are way too complex for my taste. While on the other hand, hh's interface seems very elegant to me.

Anyway, thank you for this project

edkolev avatar Feb 19 '15 12:02 edkolev

Make sense! Increasing bug priority.

dvorka avatar Feb 24 '15 07:02 dvorka