@lvce-editor/text-search-worker 5.20.0 → 5.21.0
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.
|
@@ -2239,7 +2239,7 @@ const isEqual$5 = (oldState, newState) => {
|
|
|
2239
2239
|
};
|
|
2240
2240
|
|
|
2241
2241
|
const isEqual$4 = (oldState, newState) => {
|
|
2242
|
-
return oldState.focus === newState.focus;
|
|
2242
|
+
return oldState.focus === newState.focus && oldState.focused === newState.focused;
|
|
2243
2243
|
};
|
|
2244
2244
|
|
|
2245
2245
|
const diffType$3 = RenderIncludeValue;
|
|
@@ -2853,23 +2853,24 @@ const getKeyBindings = () => {
|
|
|
2853
2853
|
return [...getSearchHeaderKeyBindings(), ...getSearchResultKeyBindings()];
|
|
2854
2854
|
};
|
|
2855
2855
|
|
|
2856
|
-
const getMenuEntryIds = () => {
|
|
2857
|
-
return [Search$1];
|
|
2858
|
-
};
|
|
2859
2856
|
const getMenuEntries = () => {
|
|
2860
2857
|
return [{
|
|
2861
2858
|
id: 'dismiss',
|
|
2862
2859
|
label: dismiss(),
|
|
2863
2860
|
flags: None$1,
|
|
2864
|
-
command:
|
|
2861
|
+
command: 'Search.removeCurrent'
|
|
2865
2862
|
}, {
|
|
2866
2863
|
id: 'copyPath',
|
|
2867
2864
|
label: copyPath(),
|
|
2868
2865
|
flags: None$1,
|
|
2869
|
-
command:
|
|
2866
|
+
command: 'Search.copyPath'
|
|
2870
2867
|
}];
|
|
2871
2868
|
};
|
|
2872
2869
|
|
|
2870
|
+
const getMenuEntryIds = () => {
|
|
2871
|
+
return [Search$1];
|
|
2872
|
+
};
|
|
2873
|
+
|
|
2873
2874
|
const handleError = error => {
|
|
2874
2875
|
console.error(`[text-search-worker] ${error}`);
|
|
2875
2876
|
};
|
|
@@ -2931,7 +2932,7 @@ const getIconsCached = (dirents, fileIconCache) => {
|
|
|
2931
2932
|
const getFileName = path => {
|
|
2932
2933
|
const slashIndex = path.lastIndexOf('/');
|
|
2933
2934
|
if (slashIndex === -1) {
|
|
2934
|
-
return
|
|
2935
|
+
return path;
|
|
2935
2936
|
}
|
|
2936
2937
|
return path.slice(slashIndex + 1);
|
|
2937
2938
|
};
|
|
@@ -5614,7 +5615,6 @@ const viewAsTree = async state => {
|
|
|
5614
5615
|
const Keyboard = -1;
|
|
5615
5616
|
|
|
5616
5617
|
const show = async (x, y, id, ...args) => {
|
|
5617
|
-
// TODO ask renderer worker to show context menu
|
|
5618
5618
|
number(x);
|
|
5619
5619
|
number(y);
|
|
5620
5620
|
number(id);
|