[fix review issue]: update setting name

This commit is contained in:
duanfuxiang
2025-02-17 19:07:33 +08:00
parent 173f2b7fa5
commit dc520535fc
22 changed files with 721 additions and 1269 deletions

View File

@@ -208,7 +208,7 @@ export default class InfioPlugin extends Plugin {
this.addCommand({
id: 'autocomplete-accept',
name: 'Autocomplete Accept',
name: 'Autocomplete accept',
editorCheckCallback: (
checking: boolean,
editor: Editor,
@@ -228,7 +228,7 @@ export default class InfioPlugin extends Plugin {
this.addCommand({
id: 'autocomplete-predict',
name: 'Autocomplete Predict',
name: 'Autocomplete predict',
editorCheckCallback: (
checking: boolean,
editor: Editor,
@@ -251,7 +251,7 @@ export default class InfioPlugin extends Plugin {
this.addCommand({
id: "autocomplete-toggle",
name: "Autocomplete Toggle",
name: "Autocomplete toggle",
callback: () => {
const newValue = !this.settings.autocompleteEnabled;
this.setSettings({
@@ -262,8 +262,8 @@ export default class InfioPlugin extends Plugin {
});
this.addCommand({
id: "infio-autocomplete-enable",
name: "Infio Autocomplete Enable",
id: "autocomplete-enable",
name: "Autocomplete enable",
checkCallback: (checking) => {
if (checking) {
return !this.settings.autocompleteEnabled;
@@ -279,7 +279,7 @@ export default class InfioPlugin extends Plugin {
this.addCommand({
id: "autocomplete-disable",
name: "Autocomplete Disable",
name: "Autocomplete disable",
checkCallback: (checking) => {
if (checking) {
return this.settings.autocompleteEnabled;
@@ -295,7 +295,7 @@ export default class InfioPlugin extends Plugin {
this.addCommand({
id: "ai-inline-edit",
name: "Inline Edit",
name: "Inline edit",
// hotkeys: [
// {
// modifiers: ['Mod', 'Shift'],