With FileType, it possible to have the file extension instead of the file name selected?

I have a hotkey bound to the following:

FileType NEW=.txt NEWNAME="New Markdown File.md"

It will create a new file and activate inline rename, with the file name "New Markdown" selected. I am happy with that as it is.

I would like to create another hotkey similar to the above but instead of the file name being selected I would like the extension selected. This way I can quickly create a number of file types that are based on text files by just providing their extension when the inline field is active:

  • .ahk
  • ps1.
  • psm1.
  • json.
  • xml
  • html

I read the documentation page for Filtype and did not find a means to do this. Is there a way to do this?

Any help would be greatly appreciated!

Have you tried hitting F2 after executing the hotkey?

1 Like

eeh. I was hoping for a solution internal to Opus. I will try that and see how it works. I'll report back :slight_smile:

You was actually right. It was much simpler to do it your way. Cheers!