The Alt key is inconvenient/confusing for most OS X users. Alt is not enabled by default so it needs to be specifically remapped in a terminal application.
Consistency is better. It's easier to remember the search keys if they all use Ctrl.
Why the Alt mappings exist:
I assume there was a good reason to use Alt when the IP address search was added, but the commit message doesn't mention what it was.
The SHA-1 search was originally changed from Ctrl to Alt because prefix + C-hconflicts with tmux-pain-control. C-s doesn't work either because it sends the XOFF signal, so changing this will require an awkward letter. I went with "a" because it's the vowel in both "SHA" and "hash".
Backwards compatibility with the old mappings should be added as well, but I'd like to hear your thoughts on this PR before writing more code.
Reasons:
Why the Alt mappings exist:
prefix + C-h
conflicts with tmux-pain-control.C-s
doesn't work either because it sends theXOFF
signal, so changing this will require an awkward letter. I went with "a" because it's the vowel in both "SHA" and "hash".Backwards compatibility with the old mappings should be added as well, but I'd like to hear your thoughts on this PR before writing more code.