Last active
September 28, 2015 05:38
-
-
Save hokorobi/1393233 to your computer and use it in GitHub Desktop.
PPx BackSpace
This file contains 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
//!*script | |
//PPx.StayMode = 1; | |
// Listfile を表示していなければ普通に BS | |
if (PPx.DirectoryType != 4) { | |
PPx.Execute("%K\"@BS\""); | |
PPx.Quit(); | |
} | |
// 直前に開いていたパス %1 に、今表示している Listfile が存在している場合、 | |
// 通常のディレクトリと同様に BS で Listfile にフォーカスする。 | |
var listfilepath = PPx.Extract("%D" + PPx.WindowIDName); | |
var parentdir = (function(path){ | |
var divpath = path.split("\\"); | |
divpath.pop(); | |
return divpath.join("\\"); | |
})(listfilepath); | |
if (parentdir == PPx.Extract("%1")) { | |
PPx.Execute("*jumppath \"" + listfilepath + "\" /entry" ); | |
PPx.Quit(); | |
} | |
// 履歴を一つたどる | |
PPx.Execute("%k\"@^LEFT\""); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment