@jupyterlab/fileeditor 4.0.0-alpha.20 → 4.0.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/searchprovider.d.ts +2 -1
- package/lib/searchprovider.js +4 -0
- package/lib/searchprovider.js.map +1 -1
- package/package.json +18 -18
- package/src/searchprovider.ts +9 -0
package/lib/searchprovider.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MainAreaWidget } from '@jupyterlab/apputils';
|
|
2
2
|
import { CodeMirrorEditor, EditorSearchProvider } from '@jupyterlab/codemirror';
|
|
3
3
|
import { CodeEditor } from '@jupyterlab/codeeditor';
|
|
4
|
-
import { IReplaceOptionsSupport, ISearchProvider } from '@jupyterlab/documentsearch';
|
|
4
|
+
import { IFilters, IReplaceOptionsSupport, ISearchProvider } from '@jupyterlab/documentsearch';
|
|
5
5
|
import { ITranslator } from '@jupyterlab/translation';
|
|
6
6
|
import { Widget } from '@lumino/widgets';
|
|
7
7
|
import { FileEditor } from './widget';
|
|
@@ -32,6 +32,7 @@ export declare class FileEditorSearchProvider extends EditorSearchProvider<CodeE
|
|
|
32
32
|
* Editor content model
|
|
33
33
|
*/
|
|
34
34
|
get model(): CodeEditor.IModel;
|
|
35
|
+
startQuery(query: RegExp, filters: IFilters | undefined): Promise<void>;
|
|
35
36
|
/**
|
|
36
37
|
* Instantiate a search provider for the widget.
|
|
37
38
|
*
|
package/lib/searchprovider.js
CHANGED
|
@@ -38,6 +38,10 @@ export class FileEditorSearchProvider extends EditorSearchProvider {
|
|
|
38
38
|
get model() {
|
|
39
39
|
return this.widget.content.model;
|
|
40
40
|
}
|
|
41
|
+
async startQuery(query, filters) {
|
|
42
|
+
await super.startQuery(query, filters);
|
|
43
|
+
await this.highlightNext(false, true);
|
|
44
|
+
}
|
|
41
45
|
/**
|
|
42
46
|
* Instantiate a search provider for the widget.
|
|
43
47
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchprovider.js","sourceRoot":"","sources":["../src/searchprovider.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"searchprovider.js","sourceRoot":"","sources":["../src/searchprovider.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAShF,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAOtC;;GAEG;AACH,MAAM,OAAO,wBACX,SAAQ,oBAAuC;IAG/C;;;OAGG;IACH,YAAsB,MAAuB;QAC3C,KAAK,EAAE,CAAC;QADY,WAAM,GAAN,MAAM,CAAiB;IAE7C,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAY,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,IAAI,qBAAqB;QACvB,OAAO;YACL,YAAY,EAAE,IAAI;SACnB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,MAA0B,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,UAAU,CACd,KAAa,EACb,OAA6B;QAE7B,MAAM,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACvC,MAAM,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACxC,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,SAAS,CACd,MAAuB,EACvB,UAAwB;QAExB,OAAO,IAAI,wBAAwB,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,MAAc;QAChC,OAAO,CACL,MAAM,YAAY,cAAc;YAChC,MAAM,CAAC,OAAO,YAAY,UAAU;YACpC,MAAM,CAAC,OAAO,CAAC,MAAM,YAAY,gBAAgB,CAClD,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,eAAe;QACb,MAAM,EAAE,GAAG,IAAI,CAAC,MAA0B,CAAC;QAC3C,MAAM,SAAS,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CACjC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAC5B,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAC3B,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/fileeditor",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.21",
|
|
4
4
|
"description": "JupyterLab - Editor Widget",
|
|
5
5
|
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
6
|
"bugs": {
|
|
@@ -40,30 +40,30 @@
|
|
|
40
40
|
"watch": "tsc -b --watch"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@jupyterlab/apputils": "^4.0.0-alpha.
|
|
44
|
-
"@jupyterlab/codeeditor": "^4.0.0-alpha.
|
|
45
|
-
"@jupyterlab/codemirror": "^4.0.0-alpha.
|
|
46
|
-
"@jupyterlab/coreutils": "^6.0.0-alpha.
|
|
47
|
-
"@jupyterlab/docregistry": "^4.0.0-alpha.
|
|
48
|
-
"@jupyterlab/documentsearch": "^4.0.0-alpha.
|
|
49
|
-
"@jupyterlab/lsp": "^4.0.0-alpha.
|
|
50
|
-
"@jupyterlab/statusbar": "^4.0.0-alpha.
|
|
51
|
-
"@jupyterlab/toc": "^6.0.0-alpha.
|
|
52
|
-
"@jupyterlab/translation": "^4.0.0-alpha.
|
|
53
|
-
"@jupyterlab/ui-components": "^4.0.0-alpha.
|
|
54
|
-
"@lumino/commands": "^2.0.0-rc.
|
|
55
|
-
"@lumino/coreutils": "^2.0.0-rc.
|
|
56
|
-
"@lumino/messaging": "^2.0.0-rc.
|
|
57
|
-
"@lumino/widgets": "^2.0.0-rc.
|
|
43
|
+
"@jupyterlab/apputils": "^4.0.0-alpha.21",
|
|
44
|
+
"@jupyterlab/codeeditor": "^4.0.0-alpha.21",
|
|
45
|
+
"@jupyterlab/codemirror": "^4.0.0-alpha.21",
|
|
46
|
+
"@jupyterlab/coreutils": "^6.0.0-alpha.21",
|
|
47
|
+
"@jupyterlab/docregistry": "^4.0.0-alpha.21",
|
|
48
|
+
"@jupyterlab/documentsearch": "^4.0.0-alpha.21",
|
|
49
|
+
"@jupyterlab/lsp": "^4.0.0-alpha.21",
|
|
50
|
+
"@jupyterlab/statusbar": "^4.0.0-alpha.21",
|
|
51
|
+
"@jupyterlab/toc": "^6.0.0-alpha.21",
|
|
52
|
+
"@jupyterlab/translation": "^4.0.0-alpha.21",
|
|
53
|
+
"@jupyterlab/ui-components": "^4.0.0-alpha.36",
|
|
54
|
+
"@lumino/commands": "^2.0.0-rc.1",
|
|
55
|
+
"@lumino/coreutils": "^2.0.0-rc.1",
|
|
56
|
+
"@lumino/messaging": "^2.0.0-rc.1",
|
|
57
|
+
"@lumino/widgets": "^2.0.0-rc.1",
|
|
58
58
|
"react": "^18.2.0",
|
|
59
59
|
"regexp-match-indices": "^1.0.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@jupyterlab/testing": "^4.0.0-alpha.
|
|
62
|
+
"@jupyterlab/testing": "^4.0.0-alpha.21",
|
|
63
63
|
"@types/jest": "^29.2.0",
|
|
64
64
|
"rimraf": "~3.0.0",
|
|
65
65
|
"typedoc": "~0.23.25",
|
|
66
|
-
"typescript": "~5.0.
|
|
66
|
+
"typescript": "~5.0.1-rc"
|
|
67
67
|
},
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
package/src/searchprovider.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { MainAreaWidget } from '@jupyterlab/apputils';
|
|
|
5
5
|
import { CodeMirrorEditor, EditorSearchProvider } from '@jupyterlab/codemirror';
|
|
6
6
|
import { CodeEditor } from '@jupyterlab/codeeditor';
|
|
7
7
|
import {
|
|
8
|
+
IFilters,
|
|
8
9
|
IReplaceOptionsSupport,
|
|
9
10
|
ISearchProvider
|
|
10
11
|
} from '@jupyterlab/documentsearch';
|
|
@@ -59,6 +60,14 @@ export class FileEditorSearchProvider
|
|
|
59
60
|
return this.widget.content.model;
|
|
60
61
|
}
|
|
61
62
|
|
|
63
|
+
async startQuery(
|
|
64
|
+
query: RegExp,
|
|
65
|
+
filters: IFilters | undefined
|
|
66
|
+
): Promise<void> {
|
|
67
|
+
await super.startQuery(query, filters);
|
|
68
|
+
await this.highlightNext(false, true);
|
|
69
|
+
}
|
|
70
|
+
|
|
62
71
|
/**
|
|
63
72
|
* Instantiate a search provider for the widget.
|
|
64
73
|
*
|