I would like a command such as this:
but I want the subsequent link to open the file in gedit or the default text editor in linux. Bonus points if it also works in windows.
Make a small script "rungedit" containing
in your document. This works for me in Acrobat Reader on Linux.