mcfly icon indicating copy to clipboard operation
mcfly copied to clipboard

zsh: mcfly incorrectly parses multi-line zhistory entries

Open durin42 opened this issue 5 years ago • 5 comments

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.

durin42 avatar Jul 01 '20 17:07 durin42

Thanks @durin42, I think that is a bug.

cantino avatar Jul 04 '20 00:07 cantino

I'm experiencing the same issue

dithpri avatar Apr 14 '22 05:04 dithpri

Same problem here, in my case mcfly became unusable for most cases because I have to use history | grep every time it appears.

lucidyan avatar Aug 01 '22 23:08 lucidyan

Any news on this?

magnetophon avatar Mar 19 '23 13:03 magnetophon

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.

cantino avatar Mar 19 '23 20:03 cantino