Skip to content

Commit

Permalink
📝 Changed Settings text to match guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Swaggeroo committed Jul 12, 2024
1 parent c960e53 commit 81d7f69
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,20 @@ export default class AIImageAnalyzerPlugin extends Plugin {
this.app.workspace.on('file-menu', (menu, file, _source) => {
if (file instanceof TFile && isImageFile(file)) {
menu.addItem((item: MenuItem) => {
item.setTitle('AI Analyze Image');
item.setTitle('AI analyze image');

const submenu = item.setSubmenu();

submenu.addItem((item: MenuItem) =>
item.setTitle('Analyze Image to clipboard')
item.setTitle('Analyze image to clipboard')
.setIcon('clipboard')
.onClick(() => {
analyzeToClipboard(file);
})
);

submenu.addItem((item: MenuItem) =>
item.setTitle('Analyze Image')
item.setTitle('Analyze image')
.setIcon('search')
.onClick(async () => {
await removeFromCache(file);
Expand Down Expand Up @@ -161,8 +161,6 @@ class AIImageAnalyzerSettingsTab extends PluginSettingTab {

containerEl.empty();

containerEl.createEl('h2', {text: 'AI Image Analyzer - Settings'});

new Setting(containerEl)
.setName('Pull llava')
.setDesc('Pull the llava model')
Expand Down Expand Up @@ -191,7 +189,7 @@ class AIImageAnalyzerSettingsTab extends PluginSettingTab {
debugMode = value;
}));

new Setting(containerEl).setName('Ollama server settings').setHeading();
new Setting(containerEl).setName('Ollama server').setHeading();

new Setting(containerEl)
.setName('Ollama host')
Expand Down

0 comments on commit 81d7f69

Please sign in to comment.