change keybindings to enable substring history