mirror of
https://github.com/brianpetro/smart-context-obsidian.git
synced 2026-07-22 05:32:16 +00:00
update package/npm since migrating jsbrains to workspace
This commit is contained in:
parent
8a0d75df35
commit
60bb760cae
5 changed files with 939 additions and 256 deletions
2
.npmrc
Normal file
2
.npmrc
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
install-links=true
|
||||
install-strategy=hoisted
|
||||
|
|
@ -149,8 +149,8 @@ export class LinkDepthModal extends SuggestModal {
|
|||
* @param {DepthInfo} item
|
||||
*/
|
||||
async onChooseSuggestion(item) {
|
||||
const { context, stats } = await item.sc_item.compile({ link_depth: item.depth });
|
||||
await this.plugin.copy_to_clipboard(context);
|
||||
const { context, stats, images } = await item.sc_item.compile({ link_depth: item.depth });
|
||||
await this.plugin.copy_to_clipboard(context, images);
|
||||
|
||||
this.plugin.showStatsNotice(stats, `Depth ${item.depth} selected`);
|
||||
new Notice('Copied context to clipboard!');
|
||||
|
|
|
|||
4
main.js
4
main.js
|
|
@ -146,8 +146,8 @@ export default class SmartContextPlugin extends Plugin {
|
|||
context_items: { [folder.path]: true },
|
||||
});
|
||||
|
||||
const { context, stats } = await sc_item.compile({ link_depth: 0 });
|
||||
await this.copy_to_clipboard(context);
|
||||
const { context, stats, images } = await sc_item.compile({ link_depth: 0 });
|
||||
await this.copy_to_clipboard(context, images);
|
||||
this.showStatsNotice(stats, `Folder: ${folder.path}`);
|
||||
}
|
||||
|
||||
|
|
|
|||
1182
package-lock.json
generated
1182
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -39,5 +39,6 @@
|
|||
"ava": "^5.3.1",
|
||||
"dotenv": "^16.4.7",
|
||||
"esbuild": "^0.24.0"
|
||||
}
|
||||
},
|
||||
"workspaces": ["../jsbrains/*"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue