chore: use sentence case in ui

This commit is contained in:
Aleix Soler 2025-05-05 15:57:11 +02:00
parent 8313538090
commit 0b99bf688f
7 changed files with 37 additions and 37 deletions

View file

@ -67,7 +67,7 @@ The Status Pane provides an overview of all your notes grouped by status:
To open the Status Pane:
- Click the status pane icon in the left sidebar
- Use the command palette: "Note Status: Open Status Pane"
- Use the command palette: "Open status pane"
In the Status Pane you can:
- View all notes grouped by status
- Click on any note to open it
@ -101,7 +101,7 @@ To add additional statuses:
#### Batch Updates
To update multiple files at once:
1. Select multiple files in the file explorer (using Ctrl/Cmd or Shift)
2. Right-click and choose "Change Status"
2. Right-click and choose "Change status"
3. Select whether to replace or add the status
4. Choose the status to apply
@ -114,10 +114,10 @@ Access plugin settings via Settings → Note Status
Choose from predefined status templates:
- **Colorful Workflow**: A colorful set of workflow statuses with descriptive icons
- **Minimal Workflow**: A simplified set of essential workflow statuses
- **Academic Research**: Status workflow for academic research and writing
- **Project Management**: Status workflow for project management and tracking
- **Colorful workflow**: A colorful set of workflow statuses with descriptive icons
- **Minimal workflow**: A simplified set of essential workflow statuses
- **Academic research**: Status workflow for academic research and writing
- **Project management**: Status workflow for project management and tracking
![Status Templates](images/status-templates.png)
@ -143,11 +143,11 @@ Configure how statuses are displayed:
## Commands
The plugin provides several commands accessible via the Command Palette:
- `Note Status: Open Status Pane` - Opens the status view
- `Note Status: Refresh Status` - Refreshes current note's status
- `Note Status: Add Status to Current Note` - Shows status menu
- `Note Status: Insert Status Metadata` - Adds status frontmatter
- `Note Status: Force Refresh UI` - Complete UI refresh
- `Open status pane` - Opens the status view
- `Refresh status` - Refreshes current note's status
- `Add status to current note` - Shows status menu
- `Insert status metadata` - Adds status frontmatter
- `Force refresh user interface` - Complete UI refresh
## Technical Details
### Frontmatter Format

View file

@ -16,7 +16,7 @@ export interface StatusTemplate {
export const PREDEFINED_TEMPLATES: StatusTemplate[] = [
{
id: 'colorful',
name: 'Colorful Workflow',
name: 'Colorful workflow',
description: 'A colorful set of workflow statuses with descriptive icons',
statuses: [
{ name: 'idea', icon: '💡', color: '#FFEB3B' },
@ -32,7 +32,7 @@ export const PREDEFINED_TEMPLATES: StatusTemplate[] = [
},
{
id: 'minimal',
name: 'Minimal Workflow',
name: 'Minimal workflow',
description: 'A simplified set of essential workflow statuses',
statuses: [
{ name: 'todo', icon: '📌', color: '#F44336' },
@ -43,7 +43,7 @@ export const PREDEFINED_TEMPLATES: StatusTemplate[] = [
},
{
id: 'academic',
name: 'Academic Research',
name: 'Academic research',
description: 'Status workflow for academic research and writing',
statuses: [
{ name: 'research', icon: '🔍', color: '#2196F3' },
@ -57,7 +57,7 @@ export const PREDEFINED_TEMPLATES: StatusTemplate[] = [
},
{
id: 'project',
name: 'Project Management',
name: 'Project management',
description: 'Status workflow for project management and tracking',
statuses: [
{ name: 'planning', icon: '🗓️', color: '#9E9E9E' },

18
main.ts
View file

@ -157,7 +157,7 @@ export default class NoteStatus extends Plugin {
});
// Add ribbon icon
this.addRibbonIcon('status-pane', 'Open Status Pane', () => {
this.addRibbonIcon('status-pane', 'Open status pane', () => {
this.openStatusPane();
});
}
@ -231,7 +231,7 @@ export default class NoteStatus extends Plugin {
// Refresh status command
this.addCommand({
id: 'refresh-status',
name: 'Refresh Status',
name: 'Refresh status',
callback: () => {
this.checkNoteStatus();
new Notice('Note status refreshed!');
@ -240,7 +240,7 @@ export default class NoteStatus extends Plugin {
this.addCommand({
id: 'force-refresh-ui',
name: 'Force Refresh UI',
name: 'Force refresh user interface',
callback: () => this.forceRefreshUI()
});
@ -248,7 +248,7 @@ export default class NoteStatus extends Plugin {
// Insert status metadata command
this.addCommand({
id: 'insert-status-metadata',
name: 'Insert Status Metadata',
name: 'Insert status metadata',
editorCallback: (editor: Editor, view: MarkdownView) => {
this.statusService.insertStatusMetadataInEditor(editor);
new Notice('Status metadata inserted');
@ -258,14 +258,14 @@ export default class NoteStatus extends Plugin {
// Open status pane command
this.addCommand({
id: 'open-status-pane',
name: 'Open Status Pane',
name: 'Open status pane',
callback: () => this.openStatusPane()
});
// Add status to note command
this.addCommand({
id: 'add-status-to-note',
name: 'Add Status to Current Note',
name: 'Add status to current note',
callback: () => this.showAddStatusToNoteMenu()
});
}
@ -293,7 +293,7 @@ export default class NoteStatus extends Plugin {
if (source === 'file-explorer-context-menu' && file instanceof TFile && file.extension === 'md') {
menu.addItem((item) =>
item
.setTitle('Change Status')
.setTitle('Change status')
.setIcon('tag')
.onClick(() => {
const selectedFiles = this.explorerIntegration.getSelectedFiles();
@ -320,7 +320,7 @@ export default class NoteStatus extends Plugin {
if (mdFiles.length > 0) {
menu.addItem((item) =>
item
.setTitle('Change Status')
.setTitle('Change status')
.setIcon('tag')
.onClick(() => {
this.statusContextMenu.showForFiles(mdFiles);
@ -336,7 +336,7 @@ export default class NoteStatus extends Plugin {
if (view instanceof MarkdownView) {
menu.addItem((item) =>
item
.setTitle('Change Note Status')
.setTitle('Change note status')
.setIcon('tag')
.onClick(() => this.statusDropdown.showInContextMenu(editor, view))
);

View file

@ -22,7 +22,7 @@ export class NoteStatusSettingTab extends PluginSettingTab {
this.displayTemplateSettings(containerEl.createDiv());
// UI section
new Setting(containerEl).setName('User Interface').setHeading();
new Setting(containerEl).setName('User interface').setHeading();
// Status bar settings
@ -82,7 +82,7 @@ export class NoteStatusSettingTab extends PluginSettingTab {
await this.plugin.saveSettings();
}));
new Setting(containerEl).setName('Status Tag').setHeading();
new Setting(containerEl).setName('Status tag').setHeading();
// Option to use multiple statuses
new Setting(containerEl)
@ -119,7 +119,7 @@ export class NoteStatusSettingTab extends PluginSettingTab {
// Status management section
new Setting(containerEl).setName('Custom Statuses').setHeading();
new Setting(containerEl).setName('Custom statuses').setHeading();
// Option to use only custom statuses
new Setting(containerEl)
@ -232,7 +232,7 @@ export class NoteStatusSettingTab extends PluginSettingTab {
* Display template settings section
*/
private displayTemplateSettings(containerEl: HTMLElement): void {
new Setting(containerEl).setName('Status Templates').setHeading();
new Setting(containerEl).setName('Status templates').setHeading();
containerEl.createEl('p', {
text: 'Enable predefined templates to quickly add common status workflows',
cls: 'setting-item-description'
@ -306,7 +306,7 @@ export class NoteStatusSettingTab extends PluginSettingTab {
// Import button
const importButton = buttonsContainer.createEl('button', {
text: 'Import Template',
text: 'Import template',
cls: 'mod-cta'
});
@ -317,7 +317,7 @@ export class NoteStatusSettingTab extends PluginSettingTab {
// Export button
const exportButton = buttonsContainer.createEl('button', {
text: 'Export Templates',
text: 'Export templates',
cls: ''
});

View file

@ -235,7 +235,7 @@ export class StatusDropdownComponent {
const titleEl = headerEl.createDiv({ cls: 'note-status-popover-title' });
const iconContainer = titleEl.createDiv({ cls: 'note-status-popover-icon' });
setIcon(iconContainer, 'tag');
titleEl.createSpan({ text: 'Note Status', cls: 'note-status-popover-label' });
titleEl.createSpan({ text: 'Note status', cls: 'note-status-popover-label' });
}
/**

View file

@ -80,7 +80,7 @@ export class StatusDropdown {
// Create the button element
this.toolbarButton = document.createElement('button');
this.toolbarButton.addClass('note-status-toolbar-button', 'clickable-icon', 'view-action');
this.toolbarButton.setAttribute('aria-label', 'Note Status');
this.toolbarButton.setAttribute('aria-label', 'Note status');
// Update initial button state
this.updateToolbarButton();
@ -495,7 +495,7 @@ export class StatusDropdown {
// Create new button
this.toolbarButton = document.createElement('button');
this.toolbarButton.addClass('note-status-toolbar-button', 'clickable-icon', 'view-action');
this.toolbarButton.setAttribute('aria-label', 'Note Status');
this.toolbarButton.setAttribute('aria-label', 'Note status');
// Update the button state
this.updateToolbarButton();

View file

@ -24,7 +24,7 @@ export class StatusPaneView extends View {
}
getDisplayText(): string {
return 'Status Pane';
return 'Status pane';
}
getIcon(): string {
@ -126,7 +126,7 @@ export class StatusPaneView extends View {
// Refresh button
const refreshButton = actionsContainer.createEl('button', {
type: 'button',
title: 'Refresh Statuses',
title: 'Refresh statuses',
cls: 'note-status-actions-refresh clickable-icon'
});
@ -255,7 +255,7 @@ export class StatusPaneView extends View {
// Add status change options
menu.addItem((item) =>
item.setTitle('Change Status')
item.setTitle('Change status')
.setIcon('tag')
.onClick(() => {
// Use the position from the event
@ -266,7 +266,7 @@ export class StatusPaneView extends View {
// Add open options
menu.addItem((item) =>
item.setTitle('Open in New Tab')
item.setTitle('Open in new tab')
.setIcon('lucide-external-link')
.onClick(() => {
this.app.workspace.openLinkText(file.path, file.path, 'tab');