I like the functionality of gf
but for certain files I would like to run some (non-Vim) code on the file prior to displaying it in my window. Is there a way to capture the filename under the cursor so it can be used in a shortcut?
For example, I want to create a shortcut that would run <custom_unix_script> <file>
(where is under the cursor) and display those results in a new buffer or tab.