Created
May 14, 2011 21:13
-
-
Save Mpdreamz/972644 to your computer and use it in GitHub Desktop.
AutoHotKey script for editing in GSALister
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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