fix issue where an empty window would not find a git repo. add key map for shortcut