mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 08:08:00 +01:00
automatically try to add .exe when running programs on windows
This commit is contained in:
4
NEWS
4
NEWS
@@ -1,8 +1,12 @@
|
||||
<pre>
|
||||
2008-05-14:
|
||||
* version 1.1
|
||||
* try to add .exe automatically to filenames on windows, so :set editor=gvim -f
|
||||
will automatically invoke gvim.exe (if it's in the path). Thanks to
|
||||
Guido Van Hoecke
|
||||
* readded visualbellstyle (thanks mauke)
|
||||
* new popups=4 option
|
||||
* many bug fixes as usual
|
||||
|
||||
2008-05-14:
|
||||
* version 1.0
|
||||
|
||||
@@ -469,6 +469,19 @@ liberator.IO = function () //{{{
|
||||
file.initWithPath(path);
|
||||
if (file.exists())
|
||||
break;
|
||||
|
||||
// automatically try to add common file extensions on windows
|
||||
if (WINDOWS)
|
||||
{
|
||||
var extensions = [".exe", ".cmd", ".bat"];
|
||||
for (let j = 0; j < extensions.length; j++)
|
||||
{
|
||||
path = dirs[i] + "\\" + program + extensions[j];
|
||||
file.initWithPath(path);
|
||||
if (file.exists())
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e) { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user