mirror of
https://github.com/devonthesofa/obsidian-note-status.git
synced 2026-07-22 12:30:24 +00:00
Merge pull request #40 from devonthesofa/chore/text-and-icons
Chore/text and icons
This commit is contained in:
commit
b5b8ab0bf2
10 changed files with 23 additions and 26 deletions
|
|
@ -27,7 +27,7 @@ export const BehaviourSettings: React.FC<Props> = ({ settings, onChange }) => {
|
|||
|
||||
<SettingItem
|
||||
name="Status tag prefix"
|
||||
description="The YAML frontmatter tag name used for status (default: obsidian-note-status)"
|
||||
description="YAML frontmatter tag name for status (default: obsidian-note-status)"
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ export const CustomStatusItem: React.FC<Props> = ({
|
|||
onClick={() => onCustomStatusRemove(index)}
|
||||
aria-label="Remove status"
|
||||
className="custom-status-item__remove-btn"
|
||||
title="Remove this status"
|
||||
title="Remove status"
|
||||
>
|
||||
×
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -63,8 +63,8 @@ export const CustomStatusSettings: React.FC<Props> = ({
|
|||
</SettingItem>
|
||||
|
||||
<SettingItem
|
||||
name="Your custom statuses"
|
||||
description="Create custom statuses with icons (emoji/text), names, and colors. Each status needs a name to be valid."
|
||||
name="Custom statuses"
|
||||
description="Create custom statuses with icons, names, and colors. All statuses require a name."
|
||||
vertical
|
||||
>
|
||||
<div className="custom-status-list">
|
||||
|
|
@ -90,10 +90,7 @@ export const CustomStatusSettings: React.FC<Props> = ({
|
|||
</div>
|
||||
</SettingItem>
|
||||
|
||||
<SettingItem
|
||||
name="Add new status"
|
||||
description="Create a new custom status"
|
||||
>
|
||||
<SettingItem name="Add status" description="Create a new status">
|
||||
<button className="mod-cta" onClick={addNewCustomStatus}>
|
||||
+ Add Status
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ export const UISettings: React.FC<Props> = ({ settings, onChange }) => {
|
|||
|
||||
<SettingItem
|
||||
name="Status icon in file explorer position"
|
||||
description="Change the position of the icon"
|
||||
description="Choose icon position in file explorer"
|
||||
>
|
||||
<Select
|
||||
options={[
|
||||
|
|
@ -83,7 +83,7 @@ export const UISettings: React.FC<Props> = ({ settings, onChange }) => {
|
|||
|
||||
<SettingItem
|
||||
name="Hide unknown status in file explorer"
|
||||
description="Hide status icons for files with unknown status in the file explorer"
|
||||
description="Hide status icons for files with unknown status"
|
||||
>
|
||||
<input
|
||||
type="checkbox"
|
||||
|
|
@ -94,7 +94,7 @@ export const UISettings: React.FC<Props> = ({ settings, onChange }) => {
|
|||
|
||||
<SettingItem
|
||||
name="Exclude unassigned notes from status pane"
|
||||
description="Improves performance by excluding notes with no assigned status from the status pane. Recommended for large vaults."
|
||||
description="Excludes unassigned notes from status pane for better performance. Recommended for large vaults."
|
||||
>
|
||||
<input
|
||||
type="checkbox"
|
||||
|
|
@ -107,7 +107,7 @@ export const UISettings: React.FC<Props> = ({ settings, onChange }) => {
|
|||
|
||||
<SettingItem
|
||||
name="Unknown status icon"
|
||||
description="Custom icon to display for files with unknown status"
|
||||
description="Icon displayed for files with unknown status"
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
|
|
@ -119,7 +119,7 @@ export const UISettings: React.FC<Props> = ({ settings, onChange }) => {
|
|||
|
||||
<SettingItem
|
||||
name="Unknown status color"
|
||||
description="Custom hex color for unknown status (e.g., #8b949e)"
|
||||
description="Hex color for unknown status (e.g., #8b949e)"
|
||||
>
|
||||
<input
|
||||
type="color"
|
||||
|
|
@ -131,7 +131,7 @@ export const UISettings: React.FC<Props> = ({ settings, onChange }) => {
|
|||
|
||||
<SettingItem
|
||||
name="Status bar 'no status' text"
|
||||
description="Custom text to display in status bar when there is no status"
|
||||
description="Text displayed in status bar when there is no status"
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
|
|
@ -144,7 +144,7 @@ export const UISettings: React.FC<Props> = ({ settings, onChange }) => {
|
|||
|
||||
<SettingItem
|
||||
name="Show icon in status bar for 'no status'"
|
||||
description="Display the unknown status icon alongside the text in the status bar"
|
||||
description="Show unknown status icon in status bar alongside text"
|
||||
>
|
||||
<input
|
||||
type="checkbox"
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ export const QuickActionsPanel = ({
|
|||
onClick={() => onAction("find-unassigned")}
|
||||
title="Find notes without status"
|
||||
>
|
||||
🔍 Find Unassigned Notes
|
||||
🔍 Find Unassigned
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ export class CommandsService {
|
|||
// Change status of current note
|
||||
this.plugin.addCommand({
|
||||
id: "change-status",
|
||||
name: "Change status of current note",
|
||||
name: "Change current note status",
|
||||
checkCallback: (checking: boolean) => {
|
||||
const file = this.app.workspace.getActiveFile();
|
||||
if (!file) return false;
|
||||
|
|
@ -44,7 +44,7 @@ export class CommandsService {
|
|||
// Cycle through statuses
|
||||
this.plugin.addCommand({
|
||||
id: "cycle-status",
|
||||
name: "Cycle to next status",
|
||||
name: "Cycle through statuses",
|
||||
checkCallback: (checking: boolean) => {
|
||||
if (settingsService.settings.useMultipleStatuses) {
|
||||
// For now the cycle status is for single statuses
|
||||
|
|
@ -138,7 +138,7 @@ export class CommandsService {
|
|||
// Copy status from current note
|
||||
this.plugin.addCommand({
|
||||
id: "copy-status",
|
||||
name: "Copy status from current note",
|
||||
name: "Copy current note status",
|
||||
checkCallback: (checking: boolean) => {
|
||||
const file = this.app.workspace.getActiveFile();
|
||||
if (!file) return false;
|
||||
|
|
@ -232,7 +232,7 @@ export class CommandsService {
|
|||
// Open Status Pane command
|
||||
this.plugin.addCommand({
|
||||
id: "open-status-pane",
|
||||
name: "Open Status Pane",
|
||||
name: "Open status pane",
|
||||
callback: async () => {
|
||||
await this.openStatusPane();
|
||||
},
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ export class ContextMenuIntegration {
|
|||
leaf?: WorkspaceLeaf,
|
||||
) => {
|
||||
menu.addItem((item) => {
|
||||
item.setTitle("Change note state")
|
||||
item.setTitle("Change note status")
|
||||
.setIcon("rotate-ccw") // Lucide icon
|
||||
.onClick(async () => {
|
||||
const tFiles = files.filter(
|
||||
|
|
@ -81,7 +81,7 @@ export class ContextMenuIntegration {
|
|||
"editor-menu",
|
||||
(menu, editor, view) => {
|
||||
menu.addItem((item) => {
|
||||
item.setTitle("Change note state")
|
||||
item.setTitle("Change note status")
|
||||
.setIcon("rotate-ccw") // Lucide icon
|
||||
.onClick(async () => {
|
||||
if (view.file) {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export class GroupedStatusView extends ItemView {
|
|||
}
|
||||
|
||||
getDisplayText() {
|
||||
return "Grouped Status View";
|
||||
return "Grouped Status";
|
||||
}
|
||||
|
||||
getIcon() {
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ export class StatusDashboardView extends ItemView {
|
|||
}
|
||||
|
||||
getDisplayText() {
|
||||
return "Status Dashboard";
|
||||
return "Dashboard";
|
||||
}
|
||||
|
||||
getIcon() {
|
||||
|
|
|
|||
4
main.tsx
4
main.tsx
|
|
@ -47,11 +47,11 @@ export default class NoteStatusPlugin extends Plugin {
|
|||
(leaf) => new StatusDashboardView(leaf),
|
||||
);
|
||||
|
||||
this.addRibbonIcon("dice", "Activate grouped view", () => {
|
||||
this.addRibbonIcon("list-tree", "Open grouped status view", () => {
|
||||
this.activateView();
|
||||
});
|
||||
|
||||
this.addRibbonIcon("bar-chart-2", "Status Dashboard", () => {
|
||||
this.addRibbonIcon("activity", "Open status dashboard", () => {
|
||||
this.activateDashboard();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue