commit e9d82013903eed2ccfe26366715179c9c65c0eab
parent c0637a7c52d0e0755022640dbf47dced49d4e70b
Author: Michael Camilleri <[email protected]>
Date: Thu, 5 Mar 2026 04:41:11 +0900
Use more generic 'item' rather than 'task'
Diffstat
6 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/ListlessMac/Extensions/TaskListView+Toolbar.swift b/ListlessMac/Extensions/TaskListView+Toolbar.swift
@@ -14,9 +14,9 @@ extension TaskListView {
// Trigger focus resolution by setting to nil
focusedField = nil
} label: {
- Label("New Task", systemImage: "plus")
+ Label("New Item", systemImage: "plus")
}
- .help("Create a new task")
+ .help("Create a new item")
Button {
if let currentID = selectedTaskID,
@@ -28,7 +28,7 @@ extension TaskListView {
Label("Delete", systemImage: "trash")
}
.disabled(selectedTaskID == nil || focusedField != .scrollView)
- .help("Delete selected task")
+ .help("Delete selected item")
Divider()
diff --git a/ListlessMac/Helpers/ClickableTextField.swift b/ListlessMac/Helpers/ClickableTextField.swift
@@ -28,7 +28,7 @@ struct ClickableTextField: NSViewRepresentable {
textField.drawsBackground = false
textField.focusRingType = .none
textField.font = .systemFont(ofSize: NSFont.systemFontSize)
- textField.placeholderString = "Enter task"
+ textField.placeholderString = "Enter text"
textField.lineBreakMode = .byWordWrapping
textField.maximumNumberOfLines = 5
textField.usesSingleLineMode = false
@@ -99,7 +99,7 @@ struct ClickableTextField: NSViewRepresentable {
// Calculate text width
private func calculateWidth(for text: String, font: NSFont) -> CGFloat {
let attributedString = NSAttributedString(
- string: text.isEmpty ? "Enter task" : text,
+ string: text.isEmpty ? "Enter text" : text,
attributes: [.font: font]
)
let size = attributedString.size()
@@ -109,7 +109,7 @@ struct ClickableTextField: NSViewRepresentable {
// Calculate text height with wrapping
private func calculateHeight(for text: String, width: CGFloat, font: NSFont) -> CGFloat {
let attributedString = NSAttributedString(
- string: text.isEmpty ? "Enter task" : text,
+ string: text.isEmpty ? "Enter text" : text,
attributes: [.font: font]
)
let textStorage = NSTextStorage(attributedString: attributedString)
diff --git a/ListlessMac/ListlessMacApp.swift b/ListlessMac/ListlessMacApp.swift
@@ -203,7 +203,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuItemValidation {
mainMenu.addItem(appMenuItem)
let fileMenu = NSMenu(title: "File")
- let newTaskItem = NSMenuItem(title: "New Task", action: #selector(handleNewTask), keyEquivalent: "n")
+ let newTaskItem = NSMenuItem(title: "New Item", action: #selector(handleNewTask), keyEquivalent: "n")
newTaskItem.keyEquivalentModifierMask = [.command]
newTaskItem.target = self
fileMenu.addItem(newTaskItem)
diff --git a/ListlessiOS/Helpers/AppCommands.swift b/ListlessiOS/Helpers/AppCommands.swift
@@ -30,7 +30,7 @@ struct TaskCommands: Commands {
var body: some Commands {
CommandGroup(after: .newItem) {
- Button("New Task") {
+ Button("New Item") {
actions?.newTask?()
}
.keyboardShortcut("n")
diff --git a/ListlessiOS/Helpers/TappableTextField.swift b/ListlessiOS/Helpers/TappableTextField.swift
@@ -24,7 +24,7 @@ struct TappableTextField: UIViewRepresentable {
textView.returnKeyType = returnKeyType
let placeholder = UILabel()
- placeholder.text = "Enter task"
+ placeholder.text = "Enter text"
placeholder.font = TaskRowMetrics.bodyUIK
placeholder.textColor = .placeholderText
placeholder.tag = 100
diff --git a/ListlessiOS/Views/PullToCreate.swift b/ListlessiOS/Views/PullToCreate.swift
@@ -21,7 +21,7 @@ struct PullToCreateIndicator: View {
ZStack(alignment: .leading) {
Text("Release to add")
.offset(y: isReady ? 0 : -textSlideDistance)
- Text("New task")
+ Text("New item")
.offset(y: isReady ? textSlideDistance : 0)
}
.foregroundStyle(.secondary)