Edit command should skip directories (causes freezes)