[fix for reviewing] delete infio prefix in Name

This commit is contained in:
duanfuxiang 2025-02-17 16:37:15 +08:00
parent 500484438d
commit 173f2b7fa5

View File

@ -126,13 +126,13 @@ export default class InfioPlugin extends Plugin {
// This adds a simple command that can be triggered anywhere // This adds a simple command that can be triggered anywhere
this.addCommand({ this.addCommand({
id: 'open-new-chat', id: 'open-new-chat',
name: 'Infio open new chat', name: 'Open new chat',
callback: () => this.openChatView(true), callback: () => this.openChatView(true),
}) })
this.addCommand({ this.addCommand({
id: 'add-selection-to-chat', id: 'add-selection-to-chat',
name: 'Infio add selection to chat', name: 'Add selection to chat',
editorCallback: (editor: Editor, view: MarkdownView) => { editorCallback: (editor: Editor, view: MarkdownView) => {
this.addSelectionToChat(editor, view) this.addSelectionToChat(editor, view)
}, },
@ -146,7 +146,7 @@ export default class InfioPlugin extends Plugin {
this.addCommand({ this.addCommand({
id: 'rebuild-vault-index', id: 'rebuild-vault-index',
name: 'Infio rebuild entire vault index', name: 'Rebuild entire vault index',
callback: async () => { callback: async () => {
const notice = new Notice('Rebuilding vault index...', 0) const notice = new Notice('Rebuilding vault index...', 0)
try { try {
@ -177,7 +177,7 @@ export default class InfioPlugin extends Plugin {
this.addCommand({ this.addCommand({
id: 'update-vault-index', id: 'update-vault-index',
name: 'Infio update index for modified files', name: 'Update index for modified files',
callback: async () => { callback: async () => {
const notice = new Notice('Updating vault index...', 0) const notice = new Notice('Updating vault index...', 0)
try { try {
@ -208,7 +208,7 @@ export default class InfioPlugin extends Plugin {
this.addCommand({ this.addCommand({
id: 'autocomplete-accept', id: 'autocomplete-accept',
name: 'Infio Autocomplete Accept', name: 'Autocomplete Accept',
editorCheckCallback: ( editorCheckCallback: (
checking: boolean, checking: boolean,
editor: Editor, editor: Editor,
@ -228,7 +228,7 @@ export default class InfioPlugin extends Plugin {
this.addCommand({ this.addCommand({
id: 'autocomplete-predict', id: 'autocomplete-predict',
name: 'Infio Autocomplete Predict', name: 'Autocomplete Predict',
editorCheckCallback: ( editorCheckCallback: (
checking: boolean, checking: boolean,
editor: Editor, editor: Editor,
@ -251,7 +251,7 @@ export default class InfioPlugin extends Plugin {
this.addCommand({ this.addCommand({
id: "autocomplete-toggle", id: "autocomplete-toggle",
name: "Infio Autocomplete Toggle", name: "Autocomplete Toggle",
callback: () => { callback: () => {
const newValue = !this.settings.autocompleteEnabled; const newValue = !this.settings.autocompleteEnabled;
this.setSettings({ this.setSettings({
@ -279,7 +279,7 @@ export default class InfioPlugin extends Plugin {
this.addCommand({ this.addCommand({
id: "autocomplete-disable", id: "autocomplete-disable",
name: "Infio Autocomplete Disable", name: "Autocomplete Disable",
checkCallback: (checking) => { checkCallback: (checking) => {
if (checking) { if (checking) {
return this.settings.autocompleteEnabled; return this.settings.autocompleteEnabled;
@ -295,7 +295,7 @@ export default class InfioPlugin extends Plugin {
this.addCommand({ this.addCommand({
id: "ai-inline-edit", id: "ai-inline-edit",
name: "infio Inline Edit", name: "Inline Edit",
// hotkeys: [ // hotkeys: [
// { // {
// modifiers: ['Mod', 'Shift'], // modifiers: ['Mod', 'Shift'],