Oh wow, I was hoping this would make it but wasn't sure. I do want to clarify that The Girl Who Leapt Through Time is basically a Japanese cultural touchstone and has a ton of versions/retellings/etc. The book was published in the 1960s and I feel like I see the original book and a live action version from the 80s mentioned most frequently in current Japanese pop culture. A parody of it even shows up in the English translation of the manga What Did You Eat Yesterday.
Here's the 80s movie trailer:
I haven't seen the anime so wasn't aware of the "walnut thing", the scent of lavender (although I have wondered if it's actually another flower and this isn't the correct translation, my Japanese isn't good enough to say) is the time trigger in the older versions. I'll have to check the anime out.