I added some more patches. 3/4 is the previous version, with code added to make / work (it just prompts for a regex) and a configuration variable added for Junio: Junio C Hamano wrote: > I'd appreciate if you can allow this "single stroke" mode to be optionally > turned off by the end user. I decided to disable it by default since it is an inconsistency between add -i and add -p for users of both, so if you want this feature, make sure to enable interactive.readkey. (I don't mind the inconsistency as I never use 'add -i'.) I also removed the stray %control_chars from back when my draft versions used raw instead of cbreak mode, and consequently had to test for Ctrl-C themselves. Finally, the first two patches fix small problems I saw while looking over the code, and 4/4 changes the color of error messages caused by keyboard input to color.interactive.help, lest they drown in the hunk that is automatically redisplayed. Thomas Rast (4): add -p: change prompt separator for 'g' add -p: trap Ctrl-D in 'goto' mode add -p: prompt for single characters add -p: print errors in help colors Documentation/config.txt | 6 ++++ git-add--interactive.perl | 70 ++++++++++++++++++++++++++++++++++++-------- 2 files changed, 63 insertions(+), 13 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html