Search for diff --git instead

This is the "top" of the patch for each filename so grab the filename
from there (makes assumptions about the patch format).

Check if the current line is a "@@ line".

This lets the user press Enter also outside the hunks themselves.
Style cleanup