From a965cb684c516d964a48be3cc75cf2b7075885aa Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 16 May 2013 16:22:53 -0700 Subject: [PATCH] Add some commas to the paths loaded badge --- package.json | 3 ++- src/packages/fuzzy-finder/lib/fuzzy-finder-view.coffee | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b2af2378d..743f0977c 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "less": "git://github.com/nathansobo/less.js.git", "roaster": "0.0.3", "jqueryui-browser": "1.10.2-1", - "season": "0.7.0" + "season": "0.7.0", + "humanize-plus": "1.1.0" }, "devDependencies": { "biscotto": "0.0.11" diff --git a/src/packages/fuzzy-finder/lib/fuzzy-finder-view.coffee b/src/packages/fuzzy-finder/lib/fuzzy-finder-view.coffee index 69f68ce05..68134bf37 100644 --- a/src/packages/fuzzy-finder/lib/fuzzy-finder-view.coffee +++ b/src/packages/fuzzy-finder/lib/fuzzy-finder-view.coffee @@ -2,6 +2,7 @@ SelectList = require 'select-list' _ = require 'underscore' $ = require 'jquery' +humanize = require 'humanize-plus' fsUtils = require 'fs-utils' LoadPathsTask = require './load-paths-task' @@ -167,7 +168,7 @@ class FuzzyFinderView extends SelectList @populateProjectPaths(options) @loadPathsTask = new LoadPathsTask(callback) @loadPathsTask.on 'paths-loaded', (paths) => - @loadingBadge.text(paths.length) + @loadingBadge.text(humanize.intcomma(paths.length)) @loadPathsTask.start() populateOpenBufferPaths: ->