fish-shell/fish-shell — pull request #188 by DarkStarSword (2012-06-27 09:23:24+00:00)
Title: Fix move-word back & add ability to temporarily disable autosuggestion

Hi,

I sent these on the mailing list, but I gather you may prefer this medium for submitting patches.

The first patch here fixes an off by two error in the built in move-word back function.

The second patch adds a command to temporarily suppress the autosuggestion feature. The way I've implemented it at the moment will allow it to turn back on when a character is inserted, but another equally valid method would be to require a second command to be sent explicitly to turn it back on. I don't think I need that for vi-mode, but others may want it to work that way. Probably best to decide which way it should work up front before people start depending on it.

Cheers,
-Ian