Is there a way to retrieve the current filepath, modify it, and open the result?
To be more specific, let's say I'm editing
Then I'd like to automatically open
./some/file/awesome.html (same file name, where
controller.ts is replaced by
For now, the only thing I could come up with is something like
nnoremap <leader>ac :e @%<CR>
which is of course, completely useless since it does not modify the path string.