I'm preparing a makefile for converting org files to markdown files with the use of pandoc. Its content looks like this (note that conversion rule is just for a reference):
pandoc -t markdown -s $< -o $@
pandoc -t markdown -s aa.org -o aa.md
Both rules work. For example, I can run:
with success. What is more, in bash I can expand:
with a Tab key to have
However it'd be convenient to have autocompletion also for filenames.
So I'd like to have something like this: assuming, that in the same folder there is a file named
filefortest.org I write in a bash:
and voila! I have
filefortest autocompleted. Is it possible to achieve this?
PS. I know that the functionality I'm asking for can be easily obtained with simple bash script:
pandoc -t markdown -s $1.org -o $1.md. So the question is out of my curiosity....