auto move safari and close safari tab when viewing markdown