parser: Fix glob parser function, add some code for :edit
tests: Add some :edit tests