]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Fix casing of search.js
authorDaniel Imms <daimms@microsoft.com>
Sun, 9 Jul 2017 08:39:53 +0000 (01:39 -0700)
committerDaniel Imms <daimms@microsoft.com>
Sun, 9 Jul 2017 08:49:17 +0000 (01:49 -0700)
gulpfile.js
src/addons/search/Search.ts [deleted file]
src/addons/search/search.ts [new file with mode: 0644]

index c9a0f1a0d465c2004ca9f9a1f7968a53792d479a..9b0a6de73f25a775eba3602677e134a504b472ee 100644 (file)
@@ -82,13 +82,13 @@ gulp.task('browserify-addons', ['tsc'], function() {
   let searchOptions = {
     basedir: `${buildDir}/addons/search`,
     debug: true,
-    entries: [`${outDir}/addons/search/Search.js`],
+    entries: [`${outDir}/addons/search/search.js`],
     cache: {},
     packageCache: {}
   };
   let searchBundle = browserify(searchOptions)
         .bundle()
-        .pipe(source('./addons/search/Search.js'))
+        .pipe(source('./addons/search/search.js'))
         .pipe(buffer())
         .pipe(sourcemaps.init({loadMaps: true, sourceRoot: ''}))
         .pipe(sourcemaps.write('./'))
diff --git a/src/addons/search/Search.ts b/src/addons/search/Search.ts
deleted file mode 100644 (file)
index 5a227a8..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/**
- * @license MIT
- */
-
-import { SearchHelper } from './SearchHelper';
-
-declare var exports: any;
-declare var module: any;
-declare var define: any;
-declare var require: any;
-declare var window: any;
-
-(function (addon) {
-  if ('Terminal' in window) {
-    /**
-     * Plain browser environment
-     */
-    addon(window.Terminal);
-  } else if (typeof exports === 'object' && typeof module === 'object') {
-    /**
-     * CommonJS environment
-     */
-    const xterm = '../../xterm';
-    module.exports = addon(require(xterm));
-  } else if (typeof define == 'function') {
-    /**
-     * Require.js is available
-     */
-    define(['../../xterm'], addon);
-  }
-})((Terminal: any) => {
-  /**
-   * Find the next instance of the term, then scroll to and select it. If it
-   * doesn't exist, do nothing.
-   * @param term Tne search term.
-   * @return Whether a result was found.
-   */
-  Terminal.prototype.findNext = function(term: string): boolean {
-    if (!this._searchHelper) {
-      this.searchHelper = new SearchHelper(this, Terminal.translateBufferLineToString);
-    }
-    return (<SearchHelper>this.searchHelper).findNext(term);
-  };
-
-  /**
-   * Find the previous instance of the term, then scroll to and select it. If it
-   * doesn't exist, do nothing.
-   * @param term Tne search term.
-   * @return Whether a result was found.
-   */
-  Terminal.prototype.findPrevious = function(term: string): boolean {
-    if (!this._searchHelper) {
-      this.searchHelper = new SearchHelper(this, Terminal.translateBufferLineToString);
-    }
-    return (<SearchHelper>this.searchHelper).findPrevious(term);
-  };
-});
diff --git a/src/addons/search/search.ts b/src/addons/search/search.ts
new file mode 100644 (file)
index 0000000..5a227a8
--- /dev/null
@@ -0,0 +1,57 @@
+/**
+ * @license MIT
+ */
+
+import { SearchHelper } from './SearchHelper';
+
+declare var exports: any;
+declare var module: any;
+declare var define: any;
+declare var require: any;
+declare var window: any;
+
+(function (addon) {
+  if ('Terminal' in window) {
+    /**
+     * Plain browser environment
+     */
+    addon(window.Terminal);
+  } else if (typeof exports === 'object' && typeof module === 'object') {
+    /**
+     * CommonJS environment
+     */
+    const xterm = '../../xterm';
+    module.exports = addon(require(xterm));
+  } else if (typeof define == 'function') {
+    /**
+     * Require.js is available
+     */
+    define(['../../xterm'], addon);
+  }
+})((Terminal: any) => {
+  /**
+   * Find the next instance of the term, then scroll to and select it. If it
+   * doesn't exist, do nothing.
+   * @param term Tne search term.
+   * @return Whether a result was found.
+   */
+  Terminal.prototype.findNext = function(term: string): boolean {
+    if (!this._searchHelper) {
+      this.searchHelper = new SearchHelper(this, Terminal.translateBufferLineToString);
+    }
+    return (<SearchHelper>this.searchHelper).findNext(term);
+  };
+
+  /**
+   * Find the previous instance of the term, then scroll to and select it. If it
+   * doesn't exist, do nothing.
+   * @param term Tne search term.
+   * @return Whether a result was found.
+   */
+  Terminal.prototype.findPrevious = function(term: string): boolean {
+    if (!this._searchHelper) {
+      this.searchHelper = new SearchHelper(this, Terminal.translateBufferLineToString);
+    }
+    return (<SearchHelper>this.searchHelper).findPrevious(term);
+  };
+});