1. I am not doing this and have never done that.
2. When I was working and looking outside the window.
I have made up these examples. I want to know if the first sentence is grammatical or do we need "I" before "have" in the first sentence. And does the second sentence mean "when I was working and I was looking outside the window"? Is the second sentence idiomatic?