Opening text file with function key

I would like, by pressing an function key, a text file/html file on which the cursor is place in a lister view in the default text editor I use.

If relevant, in settings/preferences/Doluble-Click on files in a lister/ I have ticked "Open unregistered file types in a text vieer..." I have entered the text editor program location].

Help with this would be greatly appreciated.

Bind the key to something like:

"C:\Windows\Notepad.exe" {filepath}

Thank you very much.