Commit 5b5584bafa
Verified · cmc
Changed files (16)
- Sources/OrgApp/CommandRanking.swift +1 −1
- Sources/OrgApp/CommandTitles.swift +1
- Sources/OrgApp/FileLint.swift added +43
- Sources/OrgEditorAppKit/EditorCommands.swift +1
- Sources/Orgstar/ContentView.swift +13
- Sources/Orgstar/LintPane.swift added +85
- Sources/Orgstar/OrgstarApp.swift +2
- Sources/OrgstarMobile/EditorScreen.swift +7 −1
- Sources/OrgstarMobile/LintScreen.swift added +73
- Sources/OrgstarMobile/MobileEditor.swift +1 −1
- Tests/OrgAppTests/FileLintTests.swift added +49
- docs/manual/guide/02-the-editor.org +52
- docs/manual/guide/03-keys.org +1
- docs/manual/guide/14-ios.org +2
- docs/manual/guide/15-alongside-emacs.org +11
- l10n/Localizable.xcstrings +481
Sources/OrgApp/CommandRanking.swift +1 −1 · view
| @@ -94,7 +94,7 @@ public enum CommandGroups { | ||
| 94 | 94 | public static let commandList: [Group] = orgMenu + [ |
| 95 | 95 | Group(title: String(localized: "Clock", comment: "Commands list section"), prefixes: ["app.clock."]), |
| 96 | 96 | Group(title: String(localized: "Export", comment: "Commands list section"), prefixes: ["app.export", "app.copy-rich-text", "app.publish"]), |
| 97 | Group(title: String(localized: "File", comment: "Commands list section"), prefixes: ["app.save", "app.word-count", "app.recovery", "app.sync-conflicts"]), | |
| 97 | Group(title: String(localized: "File", comment: "Commands list section"), prefixes: ["app.save", "app.word-count", "app.recovery", "app.sync-conflicts", "app.lint"]), | |
| 98 | 98 | Group(title: String(localized: "Edit", comment: "Commands list section"), prefixes: ["edit.", "macro."]), |
| 99 | 99 | Group(title: String(localized: "View", comment: "Commands list section"), prefixes: ["app.toggle-markup", "editor.", "app.split-", "app.pane-"]), |
| 100 | 100 | ] |
Sources/OrgApp/CommandTitles.swift +1 · view
| @@ -172,6 +172,7 @@ enum CommandTitles { | ||
| 172 | 172 | String(localized: "Kill Word Backward", comment: "Command title"), |
| 173 | 173 | String(localized: "Last Buffer", comment: "Command title"), |
| 174 | 174 | String(localized: "Leave Block", comment: "Command title"), |
| 175 | String(localized: "Lint File", comment: "Command title"), | |
| 175 | 176 | String(localized: "Lower Priority", comment: "Command title"), |
| 176 | 177 | String(localized: "Mark Subtree", comment: "Command title"), |
| 177 | 178 | String(localized: "Mark as Default Clock Task", comment: "Command title"), |
Sources/OrgApp/FileLint.swift added +43 · view
| @@ -0,0 +1,43 @@ | ||
| 1 | import Foundation | |
| 2 | import OrgCore | |
| 3 | import OrgIndex | |
| 4 | ||
| 5 | /// Lint File in the apps: the checkers run over an open file's text off the main actor, with | |
| 6 | /// the file system and the workspace index for IDs in other files. | |
| 7 | public enum FileLint { | |
| 8 | /// The checkers' environment: the file system, IDs through `index` (unsaved buffers' | |
| 9 | /// from `overlay`), and the attachment and crypt settings. | |
| 10 | public static func environment(index: IndexStore?, overlay: [String: FileRecord] = [:], defaults: UserDefaults = .standard) -> LintEnvironment { | |
| 11 | var environment = LintEnvironment.fileSystem | |
| 12 | environment.attachIDDir = OrgPreferences.attachIDDir(defaults) | |
| 13 | environment.attachInherit = OrgPreferences.attachUseInheritance(defaults) | |
| 14 | environment.cryptTag = OrgPreferences.cryptTag(defaults) | |
| 15 | if let index { | |
| 16 | environment.idFiles = { id in ((try? index.headings(withID: id, overlay: overlay)) ?? []).map(\.path) } | |
| 17 | } | |
| 18 | return environment | |
| 19 | } | |
| 20 | ||
| 21 | /// Whether Lint File applies to the file at `path`: Org files, and encrypted ones once | |
| 22 | /// decrypted in memory. | |
| 23 | public static func applies(to path: String?) -> Bool { | |
| 24 | guard let path else { return false } | |
| 25 | return path.hasSuffix(".org") || path.hasSuffix(".org_archive") || path.hasSuffix(".org.gpg") | |
| 26 | } | |
| 27 | ||
| 28 | /// The findings in `text`, off the main actor. | |
| 29 | @concurrent | |
| 30 | public static func lint(_ text: String, tree: OrgTree, path: String?, environment: LintEnvironment) async -> [LintFinding] { | |
| 31 | OrgLint.lint(text, tree: tree, path: path, environment: environment) | |
| 32 | } | |
| 33 | ||
| 34 | /// A finding's trust as the panels show it: org-lint's high trust as an error, low as a warning. | |
| 35 | public static func severity(_ finding: LintFinding) -> String { | |
| 36 | finding.trust == .high ? String(localized: "Error", comment: "Lint File: a problem org-lint trusts highly") : String(localized: "Warning", comment: "Lint File: a problem that may be intended") | |
| 37 | } | |
| 38 | ||
| 39 | /// The panels' summary line. | |
| 40 | public static func summary(_ findings: [LintFinding]) -> String { | |
| 41 | findings.isEmpty ? String(localized: "No problems found", comment: "Lint File") : String(localized: "\(findings.count) problems", comment: "Lint File: the number of problems found") | |
| 42 | } | |
| 43 | } | |
Sources/OrgEditorAppKit/EditorCommands.swift +1 · view
| @@ -188,6 +188,7 @@ public enum EditorCommands { | ||
| 188 | 188 | EditorCommand(id: "app.sync-conflicts", title: "Resolve Sync Conflicts…", action: .app), |
| 189 | 189 | EditorCommand(id: "app.revert", title: "Revert to File on Disk", action: .app), |
| 190 | 190 | EditorCommand(id: "app.recovery", title: "History…", action: .app), |
| 191 | EditorCommand(id: "app.lint", title: "Lint File", action: .app), | |
| 191 | 192 | EditorCommand(id: "app.export.html", title: "Export to HTML", action: .app), |
| 192 | 193 | EditorCommand(id: "app.export.html-open", title: "Export to HTML and Open", action: .app), |
| 193 | 194 | EditorCommand(id: "app.export.markdown", title: "Export to Markdown", action: .app), |
Sources/Orgstar/ContentView.swift +13 · view
| @@ -96,6 +96,9 @@ struct ContentView: View { | ||
| 96 | 96 | @AppStorage("outlineShown") private var orgOutlineShown = true |
| 97 | 97 | @AppStorage("outlineWidth") private var outlineWidth = 220.0 |
| 98 | 98 | @AppStorage("backlinksShown") private var backlinksShown = true |
| 99 | /// Lint File's panel is open; `lintRun` counts runs of the command. | |
| 100 | @State private var lintShown = false | |
| 101 | @State private var lintRun = 0 | |
| 99 | 102 | @AppStorage("inspectorShown") private var inspectorShown = false |
| 100 | 103 | @AppStorage("showMarkup") private var showMarkup = false |
| 101 | 104 | @AppStorage("showLineNumbers") private var showLineNumbers = false |
| @@ -186,6 +189,11 @@ struct ContentView: View { | ||
| 186 | 189 | } |
| 187 | 190 | .safeAreaInset(edge: .bottom, spacing: 0) { |
| 188 | 191 | VStack(spacing: 0) { |
| 192 | if lintShown { | |
| 193 | LintPane(workspace: workspace, session: session, run: lintRun) { lintShown = false } | |
| 194 | .frame(height: 190) | |
| 195 | Divider() | |
| 196 | } | |
| 189 | 197 | ModeLine(session: session, commands: commands) |
| 190 | 198 | EchoArea(commands: commands) |
| 191 | 199 | } |
| @@ -1489,6 +1497,11 @@ struct ContentView: View { | ||
| 1489 | 1497 | case "app.recovery": |
| 1490 | 1498 | guard session.path != nil else { return commands.show(String(localized: "No file is open")) } |
| 1491 | 1499 | panel = .recovery(UUID()) |
| 1500 | case "app.lint": | |
| 1501 | guard session.path != nil else { return commands.show(String(localized: "No file is open")) } | |
| 1502 | guard FileLint.applies(to: session.path) else { return commands.show(String(localized: "Lint File works on Org files", comment: "Lint File in a file that isn't Org")) } | |
| 1503 | lintShown = true | |
| 1504 | lintRun += 1 | |
| 1492 | 1505 | case "app.copy-rich-text": |
| 1493 | 1506 | copyRichText() |
| 1494 | 1507 | case "app.export-dialog": |
Sources/Orgstar/LintPane.swift added +85 · view
| @@ -0,0 +1,85 @@ | ||
| 1 | import OrgApp | |
| 2 | import OrgCore | |
| 3 | import SwiftUI | |
| 4 | ||
| 5 | /// Lint File's panel under the editor: the problems in the open file, by line. Choosing a row | |
| 6 | /// moves the caret there. The list follows the file as it changes. | |
| 7 | struct LintPane: View { | |
| 8 | let workspace: WorkspaceModel | |
| 9 | let session: DocumentSession | |
| 10 | /// Raised each time Lint File runs, so running it again lints again. | |
| 11 | let run: Int | |
| 12 | let close: () -> Void | |
| 13 | @State private var findings: [LintFinding]? | |
| 14 | @State private var linted: Key? | |
| 15 | @State private var selection: LintFinding.ID? | |
| 16 | @Environment(\.orgTheme) private var theme | |
| 17 | @Environment(\.colorScheme) private var colorScheme | |
| 18 | ||
| 19 | private struct Key: Equatable { | |
| 20 | var path: String? | |
| 21 | var revision: Int? | |
| 22 | var run: Int | |
| 23 | } | |
| 24 | ||
| 25 | var body: some View { | |
| 26 | VStack(spacing: 0) { | |
| 27 | HStack(spacing: 8) { | |
| 28 | Text("Lint File").font(.subheadline.weight(.semibold)) | |
| 29 | if let path = session.path { Text((path as NSString).lastPathComponent).foregroundStyle(.secondary).lineLimit(1) } | |
| 30 | Spacer() | |
| 31 | if let findings { Text(FileLint.summary(findings)).foregroundStyle(.secondary) } else { ProgressView().controlSize(.small) } | |
| 32 | Button("Close", systemImage: "xmark", action: close) | |
| 33 | .labelStyle(.iconOnly) | |
| 34 | .buttonStyle(.borderless) | |
| 35 | .help("Close the Lint File panel") | |
| 36 | } | |
| 37 | .padding(.horizontal, 10) | |
| 38 | .padding(.vertical, 5) | |
| 39 | Divider() | |
| 40 | Table(findings ?? [], selection: $selection) { | |
| 41 | TableColumn("Line") { finding in Text(verbatim: "\(finding.line)").monospacedDigit() } | |
| 42 | .width(48) | |
| 43 | TableColumn("Severity") { finding in | |
| 44 | Label(FileLint.severity(finding), systemImage: finding.trust == .high ? "xmark.octagon.fill" : "exclamationmark.triangle.fill") | |
| 45 | .foregroundStyle(finding.trust == .high ? Color.red : Color.orange) | |
| 46 | .labelStyle(.titleAndIcon) | |
| 47 | } | |
| 48 | .width(96) | |
| 49 | TableColumn("Problem") { finding in Text(finding.message).lineLimit(1).help(finding.message) } | |
| 50 | .width(min: 200, ideal: 360) | |
| 51 | TableColumn("Checker") { finding in Text(verbatim: finding.checker.rawValue).foregroundStyle(.secondary).lineLimit(1) } | |
| 52 | .width(min: 120, ideal: 210, max: 260) | |
| 53 | } | |
| 54 | .tableStyle(.inset(alternatesRowBackgrounds: true)) | |
| 55 | .overlay { | |
| 56 | if findings?.isEmpty == true { Text("No problems found").foregroundStyle(.secondary) } | |
| 57 | } | |
| 58 | } | |
| 59 | .background(theme.color("sidebar-background", in: colorScheme) ?? .clear) | |
| 60 | .onChange(of: selection) { _, id in | |
| 61 | guard let id, let finding = findings?.first(where: { $0.id == id }) else { return } | |
| 62 | session.reveal(finding.offset) | |
| 63 | } | |
| 64 | .task(id: Key(path: session.path, revision: session.document?.revision, run: run)) { await refresh() } | |
| 65 | } | |
| 66 | ||
| 67 | private func refresh() async { | |
| 68 | let key = Key(path: session.path, revision: session.document?.revision, run: run) | |
| 69 | // Typing relints after a pause; a new file or another run of the command at once. | |
| 70 | if let linted, linted.path == key.path, linted.run == key.run { | |
| 71 | try? await Task.sleep(for: .milliseconds(500)) | |
| 72 | guard !Task.isCancelled else { return } | |
| 73 | } | |
| 74 | guard let document = session.document, FileLint.applies(to: session.path) else { | |
| 75 | findings = [] | |
| 76 | return | |
| 77 | } | |
| 78 | let environment = FileLint.environment(index: workspace.index, overlay: workspace.overlay(session.openDocuments)) | |
| 79 | let found = await FileLint.lint(document.text, tree: document.tree, path: session.path, environment: environment) | |
| 80 | guard !Task.isCancelled else { return } | |
| 81 | findings = found | |
| 82 | linted = key | |
| 83 | if let selection, !found.contains(where: { $0.id == selection }) { self.selection = nil } | |
| 84 | } | |
| 85 | } | |
Sources/Orgstar/OrgstarApp.swift +2 · view
| @@ -529,6 +529,8 @@ struct OrgstarApp: App { | ||
| 529 | 529 | .disabled(session.path == nil) |
| 530 | 530 | Button("History…") { commands.run("app.recovery") } |
| 531 | 531 | .disabled(session.path == nil) |
| 532 | Button("Lint File") { commands.run("app.lint") } | |
| 533 | .disabled(!FileLint.applies(to: session.path)) | |
| 532 | 534 | } |
| 533 | 535 | CommandGroup(replacing: .saveItem) { |
| 534 | 536 | Button("Close Buffer") { |
Sources/OrgstarMobile/EditorScreen.swift +7 −1 · view
| @@ -94,6 +94,7 @@ struct EditorScreen: View { | ||
| 94 | 94 | case graph |
| 95 | 95 | /// Rename Tag or Rename TODO Keyword, starting from this name. |
| 96 | 96 | case rename(ReplaceKind, String) |
| 97 | case lint | |
| 97 | 98 | /// The subtree at this offset, to export. |
| 98 | 99 | case exportSubtree(Int) |
| 99 | 100 | |
| @@ -112,6 +113,7 @@ struct EditorScreen: View { | ||
| 112 | 113 | case .backlinks: "backlinks" |
| 113 | 114 | case .graph: "graph" |
| 114 | 115 | case .rename(let kind, _): kind.rawValue |
| 116 | case .lint: "lint" | |
| 115 | 117 | case .exportSubtree: "exportSubtree" |
| 116 | 118 | } |
| 117 | 119 | } |
| @@ -243,6 +245,8 @@ struct EditorScreen: View { | ||
| 243 | 245 | } |
| 244 | 246 | case .rename(let kind, let initial): |
| 245 | 247 | RenameScreen(kind: kind, workspace: workspace, session: session, initial: initial) { message = $0 } |
| 248 | case .lint: | |
| 249 | LintScreen(workspace: workspace, session: session, path: path) { offset in editor?.reveal(offset) } | |
| 246 | 250 | } |
| 247 | 251 | } |
| 248 | 252 | .fileImporter(isPresented: $importingTable, allowedContentTypes: [.commaSeparatedText, .tabSeparatedText, .plainText]) { result in |
| @@ -511,6 +515,8 @@ struct EditorScreen: View { | ||
| 511 | 515 | } else if let kind = ReplaceKind(command: id), kind != .replace { |
| 512 | 516 | let context = self.editor?.editContext() |
| 513 | 517 | sheet = .rename(kind, context.map { kind.initial(text: $0.text, caret: $0.caret, keywords: $0.tree.settings.todoKeywordNames) } ?? "") |
| 518 | } else if id == "app.lint" { | |
| 519 | if FileLint.applies(to: path) { sheet = .lint } else { message = String(localized: "Lint File works on Org files", comment: "Lint File in a file that isn't Org") } | |
| 514 | 520 | } else if id == "app.toggle-markup" { |
| 515 | 521 | model.showMarkup.toggle() |
| 516 | 522 | } else if MobileEditor.linkCommands.contains(id) { |
| @@ -1048,7 +1054,7 @@ struct CommandPalette: View { | ||
| 1048 | 1054 | ("app.publish.current-project", "Publish Current Project"), |
| 1049 | 1055 | ("app.toggle-markup", "Show or Hide Markup"), ("app.word-count", "Word Count"), |
| 1050 | 1056 | ("org.snippet.next-field", "Next Snippet Field"), ("org.snippet.previous-field", "Previous Snippet Field"), |
| 1051 | ("app.recovery", "Recovery Versions…"), ("app.sync-conflicts", "Resolve Sync Conflicts…"), | |
| 1057 | ("app.recovery", "Recovery Versions…"), ("app.sync-conflicts", "Resolve Sync Conflicts…"), ("app.lint", "Lint File"), | |
| 1052 | 1058 | ("org.toggle-inline-images", "Show or Hide Inline Images"), ("org.toggle-inline-images-linked", "Show or Hide Inline Images, Including Described Links"), ("org.latex-preview", "Show or Hide LaTeX Previews"), ("editor.toggle-truncate-lines", "Truncate or Wrap Long Lines"), ("editor.toggle-auto-fill", "Turn Auto Fill On or Off"), |
| 1053 | 1059 | ("editor.complete", "Complete at Point"), ("editor.dabbrev-expand", "Expand Word"), ("editor.dabbrev-completion", "Complete Word"), |
| 1054 | 1060 | ("edit.isearch-forward", "Incremental Search"), ("edit.isearch-backward", "Incremental Search Backward"), |
Sources/OrgstarMobile/LintScreen.swift added +73 · view
| @@ -0,0 +1,73 @@ | ||
| 1 | #if os(iOS) | |
| 2 | import OrgApp | |
| 3 | import OrgCore | |
| 4 | import SwiftUI | |
| 5 | ||
| 6 | /// Lint File: the problems in the open file, by line, as the Mac's panel lists them. Tapping | |
| 7 | /// one closes the list and moves the caret to its line. | |
| 8 | struct LintScreen: View { | |
| 9 | let workspace: WorkspaceModel | |
| 10 | let session: DocumentSession | |
| 11 | let path: String | |
| 12 | let reveal: (Int) -> Void | |
| 13 | @State private var findings: [LintFinding]? | |
| 14 | @Environment(\.dismiss) private var dismiss | |
| 15 | ||
| 16 | var body: some View { | |
| 17 | NavigationStack { | |
| 18 | List { | |
| 19 | if let findings { | |
| 20 | Section { | |
| 21 | ForEach(findings) { finding in | |
| 22 | Button { | |
| 23 | dismiss() | |
| 24 | reveal(finding.offset) | |
| 25 | } label: { | |
| 26 | row(finding) | |
| 27 | } | |
| 28 | } | |
| 29 | } header: { | |
| 30 | Text(FileLint.summary(findings)) | |
| 31 | } | |
| 32 | } | |
| 33 | } | |
| 34 | .overlay { | |
| 35 | if findings == nil { | |
| 36 | ProgressView() | |
| 37 | } else if findings?.isEmpty == true { | |
| 38 | ContentUnavailableView("No problems found", systemImage: "checkmark.circle") | |
| 39 | } | |
| 40 | } | |
| 41 | .navigationTitle("Lint File") | |
| 42 | .navigationBarTitleDisplayMode(.inline) | |
| 43 | .toolbar { ToolbarItem(placement: .confirmationAction) { Button("Done") { dismiss() } } } | |
| 44 | } | |
| 45 | .task { await refresh() } | |
| 46 | } | |
| 47 | ||
| 48 | private func row(_ finding: LintFinding) -> some View { | |
| 49 | HStack(alignment: .firstTextBaseline, spacing: 10) { | |
| 50 | Image(systemName: finding.trust == .high ? "xmark.octagon.fill" : "exclamationmark.triangle.fill") | |
| 51 | .foregroundStyle(finding.trust == .high ? Color.red : Color.orange) | |
| 52 | .accessibilityLabel(FileLint.severity(finding)) | |
| 53 | VStack(alignment: .leading, spacing: 2) { | |
| 54 | Text(finding.message).foregroundStyle(.primary) | |
| 55 | Text("Line \(finding.line) · \(finding.checker.rawValue)", comment: "Lint File: a problem's line and checker") | |
| 56 | .font(.caption) | |
| 57 | .foregroundStyle(.secondary) | |
| 58 | } | |
| 59 | } | |
| 60 | } | |
| 61 | ||
| 62 | private func refresh() async { | |
| 63 | guard let document = session.openDocuments.first(where: { $0.path == path })?.document else { | |
| 64 | findings = [] | |
| 65 | return | |
| 66 | } | |
| 67 | let environment = FileLint.environment(index: workspace.index, overlay: workspace.overlay(session.openDocuments)) | |
| 68 | let found = await FileLint.lint(document.text, tree: document.tree, path: path, environment: environment) | |
| 69 | guard !Task.isCancelled else { return } | |
| 70 | findings = found | |
| 71 | } | |
| 72 | } | |
| 73 | #endif | |
Sources/OrgstarMobile/MobileEditor.swift +1 −1 · view
| @@ -505,7 +505,7 @@ final class MobileEditor: NSObject, DocumentBuffer { | ||
| 505 | 505 | case "app.crypt.encrypt-entry": return onAppCommand != nil && OrgCrypt.heading(context.text, at: context.caret) != nil && OrgCrypt.encryptedRange(context.text, at: context.caret) == nil |
| 506 | 506 | case "app.crypt.open-entry", "app.crypt.decrypt-entry": return onAppCommand != nil && OrgCrypt.encryptedRange(context.text, at: context.caret) != nil |
| 507 | 507 | case "app.table-export", "app.table-export.tsv", "app.plot": return onAppCommand != nil && ImportTable.exportText(context.text, at: context.caret, path: "") != nil |
| 508 | case "app.word-count", "app.recovery", "app.sync-conflicts", "app.attach.photo", "app.attach.camera", "app.attach.scan", | |
| 508 | case "app.word-count", "app.recovery", "app.sync-conflicts", "app.lint", "app.attach.photo", "app.attach.camera", "app.attach.scan", | |
| 509 | 509 | "app.rename-tag", "app.rename-todo-keyword": return onAppCommand != nil |
| 510 | 510 | case _ where id.hasPrefix(NamedMacros.commandPrefix): return true |
| 511 | 511 | case "app.refile", "app.refile.copy", "app.archive": return onAppCommand != nil && Presentation.heading(containing: context.caret, in: context.tree) != nil |
Tests/OrgAppTests/FileLintTests.swift added +49 · view
| @@ -0,0 +1,49 @@ | ||
| 1 | import Foundation | |
| 2 | import OrgCore | |
| 3 | @testable import OrgIndex | |
| 4 | import Testing | |
| 5 | @testable import OrgApp | |
| 6 | ||
| 7 | struct FileLintTests { | |
| 8 | @Test func idsResolveThroughTheIndexAndItsOverlay() async throws { | |
| 9 | let store = try IndexStore() | |
| 10 | try store.write(FileRecord(path: "/notes/a.org", root: "/notes", kind: .org, bytes: Array("* A\n:PROPERTIES:\n:ID: in-a\n:END:\n".utf8), mtime: 1, settings: IndexSettings())) | |
| 11 | // An unsaved buffer of b.org, in place of what the index has. | |
| 12 | let overlay = ["/notes/b.org": FileRecord(path: "/notes/b.org", root: "/notes", kind: .org, bytes: Array("* B\n:PROPERTIES:\n:ID: in-b\n:END:\n".utf8), | |
| 13 | mtime: 2, settings: IndexSettings())] | |
| 14 | let text = "* Here\n:PROPERTIES:\n:ID: in-a\n:END:\n[[id:in-a]] [[id:in-b]]\n[[id:nowhere]]\n" | |
| 15 | let environment = FileLint.environment(index: store, overlay: overlay) | |
| 16 | let findings = await FileLint.lint(text, tree: OrgParser.parse(text), path: "/notes/here.org", environment: environment) | |
| 17 | #expect(findings.map(\.checker) == [.duplicateID, .invalidIDLink]) | |
| 18 | #expect(findings.map(\.line) == [3, 6]) | |
| 19 | #expect(findings.first?.message == "Duplicate ID \"in-a\", also in a.org") | |
| 20 | } | |
| 21 | ||
| 22 | @Test func settingsComeFromThePreferences() { | |
| 23 | let defaults = TestDefaults("FileLintTests") | |
| 24 | defaults.set("attach/", forKey: "attachIDDir") | |
| 25 | defaults.set("t", forKey: "attachUseInheritance") | |
| 26 | defaults.set("secret", forKey: "cryptTagMatcher") | |
| 27 | let environment = FileLint.environment(index: nil, defaults: defaults) | |
| 28 | #expect(environment.attachIDDir == "attach/") | |
| 29 | #expect(environment.attachInherit == true) | |
| 30 | #expect(environment.cryptTag == "secret") | |
| 31 | #expect(environment.idFiles == nil) | |
| 32 | } | |
| 33 | ||
| 34 | @Test func appliesToOrgFiles() { | |
| 35 | #expect(FileLint.applies(to: "/n/a.org")) | |
| 36 | #expect(FileLint.applies(to: "/n/a.org_archive")) | |
| 37 | #expect(FileLint.applies(to: "/n/a.org.gpg")) | |
| 38 | #expect(!FileLint.applies(to: "/n/a.md")) | |
| 39 | #expect(!FileLint.applies(to: nil)) | |
| 40 | } | |
| 41 | ||
| 42 | @Test func summaries() { | |
| 43 | #expect(FileLint.summary([]) == "No problems found") | |
| 44 | let finding = LintFinding(offset: 0, line: 1, checker: .priority, message: "x") | |
| 45 | #expect(FileLint.summary([finding, finding]) == "2 problems") | |
| 46 | #expect(FileLint.severity(finding) == "Error") | |
| 47 | #expect(FileLint.severity(LintFinding(offset: 0, line: 1, checker: .timestampSyntax, message: "x")) == "Warning") | |
| 48 | } | |
| 49 | } | |
docs/manual/guide/02-the-editor.org +52 · view
| @@ -499,6 +499,58 @@ How each file changes: | ||
| 499 | 499 | |
| 500 | 500 | The echo area then says how many files changed. Org ▸ TODO and Tags has Rename Tag… and Rename TODO Keyword…, which work the same way but change only tags or keywords; see [[file:05-todos-and-tags.org][TODOs and tags]]. |
| 501 | 501 | |
| 502 | * Lint File | |
| 503 | ||
| 504 | File ▸ Lint File (=app.lint=, also in the command palette) checks the open Org file for mistakes, as =M-x org-lint= does, and lists them in a panel under the editor: the line, the severity, the problem and the checker that found it. Choosing a row moves the caret to that line. The list follows the file: after an edit it is checked again once you pause typing. Running Lint File again checks at once; the close button hides the panel. Nothing in the file is changed. | |
| 505 | ||
| 506 | The severity is org-lint's trust in the checker. An error is almost certainly a mistake; a warning may be intended, such as a timestamp written without its day name. Messages are org-lint's own, in English. | |
| 507 | ||
| 508 | | Checker | Severity | Reports | | |
| 509 | |-----------------------------------------+----------+--------------------------------------------------------------------------------------------------| | |
| 510 | | =invalid-fuzzy-link= | Error | =[[*Heading]]= or =[[name]]= with no heading, =<<target>>= or =#+NAME= of that name in the file | | |
| 511 | | =invalid-custom-id-link= | Error | =[[#id]]= with no heading of that =CUSTOM_ID= or =ID= in the file | | |
| 512 | | =invalid-id-link= | Error | =[[id:…]]= with no entry of that =ID= in any of your folders | | |
| 513 | | =invalid-coderef-link= | Error | =[[(label)]]= with no =(ref:label)= in a block of the file | | |
| 514 | | =link-to-local-file= | Warning | =file:= and =attachment:= links to files that don't exist | | |
| 515 | | =invalid-file-search= | Warning | =file:other.org::*Heading= (or =::#id=, =::target=) that the other file doesn't have | | |
| 516 | | =file-application= | Error | =file+sys:= and =file+emacs:= links | | |
| 517 | | =missing-attachment-folder= | Error | entries tagged =ATTACH= whose attachment folder doesn't exist | | |
| 518 | | =orphaned-attachment-folder= | Warning | folders under the attachment folder (=data/= by default) whose ID no entry in your folders has | | |
| 519 | | =duplicate-id= | Error | an =ID= used twice in the file or also in another file | | |
| 520 | | =duplicate-custom-id= | Error | a =CUSTOM_ID= used twice in the file | | |
| 521 | | =duplicate-name= | Error | a =#+NAME= used twice in the file | | |
| 522 | | =duplicate-target= | Error | a =<<target>>= used twice in the file | | |
| 523 | | =duplicate-footnote-definition= | Error | two definitions of a footnote | | |
| 524 | | =incomplete-drawer= | Warning | a drawer line with no =:END:=, or one inside another drawer | | |
| 525 | | =invalid-block= | Warning | a =#+BEGIN_…= with no =#+END_…=, and an end line with text after it | | |
| 526 | | =misplaced-planning-info= | Warning | a =SCHEDULED:=, =DEADLINE:= or =CLOSED:= line that isn't right under its heading | | |
| 527 | | =obsolete-properties-drawer= | Error | a =PROPERTIES= drawer away from its heading, or with lines that aren't properties | | |
| 528 | | =misplaced-heading= | Warning | stars that look like a heading in the middle of a line | | |
| 529 | | =indented-diary-sexp= | Warning | an indented =%%(…)= line, which isn't a diary sexp | | |
| 530 | | =invalid-keyword-syntax= | Warning | =#+KEYWORD= without its colon | | |
| 531 | | =orphaned-affiliated-keywords= | Warning | =#+NAME=, =#+CAPTION=, =#+ATTR_…= and the like with no element after them | | |
| 532 | | =obsolete-affiliated-keywords= | Error | =#+TBLNAME=, =#+SRCNAME=, =#+RESULT= and the other old names | | |
| 533 | | =missing-language-in-src-block= | Error | =#+BEGIN_SRC= without a language | | |
| 534 | | =missing-backend-in-export-block= | Error | =#+BEGIN_EXPORT= without a format | | |
| 535 | | =deprecated-export-blocks= | Warning | =#+BEGIN_HTML= and the other blocks =#+BEGIN_EXPORT= replaced | | |
| 536 | | =deprecated-category-setup= | Error | a second =#+CATEGORY= line | | |
| 537 | | =non-existent-setupfile-parameter= | Warning | a =#+SETUPFILE= that doesn't exist | | |
| 538 | | =unknown-todo-keyword= | Warning | a heading starting with a word such as =NEXT= or =TODOX= that isn't one of the file's or the configuration's TODO keywords | | |
| 539 | | =priority= | Error | priorities outside the file's range, and malformed cookies such as =[#AA]= or =[#1= | | |
| 540 | | =spurious-colons= | Error | tags with an empty tag, such as =:a::b:= | | |
| 541 | | =quote-section= | Warning | a =QUOTE= heading | | |
| 542 | | =special-property-in-properties-drawer= | Error | =TODO=, =SCHEDULED= and the other special properties set in a drawer | | |
| 543 | | =invalid-effort-property= | Error | an =EFFORT= that isn't a duration | | |
| 544 | | =invalid-id-property= | Error | an =ID= with =::= in it | | |
| 545 | | =timestamp-syntax= | Warning | a timestamp Org would write differently: no or a wrong day name, =9:00= for =09:00=, a date that doesn't exist | | |
| 546 | | =clock-syntax= | Warning | the same for =CLOCK:= lines | | |
| 547 | | =planning-inactive= | Error | an inactive timestamp after =SCHEDULED:= or =DEADLINE:=, which the agenda doesn't show | | |
| 548 | | =mismatched-planning-repeaters= | Warning | =SCHEDULED= and =DEADLINE= with different repeaters | | |
| 549 | | =undefined-footnote-reference= | Error | =[fn:label]= with no definition | | |
| 550 | | =unreferenced-footnote-definition= | Error | a footnote definition nothing refers to | | |
| 551 | ||
| 552 | IDs are looked up in the index of all your folders, so a link to an entry in another file counts, and an ID used in two files is a duplicate in each. The attachment folders checked are the ones next to the file; each file in that folder lists the same folders. Links, setup files and attachments in a file that hasn't been saved yet aren't checked. The text of an encrypted entry (=:crypt:=) isn't checked; an encrypted file is checked as it is in the editor, decrypted, and nothing is written. For the differences from =org-lint=, see [[file:15-alongside-emacs.org][Working alongside Emacs]]. On iOS, Lint File is in Commands; see [[file:14-ios.org][iPhone and iPad]]. | |
| 553 | ||
| 502 | 554 | * Accessibility |
| 503 | 555 | |
| 504 | 556 | The editor works with VoiceOver. VoiceOver reads the text as it is shown rather than as stored: hidden link brackets and targets, hidden emphasis markers and hidden stars are skipped, entities are read as the characters drawn for them, and narrowed table columns are read as drawn. Folded text is still read, so the whole file is available. Lines, the caret position and the selection are reported in terms of the shown text. |
docs/manual/guide/03-keys.org +1 · view
| @@ -1198,6 +1198,7 @@ No preset binds these. Run them from the palette or a menu, or bind them in =key | ||
| 1198 | 1198 | | Revert to File on Disk (=app.revert=) | Replaces the buffer with the file on disk; unsaved changes go to recovery (=revert-buffer=). | |
| 1199 | 1199 | | Run Macro… (=macro.run=) | Asks for a named keyboard macro and plays it. Edit ▸ Macros ▸ Run Macro…. | |
| 1200 | 1200 | | History… (=app.recovery=) | Shows the file's recovery versions and, in the download version, its git commits. Recovery Versions… on iOS. | |
| 1201 | | Lint File (=app.lint=) | Lists the problems in the file in a panel under the editor (=org-lint=). File ▸ Lint File. See [[file:02-the-editor.org][The editor]]. | | |
| 1201 | 1202 | | Resolve Sync Conflicts… (=app.sync-conflicts=) | Shows the file's sync conflict copies to resolve them. | |
| 1202 | 1203 | | Import Table from File… (=app.table-import=) | Asks for a CSV, TSV or space-separated file and inserts it as a table (=org-table-import=). | |
| 1203 | 1204 | | Export Table to File… (=app.table-export=) | Writes the table at point to a CSV or TSV file (=org-table-export=). | |
docs/manual/guide/14-ios.org +2 · view
| @@ -198,6 +198,8 @@ The org-timer commands are in Commands; a running timer shows above the text. Se | ||
| 198 | 198 | |
| 199 | 199 | Commands has the org-attach commands, and Attach Photo or Video…, Take Photo… and Scan Document…, which insert the link to the photo, or to the scanned pages as one PDF, at the caret; files shared to orgstar can be attached to an entry. Pasting an image and dropping files on the editor attach them and link them at the caret. Attachments are copied or moved: iOS doesn't let orgstar link a file from another app's storage, so the keys for attaching by hard link or symbolic link say "Attachments can't be linked on iPhone and iPad; Attach File… copies the file." See [[file:04-outlines.org][Outlines]] and [[file:09-links.org][Links]]. |
| 200 | 200 | |
| 201 | Lint File, under File in Commands, lists the problems in the open file with their lines, as the Mac's Lint File panel does; tap one to close the list and move the caret to its line. The checks are the Mac's; see [[file:02-the-editor.org][The editor]]. Run it again after editing to check again. | |
| 202 | ||
| 201 | 203 | Archive Subtree in Commands (or =C-c C-x C-s= with a hardware keyboard) archives the entry at the caret where =org-archive-location= says, as on the Mac. |
| 202 | 204 | |
| 203 | 205 | Commands has the org-crypt commands; see [[file:04-outlines.org][Outlines]]. A remembered passphrase is used after Face ID, Touch ID or the device passcode. |
docs/manual/guide/15-alongside-emacs.org +11 · view
| @@ -234,6 +234,17 @@ Completion follows Emacs's =completion-at-point= with corfu's list (see [[file:0 | ||
| 234 | 234 | - =[[id:= completes every heading in your folders, as =org-roam-node-insert= completes nodes, but a heading without an =ID= gets one when chosen, which org-roam leaves to =org-id-get-create=. The description is the heading's title as written. org-roam's =roam:= links aren't completed. |
| 235 | 235 | - Property values come from the index as well as the buffer; Org's =org-read-property-value= offers only the buffer's. |
| 236 | 236 | |
| 237 | ** Lint File and org-lint | |
| 238 | ||
| 239 | Lint File (see [[file:02-the-editor.org][The editor]]) runs the checkers of =org-lint= that have the same meaning in orgstar, with org-lint's names, trust and messages, and finds the same lines; the tests compare the two on the same files. It differs in these ways: | |
| 240 | ||
| 241 | - It checks the current file only; there is no command to check every file yet. | |
| 242 | - IDs are found through orgstar's index of all your folders, not =org-id-locations=. org-lint finds an unknown ID only when =org-id-locations= is loaded and doesn't have it; Lint File always reports one. | |
| 243 | - orgstar's own checkers, which org-lint doesn't have: =duplicate-id= (across your folders), =unknown-todo-keyword=, =missing-attachment-folder=, =orphaned-attachment-folder= and =invalid-file-search=. =unknown-todo-keyword= reports a heading starting with a keyword common in Org configurations (=NEXT=, =WAIT=, =HOLD=, …) or one letter away from a keyword of the file (=TODOX=), when the file and the configuration don't define it. | |
| 244 | - Not checked: Babel header arguments and values and source block languages (=wrong-header-argument=, =wrong-header-value=, =empty-header-argument=, =deprecated-header-syntax=, =named-result=, =invalid-babel-call-block=, =suspicious-language-in-src-block=), which depend on the languages loaded in Emacs; export options, macros and =#+INCLUDE= (=unknown-options-item=, =misspelled-export-option=, =invalid-macro-argument-and-template=, =wrong-include-link-parameter=, =obsolete-include-markup=, =beamer-frame=), which depend on the export back-ends loaded; citations (=non-existent-bibliography=, =missing-print-bibliography=, =invalid-cite-export-declaration=, =incomplete-citation=); =item-number=, =LaTeX-$=, =trailing-bracket-after-link=, =unclosed-brackets-in-link-description=, =percent-encoding-link-escape=, =extraneous-element-in-footnote-section=, =invalid-image-alignment= and =combining-keywords-with-affiliated=, where orgstar's reading of lists, LaTeX fragments and links differs from Org's in details these checks depend on. | |
| 245 | - Timestamps are checked against English day names, as Emacs writes them with the C locale. | |
| 246 | - The panel lists everything; org-lint's =h= and =i= (hide or ignore a checker) and its prefix arguments (one category or one checker) aren't there. | |
| 247 | ||
| 237 | 248 | ** Known differences from Emacs Org |
| 238 | 249 | |
| 239 | 250 | orgstar refuses some things with a message rather than doing something different from Emacs. These are the ones found in the current version. |
l10n/Localizable.xcstrings +481 · view
| @@ -2196,6 +2196,107 @@ | ||
| 2196 | 2196 | } |
| 2197 | 2197 | } |
| 2198 | 2198 | }, |
| 2199 | "%lld problems": { | |
| 2200 | "comment": "Lint File: the number of problems found", | |
| 2201 | "localizations": { | |
| 2202 | "de": { | |
| 2203 | "variations": { | |
| 2204 | "plural": { | |
| 2205 | "one": { | |
| 2206 | "stringUnit": { | |
| 2207 | "state": "translated", | |
| 2208 | "value": "%lld Problem" | |
| 2209 | } | |
| 2210 | }, | |
| 2211 | "other": { | |
| 2212 | "stringUnit": { | |
| 2213 | "state": "translated", | |
| 2214 | "value": "%lld Probleme" | |
| 2215 | } | |
| 2216 | } | |
| 2217 | } | |
| 2218 | } | |
| 2219 | }, | |
| 2220 | "en": { | |
| 2221 | "variations": { | |
| 2222 | "plural": { | |
| 2223 | "one": { | |
| 2224 | "stringUnit": { | |
| 2225 | "state": "translated", | |
| 2226 | "value": "%lld problem" | |
| 2227 | } | |
| 2228 | }, | |
| 2229 | "other": { | |
| 2230 | "stringUnit": { | |
| 2231 | "state": "translated", | |
| 2232 | "value": "%lld problems" | |
| 2233 | } | |
| 2234 | } | |
| 2235 | } | |
| 2236 | } | |
| 2237 | }, | |
| 2238 | "es": { | |
| 2239 | "variations": { | |
| 2240 | "plural": { | |
| 2241 | "one": { | |
| 2242 | "stringUnit": { | |
| 2243 | "state": "translated", | |
| 2244 | "value": "%lld problema" | |
| 2245 | } | |
| 2246 | }, | |
| 2247 | "other": { | |
| 2248 | "stringUnit": { | |
| 2249 | "state": "translated", | |
| 2250 | "value": "%lld problemas" | |
| 2251 | } | |
| 2252 | } | |
| 2253 | } | |
| 2254 | } | |
| 2255 | }, | |
| 2256 | "fr": { | |
| 2257 | "variations": { | |
| 2258 | "plural": { | |
| 2259 | "one": { | |
| 2260 | "stringUnit": { | |
| 2261 | "state": "translated", | |
| 2262 | "value": "%lld problème" | |
| 2263 | } | |
| 2264 | }, | |
| 2265 | "other": { | |
| 2266 | "stringUnit": { | |
| 2267 | "state": "translated", | |
| 2268 | "value": "%lld problèmes" | |
| 2269 | } | |
| 2270 | } | |
| 2271 | } | |
| 2272 | } | |
| 2273 | }, | |
| 2274 | "ja": { | |
| 2275 | "stringUnit": { | |
| 2276 | "state": "translated", | |
| 2277 | "value": "%lld件の問題" | |
| 2278 | } | |
| 2279 | }, | |
| 2280 | "pt-BR": { | |
| 2281 | "variations": { | |
| 2282 | "plural": { | |
| 2283 | "one": { | |
| 2284 | "stringUnit": { | |
| 2285 | "state": "translated", | |
| 2286 | "value": "%lld problema" | |
| 2287 | } | |
| 2288 | }, | |
| 2289 | "other": { | |
| 2290 | "stringUnit": { | |
| 2291 | "state": "translated", | |
| 2292 | "value": "%lld problemas" | |
| 2293 | } | |
| 2294 | } | |
| 2295 | } | |
| 2296 | } | |
| 2297 | } | |
| 2298 | } | |
| 2299 | }, | |
| 2199 | 2300 | "%lld selected": { |
| 2200 | 2301 | "localizations": { |
| 2201 | 2302 | "de": { |
| @@ -8391,6 +8492,40 @@ | ||
| 8391 | 8492 | } |
| 8392 | 8493 | } |
| 8393 | 8494 | }, |
| 8495 | "Checker": { | |
| 8496 | "localizations": { | |
| 8497 | "de": { | |
| 8498 | "stringUnit": { | |
| 8499 | "state": "translated", | |
| 8500 | "value": "Prüfung" | |
| 8501 | } | |
| 8502 | }, | |
| 8503 | "es": { | |
| 8504 | "stringUnit": { | |
| 8505 | "state": "translated", | |
| 8506 | "value": "Comprobación" | |
| 8507 | } | |
| 8508 | }, | |
| 8509 | "fr": { | |
| 8510 | "stringUnit": { | |
| 8511 | "state": "translated", | |
| 8512 | "value": "Vérification" | |
| 8513 | } | |
| 8514 | }, | |
| 8515 | "ja": { | |
| 8516 | "stringUnit": { | |
| 8517 | "state": "translated", | |
| 8518 | "value": "チェック" | |
| 8519 | } | |
| 8520 | }, | |
| 8521 | "pt-BR": { | |
| 8522 | "stringUnit": { | |
| 8523 | "state": "translated", | |
| 8524 | "value": "Verificação" | |
| 8525 | } | |
| 8526 | } | |
| 8527 | } | |
| 8528 | }, | |
| 8394 | 8529 | "Choice %lld of %lld": { |
| 8395 | 8530 | "comment": "VoiceOver label for the echo area's count of matching choices", |
| 8396 | 8531 | "localizations": { |
| @@ -10050,6 +10185,40 @@ | ||
| 10050 | 10185 | } |
| 10051 | 10186 | } |
| 10052 | 10187 | }, |
| 10188 | "Close the Lint File panel": { | |
| 10189 | "localizations": { | |
| 10190 | "de": { | |
| 10191 | "stringUnit": { | |
| 10192 | "state": "translated", | |
| 10193 | "value": "Bereich „Datei prüfen“ schließen" | |
| 10194 | } | |
| 10195 | }, | |
| 10196 | "es": { | |
| 10197 | "stringUnit": { | |
| 10198 | "state": "translated", | |
| 10199 | "value": "Cerrar el panel Revisar archivo" | |
| 10200 | } | |
| 10201 | }, | |
| 10202 | "fr": { | |
| 10203 | "stringUnit": { | |
| 10204 | "state": "translated", | |
| 10205 | "value": "Fermer le panneau Vérifier le fichier" | |
| 10206 | } | |
| 10207 | }, | |
| 10208 | "ja": { | |
| 10209 | "stringUnit": { | |
| 10210 | "state": "translated", | |
| 10211 | "value": "「ファイルをチェック」パネルを閉じる" | |
| 10212 | } | |
| 10213 | }, | |
| 10214 | "pt-BR": { | |
| 10215 | "stringUnit": { | |
| 10216 | "state": "translated", | |
| 10217 | "value": "Fechar o painel Verificar Arquivo" | |
| 10218 | } | |
| 10219 | } | |
| 10220 | } | |
| 10221 | }, | |
| 10053 | 10222 | "Closed": { |
| 10054 | 10223 | "localizations": { |
| 10055 | 10224 | "de": { |
| @@ -15191,6 +15360,41 @@ | ||
| 15191 | 15360 | } |
| 15192 | 15361 | } |
| 15193 | 15362 | }, |
| 15363 | "Error": { | |
| 15364 | "comment": "Lint File: a problem org-lint trusts highly", | |
| 15365 | "localizations": { | |
| 15366 | "de": { | |
| 15367 | "stringUnit": { | |
| 15368 | "state": "translated", | |
| 15369 | "value": "Fehler" | |
| 15370 | } | |
| 15371 | }, | |
| 15372 | "es": { | |
| 15373 | "stringUnit": { | |
| 15374 | "state": "translated", | |
| 15375 | "value": "Error" | |
| 15376 | } | |
| 15377 | }, | |
| 15378 | "fr": { | |
| 15379 | "stringUnit": { | |
| 15380 | "state": "translated", | |
| 15381 | "value": "Erreur" | |
| 15382 | } | |
| 15383 | }, | |
| 15384 | "ja": { | |
| 15385 | "stringUnit": { | |
| 15386 | "state": "translated", | |
| 15387 | "value": "エラー" | |
| 15388 | } | |
| 15389 | }, | |
| 15390 | "pt-BR": { | |
| 15391 | "stringUnit": { | |
| 15392 | "state": "translated", | |
| 15393 | "value": "Erro" | |
| 15394 | } | |
| 15395 | } | |
| 15396 | } | |
| 15397 | }, | |
| 15194 | 15398 | "Evaluate Time Range": { |
| 15195 | 15399 | "comment": "Command title", |
| 15196 | 15400 | "localizations": { |
| @@ -22472,6 +22676,75 @@ | ||
| 22472 | 22676 | } |
| 22473 | 22677 | } |
| 22474 | 22678 | }, |
| 22679 | "Line": { | |
| 22680 | "localizations": { | |
| 22681 | "de": { | |
| 22682 | "stringUnit": { | |
| 22683 | "state": "translated", | |
| 22684 | "value": "Zeile" | |
| 22685 | } | |
| 22686 | }, | |
| 22687 | "es": { | |
| 22688 | "stringUnit": { | |
| 22689 | "state": "translated", | |
| 22690 | "value": "Línea" | |
| 22691 | } | |
| 22692 | }, | |
| 22693 | "fr": { | |
| 22694 | "stringUnit": { | |
| 22695 | "state": "translated", | |
| 22696 | "value": "Ligne" | |
| 22697 | } | |
| 22698 | }, | |
| 22699 | "ja": { | |
| 22700 | "stringUnit": { | |
| 22701 | "state": "translated", | |
| 22702 | "value": "行" | |
| 22703 | } | |
| 22704 | }, | |
| 22705 | "pt-BR": { | |
| 22706 | "stringUnit": { | |
| 22707 | "state": "translated", | |
| 22708 | "value": "Linha" | |
| 22709 | } | |
| 22710 | } | |
| 22711 | } | |
| 22712 | }, | |
| 22713 | "Line %lld · %@": { | |
| 22714 | "comment": "Lint File: a problem's line and checker", | |
| 22715 | "localizations": { | |
| 22716 | "de": { | |
| 22717 | "stringUnit": { | |
| 22718 | "state": "translated", | |
| 22719 | "value": "Zeile %lld · %@" | |
| 22720 | } | |
| 22721 | }, | |
| 22722 | "es": { | |
| 22723 | "stringUnit": { | |
| 22724 | "state": "translated", | |
| 22725 | "value": "Línea %lld · %@" | |
| 22726 | } | |
| 22727 | }, | |
| 22728 | "fr": { | |
| 22729 | "stringUnit": { | |
| 22730 | "state": "translated", | |
| 22731 | "value": "Ligne %lld · %@" | |
| 22732 | } | |
| 22733 | }, | |
| 22734 | "ja": { | |
| 22735 | "stringUnit": { | |
| 22736 | "state": "translated", | |
| 22737 | "value": "%lld行 · %@" | |
| 22738 | } | |
| 22739 | }, | |
| 22740 | "pt-BR": { | |
| 22741 | "stringUnit": { | |
| 22742 | "state": "translated", | |
| 22743 | "value": "Linha %lld · %@" | |
| 22744 | } | |
| 22745 | } | |
| 22746 | } | |
| 22747 | }, | |
| 22475 | 22748 | "Line %lld, column %lld": { |
| 22476 | 22749 | "localizations": { |
| 22477 | 22750 | "de": { |
| @@ -22854,6 +23127,76 @@ | ||
| 22854 | 23127 | } |
| 22855 | 23128 | } |
| 22856 | 23129 | }, |
| 23130 | "Lint File": { | |
| 23131 | "comment": "Command title", | |
| 23132 | "localizations": { | |
| 23133 | "de": { | |
| 23134 | "stringUnit": { | |
| 23135 | "state": "translated", | |
| 23136 | "value": "Datei prüfen" | |
| 23137 | } | |
| 23138 | }, | |
| 23139 | "es": { | |
| 23140 | "stringUnit": { | |
| 23141 | "state": "translated", | |
| 23142 | "value": "Revisar archivo" | |
| 23143 | } | |
| 23144 | }, | |
| 23145 | "fr": { | |
| 23146 | "stringUnit": { | |
| 23147 | "state": "translated", | |
| 23148 | "value": "Vérifier le fichier" | |
| 23149 | } | |
| 23150 | }, | |
| 23151 | "ja": { | |
| 23152 | "stringUnit": { | |
| 23153 | "state": "translated", | |
| 23154 | "value": "ファイルをチェック" | |
| 23155 | } | |
| 23156 | }, | |
| 23157 | "pt-BR": { | |
| 23158 | "stringUnit": { | |
| 23159 | "state": "translated", | |
| 23160 | "value": "Verificar Arquivo" | |
| 23161 | } | |
| 23162 | } | |
| 23163 | } | |
| 23164 | }, | |
| 23165 | "Lint File works on Org files": { | |
| 23166 | "comment": "Lint File in a file that isn't Org", | |
| 23167 | "localizations": { | |
| 23168 | "de": { | |
| 23169 | "stringUnit": { | |
| 23170 | "state": "translated", | |
| 23171 | "value": "„Datei prüfen“ funktioniert nur mit Org-Dateien" | |
| 23172 | } | |
| 23173 | }, | |
| 23174 | "es": { | |
| 23175 | "stringUnit": { | |
| 23176 | "state": "translated", | |
| 23177 | "value": "Revisar archivo funciona con archivos Org" | |
| 23178 | } | |
| 23179 | }, | |
| 23180 | "fr": { | |
| 23181 | "stringUnit": { | |
| 23182 | "state": "translated", | |
| 23183 | "value": "Vérifier le fichier fonctionne avec les fichiers Org" | |
| 23184 | } | |
| 23185 | }, | |
| 23186 | "ja": { | |
| 23187 | "stringUnit": { | |
| 23188 | "state": "translated", | |
| 23189 | "value": "「ファイルをチェック」はOrgファイルで使えます" | |
| 23190 | } | |
| 23191 | }, | |
| 23192 | "pt-BR": { | |
| 23193 | "stringUnit": { | |
| 23194 | "state": "translated", | |
| 23195 | "value": "Verificar Arquivo funciona com arquivos Org" | |
| 23196 | } | |
| 23197 | } | |
| 23198 | } | |
| 23199 | }, | |
| 22857 | 23200 | "Lisp %@": { |
| 22858 | 23201 | "comment": "Why a table needs Emacs: something its Lisp formula does", |
| 22859 | 23202 | "localizations": { |
| @@ -27364,6 +27707,41 @@ | ||
| 27364 | 27707 | } |
| 27365 | 27708 | } |
| 27366 | 27709 | }, |
| 27710 | "No problems found": { | |
| 27711 | "comment": "Lint File", | |
| 27712 | "localizations": { | |
| 27713 | "de": { | |
| 27714 | "stringUnit": { | |
| 27715 | "state": "translated", | |
| 27716 | "value": "Keine Probleme gefunden" | |
| 27717 | } | |
| 27718 | }, | |
| 27719 | "es": { | |
| 27720 | "stringUnit": { | |
| 27721 | "state": "translated", | |
| 27722 | "value": "No se encontraron problemas" | |
| 27723 | } | |
| 27724 | }, | |
| 27725 | "fr": { | |
| 27726 | "stringUnit": { | |
| 27727 | "state": "translated", | |
| 27728 | "value": "Aucun problème trouvé" | |
| 27729 | } | |
| 27730 | }, | |
| 27731 | "ja": { | |
| 27732 | "stringUnit": { | |
| 27733 | "state": "translated", | |
| 27734 | "value": "問題は見つかりませんでした" | |
| 27735 | } | |
| 27736 | }, | |
| 27737 | "pt-BR": { | |
| 27738 | "stringUnit": { | |
| 27739 | "state": "translated", | |
| 27740 | "value": "Nenhum problema encontrado" | |
| 27741 | } | |
| 27742 | } | |
| 27743 | } | |
| 27744 | }, | |
| 27367 | 27745 | "No recent clock": { |
| 27368 | 27746 | "localizations": { |
| 27369 | 27747 | "de": { |
| @@ -31587,6 +31965,40 @@ | ||
| 31587 | 31965 | } |
| 31588 | 31966 | } |
| 31589 | 31967 | }, |
| 31968 | "Problem": { | |
| 31969 | "localizations": { | |
| 31970 | "de": { | |
| 31971 | "stringUnit": { | |
| 31972 | "state": "translated", | |
| 31973 | "value": "Problem" | |
| 31974 | } | |
| 31975 | }, | |
| 31976 | "es": { | |
| 31977 | "stringUnit": { | |
| 31978 | "state": "translated", | |
| 31979 | "value": "Problema" | |
| 31980 | } | |
| 31981 | }, | |
| 31982 | "fr": { | |
| 31983 | "stringUnit": { | |
| 31984 | "state": "translated", | |
| 31985 | "value": "Problème" | |
| 31986 | } | |
| 31987 | }, | |
| 31988 | "ja": { | |
| 31989 | "stringUnit": { | |
| 31990 | "state": "translated", | |
| 31991 | "value": "問題" | |
| 31992 | } | |
| 31993 | }, | |
| 31994 | "pt-BR": { | |
| 31995 | "stringUnit": { | |
| 31996 | "state": "translated", | |
| 31997 | "value": "Problema" | |
| 31998 | } | |
| 31999 | } | |
| 32000 | } | |
| 32001 | }, | |
| 31590 | 32002 | "Promote": { |
| 31591 | 32003 | "comment": "Key bar button", |
| 31592 | 32004 | "localizations": { |
| @@ -37199,6 +37611,40 @@ | ||
| 37199 | 37611 | } |
| 37200 | 37612 | } |
| 37201 | 37613 | }, |
| 37614 | "Severity": { | |
| 37615 | "localizations": { | |
| 37616 | "de": { | |
| 37617 | "stringUnit": { | |
| 37618 | "state": "translated", | |
| 37619 | "value": "Schwere" | |
| 37620 | } | |
| 37621 | }, | |
| 37622 | "es": { | |
| 37623 | "stringUnit": { | |
| 37624 | "state": "translated", | |
| 37625 | "value": "Gravedad" | |
| 37626 | } | |
| 37627 | }, | |
| 37628 | "fr": { | |
| 37629 | "stringUnit": { | |
| 37630 | "state": "translated", | |
| 37631 | "value": "Gravité" | |
| 37632 | } | |
| 37633 | }, | |
| 37634 | "ja": { | |
| 37635 | "stringUnit": { | |
| 37636 | "state": "translated", | |
| 37637 | "value": "重要度" | |
| 37638 | } | |
| 37639 | }, | |
| 37640 | "pt-BR": { | |
| 37641 | "stringUnit": { | |
| 37642 | "state": "translated", | |
| 37643 | "value": "Gravidade" | |
| 37644 | } | |
| 37645 | } | |
| 37646 | } | |
| 37647 | }, | |
| 37202 | 37648 | "Shift Timer Values in Region…": { |
| 37203 | 37649 | "comment": "Command title", |
| 37204 | 37650 | "localizations": { |
| @@ -44914,6 +45360,41 @@ | ||
| 44914 | 45360 | } |
| 44915 | 45361 | } |
| 44916 | 45362 | }, |
| 45363 | "Warning": { | |
| 45364 | "comment": "Lint File: a problem that may be intended", | |
| 45365 | "localizations": { | |
| 45366 | "de": { | |
| 45367 | "stringUnit": { | |
| 45368 | "state": "translated", | |
| 45369 | "value": "Warnung" | |
| 45370 | } | |
| 45371 | }, | |
| 45372 | "es": { | |
| 45373 | "stringUnit": { | |
| 45374 | "state": "translated", | |
| 45375 | "value": "Advertencia" | |
| 45376 | } | |
| 45377 | }, | |
| 45378 | "fr": { | |
| 45379 | "stringUnit": { | |
| 45380 | "state": "translated", | |
| 45381 | "value": "Avertissement" | |
| 45382 | } | |
| 45383 | }, | |
| 45384 | "ja": { | |
| 45385 | "stringUnit": { | |
| 45386 | "state": "translated", | |
| 45387 | "value": "警告" | |
| 45388 | } | |
| 45389 | }, | |
| 45390 | "pt-BR": { | |
| 45391 | "stringUnit": { | |
| 45392 | "state": "translated", | |
| 45393 | "value": "Aviso" | |
| 45394 | } | |
| 45395 | } | |
| 45396 | } | |
| 45397 | }, | |
| 44917 | 45398 | "Was \"%@\"": { |
| 44918 | 45399 | "comment": "Rename: the config.toml setting before the change", |
| 44919 | 45400 | "localizations": { |