- install autohotkey
- put this script in a folder with a bunch of textfiles
- add a shortcut to the .ahk-file to the startup-folder
profit!
; typing 'foo ' will expand foo.txt | |
; typing '/bar' will expand _bar.txt | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
Loop *.txt | |
{ | |
tag:= "::" + StrReplace(A_LoopFileName, ".txt") | |
tag:= StrReplace(tag,"_","`/") | |
FileRead, txt, %A_LoopFileName% | |
HotString(tag,"{Raw}"+txt) | |
} |