Skip to content

Commit

Permalink
Improved display of files in console
Browse files Browse the repository at this point in the history
  • Loading branch information
fboes committed Jan 8, 2018
1 parent 27218df commit cf7ca91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ const editor = function(config) {
let filename = v.replace(/^.+\/(.+?)$/, '$1');
let fileStat = fs.lstatSync(v);
return {
name: fileStat.mtime.toLocaleString(config.locale.language || 'en')
name: blogophonDate(fileStat.ctime).format('yyyy-mm-dd HH:MM')
+ "\t" + filename + "\t" +Math.ceil(fileStat.size/1000)+' kB',
value: filename,
short: filename
};
});
if (files.length > 1 && separator) {
if (files.length > 4 && separator) {
files.push(separator);
}
}
Expand Down

0 comments on commit cf7ca91

Please sign in to comment.