Closed hamxabaig closed 7 years ago
That's how it works on mac 😄
Which OS are you on?
haha, I'm on mac too. I'm using zsh in terminal.
Interesting 🤔
Which terminal are you using?
@siddharthkp zsh.
Thought it'll help.
Hmm,
historie
uses sindresorhus/shell-history
Can you check if that works with zsh?
If not, I'll try to implement it.
@siddharthkp shell-history
gives me all of the commands that were typed. Its working.
I just tried with zsh, working for me 🙈
Can you help me debug this?
Umm strange. Yeah sure, would love to help.
After typing historie
, it gives me nothing (as in screenshot above). But when i try to filter by typing some command name. It actually gives me the list. o.O
Here's the line for the starting case:
https://github.com/siddharthkp/historie/blob/master/history.js#L15
@siddharthkp Sure, I'll check this. Forked 🎉
FWIW, I'm using zsh (with ohmyz.sh) and it works properly. Not sure what the cause would be for your case.
@siddharthkp I checked and problem was that hint
was empty when typing historie
. So filtering commands with empty hint
was returning empty choices
. I added a check when hint
is empty then i just resolve it with recent 8 commands.
When we type
historie
in the command line. It'd be great to show list of recent commands say like 5-8 of them. Right now it just shows me to search, leaving me to additional key strokes. ;)