Write sessions on tab leave.
Add a file for grep operator