Skip to content

Instantly share code, notes, and snippets.

@Mpdreamz
Created May 14, 2011 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mpdreamz/972644 to your computer and use it in GitHub Desktop.
Save Mpdreamz/972644 to your computer and use it in GitHub Desktop.
AutoHotKey script for editing in GSALister
FullFileName = %1%
SplitPath, FullFileName, name, dir, ext, noext, drive
FileGetSize, Size, %FullFileName%
if (Size = 0)
{
FileAppend, /* New File */, %FullFileName%
; HACK, zero byte files sadly default to the internal lister
}
SEND ^r
SEND %name%
SEND {F3}
SEND ^r
if (Size = 0)
{
; Sadly opening zero byte files touches them.
SEND ^a
SEND {DEL}
SEND ^s
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment