In my bash shell, when my cursor is between text, and I hit Tab, it autocompletes the filename, and when I hit Enter, it inserts the completion at the cursor, and everything after the cursor remains, e.g.
$ cp foo.ba¦r.baz.py ^ <== cursor position Hit the Tab key, and now I see:
$ cp foo.bar.baz.py¦r.baz.py ^ <== cursor position I like this behavior, particularly when doing a mv or cp and want to modify the original filename. How can I get zsh to do the same thing?