1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 02:54:13 +01:00

Only open files rather than URLs for full or relative path names.

--HG--
branch : testing
This commit is contained in:
Kris Maglione
2010-06-20 11:25:50 -04:00
parent 9589d33fd2
commit 1210bc574a
3 changed files with 71 additions and 84 deletions

View File

@@ -1065,7 +1065,10 @@ lookup:
};
};
completion.addUrlCompleter("f", "Local files", completion.file);
completion.addUrlCompleter("f", "Local files", function (context, full) {
if (!/^\.?\//.test(context.filter))
completion.file(context, full);
});
},
options: function () {
var shell, shellcmdflag;