(RGUI) history_parse and directory_parse become one function