X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?p=ede;a=blobdiff_plain;f=explorer%2Fsrc%2FExplorerWindow.ec;h=20747eeb75d4daf25b2c876b464242fd72fc3014;hp=b29363c042b4cb124db8d2ade69fd844d40e4688;hb=59e63906501cec039fc6bd236e3fa430d31d6b77;hpb=16f27583a12f8a423a25028164201d43e4acc40e diff --git a/explorer/src/ExplorerWindow.ec b/explorer/src/ExplorerWindow.ec index b29363c..20747ee 100644 --- a/explorer/src/ExplorerWindow.ec +++ b/explorer/src/ExplorerWindow.ec @@ -16,7 +16,11 @@ enum ExplorerToolId class ExplorerWindow : Window { +#ifdef _DEBUG + text = "Ecere Explorer (Debug)"; +#else text = "Ecere Explorer"; +#endif background = activeBorder; borderStyle = sizable; hasMaximize = true; @@ -121,6 +125,13 @@ class ExplorerWindow : Window case goBack: case goForward: break; + case goHome: + { + char * home = getenv("HOME"); + if(home && home[0] && FileExists(home).isDirectory) + view.path = home; + break; + } case goUp: { char * path = view.path; @@ -294,10 +305,21 @@ class ExplorerWindow : Window { if(node.type.isFile) { + #ifndef __WIN32__ char command[MAX_LOCATION]; - char * t = node.path; - sprintf(command, "ide %s", node.path); - ShellOpen(command); + /*_FileType t = node.type; + if(t == ewsFile || t == epjFile || + t == ecFile || t == ehFile || + t == cppFile || t == hppFile || + t == cFile || t == hFile || + t == textFile || t == webFile)*/ + sprintf(command, "ide %s", node.path); + /*else + sprintf(command, "%s", node.path);*/ + Execute(command); + #else + ShellOpen(node.path); + #endif } return true; }