mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 08:28:01 +01:00
keywords have higher priority than local files in :open
fixed <leader>S in noscript
This commit is contained in:
4
NEWS
4
NEWS
@@ -1,4 +1,8 @@
|
||||
<pre>
|
||||
2008-06-xx:
|
||||
* version 1.2
|
||||
* keywords in :open <arg> have higher priority than local files now
|
||||
|
||||
2008-06-03:
|
||||
* version 1.1
|
||||
* IMPORTANT: security update for suggest engines
|
||||
|
||||
@@ -285,9 +285,10 @@ liberator.util = { //{{{
|
||||
// strip each 'URL' - makes things simpler later on
|
||||
urls[url] = urls[url].replace(/^\s+/, "").replace(/\s+$/, "");
|
||||
|
||||
// first check if it is an existing local file
|
||||
// first check if it is an existing local file but NOT a search url/keyword
|
||||
// NOTE: the test for being a file is done first, because it's faster than getSearchURL
|
||||
var file = liberator.io.getFile(urls[url]);
|
||||
if (file.exists() && file.isReadable())
|
||||
if (file.exists() && file.isReadable() && !liberator.bookmarks.getSearchURL("", urls[url]))
|
||||
{
|
||||
urls[url] = file.path;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user