mcfly
mcfly copied to clipboard
zsh: mcfly incorrectly parses multi-line zhistory entries
if you have a command typed as
echo foo \
bar
that ends up as separate entries in mcfly, rather than a single one. It looks like mcfly is incorrectly parses the history entry? The relevant snippet for that from my .zsh_history is:
: 1593624164:0;echo foo \\
bar
It looks like mcfly is getting confused by this, and I think it only gets the last line of the command.
Thanks @durin42, I think that is a bug.
I'm experiencing the same issue
Same problem here, in my case mcfly became unusable for most cases because I have to use history | grep every time it appears.
Any news on this?
It hasn't been a priority for me since I don't use many multi-line commands, but I'm open to pull requests. https://github.com/cantino/mcfly/pull/162 was a first attempt but someone needs to own it and test it.