working with gedit imitation plugin