Should also use `basename` instead of `splitdir`. We can separate editor name and editor path, which will be the same except in this case, using `basename` to determine the name from the path.