hchbaw/auto-fu.zsh

Errors after sourcing

Opened this issue · 8 comments

$ git clone https://github.com/hchbaw/auto-fu.zsh.git
$ cd auto-fu.zsh
$ chmod +x auto-fu.zsh
$ ./auto-fu.zsh
./auto-fu.zsh: line 295: autoload: command not found
./auto-fu.zsh: line 297: syntax error near unexpected token `)'
./auto-fu.zsh: line 297: `() {'
$ zsh --version
zsh --version
zsh 4.3.11 (i386-apple-darwin12.0)

Hi, thank you for your report.

How about doing this instead?

$ git clone https://github.com/hchbaw/auto-fu.zsh.git
$ cd auto-fu.zsh
$ . ./auto-fu.zsh
$ . ./auto-fu.zsh
Cannot rebind self-insert: user:_zsh_highlight_widget_self-insert
Cannot rebind backward-delete-char: user:backward-delete-char
Cannot rebind backward-kill-word: user:backward-kill-word
Cannot rebind kill-line: user:kill-line
Cannot rebind kill-whole-line: user:kill-whole-line
Cannot rebind kill-word: user:kill-word
Cannot rebind magic-space: user:magic-space
Cannot rebind yank: user:yank
(eval):1: bad pattern: ^[[22
(eval):1: bad pattern: ^[[22
(eval):1: bad pattern: ^[[22
(eval):1: bad pattern: ^[[22

I also tried checking out the latest tag, and then sourcing. Same error. I guess that tagged version was considered stable, so do you need more information about my setup?

Yes, it should be considered stable.
But it seems that you are using zsh-syntax-highlighting. Stable versions (including the master and next branches) do not support very well yet these well-known extensions. (zsh-sytax-highlighting, url-quote-magic etc)
I'm very sorry for the inconvenience.

If you want to experiment with these extensions, plese take a look at thb or pu branch.
These branches are the integration and dump of my topic branches

Thank you very much for your reports!

Yeah, I'm using zsh-syntax-highlighting. A pity that they don't work together.

I also use zsh-syntax-highlighting and it doesn't work at all...

I also tried the thb and pu branches but that made the terminal crash...

Got the same results @RobertAudi got back in 2013.

@milieu This project has not been updated for a long time. You should look at tarruda/zsh-autosuggestions

Could you confirm that the #2 (comment) does not work, @milieu ?