There are some edge cases. For example, if the first character of your file name is a space, you'll have to double-quote the prefix you want to match on. I don't think that's so bad though, and that does work.
You're using "on" - the short form of "OpenNew", in which case getting file name tab completion makes sense. However, if you start with a different command, say "Help" or "Syntax", the tab completions you get in those cases should be lists of matching built-in commands and available syntax recognizers, respectively. But you get filename completions in those cases, too. And what should you get for commands that take no parameters, or take strings or numbers? Nothing? The "Help" page for the given command maybe? Hmm.
Perhaps "fragile" isn't the right word. Let's go with "elegant" instead. The current behavior isn't particularly elegant, especially when ne already provides those other completions in other contexts. I'm playing with a technique to make it better, but we'll have to see if it makes the code harder or easier to understand. There's some pretty obtuse logic in there now that I wouldn't mind replacing with something that can be understood on the first reading. It could be shorter, too. It also may never see the light of day, because this is a tiny corner in an infrequently visited closet of an antechamber. There are lots of things ne could do, but balancing that with the desire to keep the code base small is tricky. As Sebastiano once asked me to make that point, "When was the last time you used the Center command?"