1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-26 04:05:45 +01:00

Trivial refactoring of io.readDirectory.

This commit is contained in:
Doug Kearns
2008-12-30 19:17:51 +11:00
parent 2828b47b65
commit ef34a5b71d
2 changed files with 4 additions and 4 deletions

View File

@@ -550,11 +550,12 @@ function IO() //{{{
array.push(entry.QueryInterface(Ci.nsIFile)); array.push(entry.QueryInterface(Ci.nsIFile));
} }
if (sort) if (sort)
return array.sort(function (a, b) b.isDirectory() - a.isDirectory() || String.localeCompare(a.path, b.path)); array.sort(function (a, b) b.isDirectory() - a.isDirectory() || String.localeCompare(a.path, b.path));
return array; return array;
} }
else else
return []; // XXX: or should it throw an error, probably yes? return []; // XXX: or should it throw an error, probably yes?
// Yes --djk
}, },
// file is either a full pathname or an instance of file instanceof nsILocalFile // file is either a full pathname or an instance of file instanceof nsILocalFile

View File

@@ -22,7 +22,6 @@ BUGS:
(recent CVS regressions): (recent CVS regressions):
- visual caret mode is broken - visual caret mode is broken
- BookmarkAdd is fired once for each bookmark periodically i.e. not in response to adding a bookmark
FEATURES: FEATURES:
9 finish :help TODOs 9 finish :help TODOs
@@ -37,6 +36,7 @@ FEATURES:
8 :addsearch wikpedia http://en.wikipedia.org/wiki/Special:Search?search=%s to allow saving of 8 :addsearch wikpedia http://en.wikipedia.org/wiki/Special:Search?search=%s to allow saving of
quick searches in the RC file. quick searches in the RC file.
Why not just add a bookmark? --Kris Why not just add a bookmark? --Kris
8 allow for multiple ex commands separated with |
7 adaptive learning for tab-completions 7 adaptive learning for tab-completions
(https://bugzilla.mozilla.org/show_bug.cgi?id=395739 could help) (https://bugzilla.mozilla.org/show_bug.cgi?id=395739 could help)
7 use ctrl-n/p in insert mode for word completion 7 use ctrl-n/p in insert mode for word completion
@@ -53,9 +53,8 @@ FEATURES:
6 support private mode (and :set [no]private): http://ehsanakhgari.org/blog/2008-11-08/prepare-your-add-private-browsing 6 support private mode (and :set [no]private): http://ehsanakhgari.org/blog/2008-11-08/prepare-your-add-private-browsing
6 add [count] support to :b* and :tab* commands where missing 6 add [count] support to :b* and :tab* commands where missing
6 registers 6 registers
6 allow for multiple ex commands separated with |
6 check/correct spellings in insert mode with some mappings 6 check/correct spellings in insert mode with some mappings
6 add more autocommands (TabClose, TabOpen, TabChanged, DownloadPre/Post any more?) 6 add more autocommands (TabClose, TabOpen, TabChanged any more?)
6 jump to the next heading with ]h, next image ]i, previous textbox [t and so on 6 jump to the next heading with ]h, next image ]i, previous textbox [t and so on
6 :grep support (needs location list) 6 :grep support (needs location list)
6 use '' to jump between marks like vim 6 use '' to jump between marks like vim