cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.9k stars 178 forks source link

Stray messages are shown in the bash scrollback #18

Open Wilfred opened 5 years ago

Wilfred commented 5 years ago

If I run a command in bash:

$ echo goodbye world
goodbye world

I then press Ctrl-r goodbye Ctrl-c, and I see this in my bash session:

$ echo goodbye world
goodbye world
$ #mcfly: 
$  mcfly search
$ 
cantino commented 5 years ago

Those messages are currently expected. The #mcfly: part is an unavoidable (as far as I can tell) part of how you have to hook into the Bash shell. I need to escape any special characters so that they don't execute, and as far as I can tell, the only way to do this with readline is to comment them out. There is conversation in #6 about how to maybe fix this.