I am trying to create a macro which reproduces the behaviour of CtrlP as in this webpage: https://www.edwinwenink.xyz/posts/48-vim_fast_creating_and_linking_notes/.
However, even if fzf can easily select a file, I don't know how to get its result inside a function so as to insert a snippet (a markdown link in this case).
Any ideas ? Thanks