Show the agenda in the Mac sidebar !443
10 files changed, +552 −9
Layout: unified · split
Sources/OrgApp/CommandTitles.swift +1
| @@ -270,6 +270,7 @@ enum CommandTitles { | |||
| 270 | String(localized: "Set Property…", comment: "Command title"), | 270 | String(localized: "Set Property…", comment: "Command title"), |
| 271 | String(localized: "Set Tags", comment: "Command title"), | 271 | String(localized: "Set Tags", comment: "Command title"), |
| 272 | String(localized: "Shift Timer Values in Region…", comment: "Command title"), | 272 | String(localized: "Shift Timer Values in Region…", comment: "Command title"), |
| 273 | String(localized: "Show Agenda or Files in Sidebar", comment: "Command title"), | ||
| 273 | String(localized: "Show Attachment Folder", comment: "Command title"), | 274 | String(localized: "Show Attachment Folder", comment: "Command title"), |
| 274 | String(localized: "Show Backlinks", comment: "Command title"), | 275 | String(localized: "Show Backlinks", comment: "Command title"), |
| 275 | String(localized: "Show Node Graph", comment: "Command title"), | 276 | String(localized: "Show Node Graph", comment: "Command title"), |
Sources/OrgApp/WhatsNew.swift +2
| @@ -67,6 +67,8 @@ public enum WhatsNew { | |||
| 67 | #else | 67 | #else |
| 68 | private static let ios: [ReleaseNotes.Item] = [] | 68 | private static let ios: [ReleaseNotes.Item] = [] |
| 69 | private static let mac = [ | 69 | private static let mac = [ |
| 70 | ReleaseNotes.Item("sidebar.left", "Agenda in the sidebar", | ||
| 71 | "The calendar button under the sidebar shows your agenda, or a view from views.toml, beside the editor."), | ||
| 70 | ReleaseNotes.Item("menubar.rectangle", "orgstar in the menu bar", | 72 | ReleaseNotes.Item("menubar.rectangle", "orgstar in the menu bar", |
| 71 | "Settings ▸ General ▸ Keep orgstar in the menu bar adds capture, the agenda and today's entries to the menu bar."), | 73 | "Settings ▸ General ▸ Keep orgstar in the menu bar adds capture, the agenda and today's entries to the menu bar."), |
| 72 | ] | 74 | ] |
Sources/OrgEditorAppKit/EditorCommands.swift +1
| @@ -125,6 +125,7 @@ public enum EditorCommands { | |||
| 125 | EditorCommand(id: "app.node.find", title: "Find Node…", action: .app), | 125 | EditorCommand(id: "app.node.find", title: "Find Node…", action: .app), |
| 126 | EditorCommand(id: "app.node.insert", title: "Insert Node Link…", action: .app), | 126 | EditorCommand(id: "app.node.insert", title: "Insert Node Link…", action: .app), |
| 127 | EditorCommand(id: "app.node.graph", title: "Show Node Graph", action: .app), | 127 | EditorCommand(id: "app.node.graph", title: "Show Node Graph", action: .app), |
| 128 | EditorCommand(id: "app.sidebar-agenda", title: "Show Agenda or Files in Sidebar", action: .app), | ||
| 128 | EditorCommand(id: "app.node.rename-from-front-matter", title: "Rename Note from Front Matter", action: .app), | 129 | EditorCommand(id: "app.node.rename-from-front-matter", title: "Rename Note from Front Matter", action: .app), |
| 129 | EditorCommand(id: "app.node.rename", title: "Rename Note…", action: .app), | 130 | EditorCommand(id: "app.node.rename", title: "Rename Note…", action: .app), |
| 130 | EditorCommand(id: "app.node.rename-folder-from-front-matter", title: "Rename Notes in Folder from Front Matter…", action: .app), | 131 | EditorCommand(id: "app.node.rename-folder-from-front-matter", title: "Rename Notes in Folder from Front Matter…", action: .app), |
Sources/Orgstar/AgendaSidebar.swift added +183
| @@ -0,0 +1,183 @@ | |||
| 1 | import OrgApp | ||
| 2 | import OrgCore | ||
| 3 | import OrgPresentation | ||
| 4 | import SwiftUI | ||
| 5 | |||
| 6 | /// The sidebar's agenda: the agenda, or one of the named views, as a narrow list beside the | ||
| 7 | /// editor. A click on an entry shows it in the editor. It follows the Agenda window's span and | ||
| 8 | /// files, and shows Calendar events and Reminders only once the Agenda window has asked for them. | ||
| 9 | struct AgendaSidebar: View { | ||
| 10 | let workspace: WorkspaceModel | ||
| 11 | let session: DocumentSession | ||
| 12 | let commands: AppCommands | ||
| 13 | /// Changes every hour, so that the day rolls over. | ||
| 14 | let hour: Int | ||
| 15 | @Binding var showsAgenda: Bool | ||
| 16 | @State private var agenda: AgendaModel | ||
| 17 | @State private var views = AgendaViewLoader.builtIn | ||
| 18 | @AppStorage("sidebarAgendaView") private var viewName = AgendaViewLoader.builtIn[0].name | ||
| 19 | @AppStorage("agendaSpan") private var span = 10 | ||
| 20 | @AppStorage("agendaStartOffset") private var startOffset = 0 | ||
| 21 | @AppStorage("agendaStartOnWeekday") private var startOnWeekday = "1" | ||
| 22 | @AppStorage("agendaSubfolders") private var includeSubfolders = false | ||
| 23 | @AppStorage("agendaFiles") private var agendaFileList = "" | ||
| 24 | @Environment(\.orgTheme) private var theme | ||
| 25 | @Environment(\.colorScheme) private var colorScheme | ||
| 26 | @Environment(\.openWindow) private var openWindow | ||
| 27 | |||
| 28 | init(workspace: WorkspaceModel, session: DocumentSession, commands: AppCommands, hour: Int, showsAgenda: Binding<Bool>) { | ||
| 29 | self.workspace = workspace | ||
| 30 | self.session = session | ||
| 31 | self.commands = commands | ||
| 32 | self.hour = hour | ||
| 33 | _showsAgenda = showsAgenda | ||
| 34 | _agenda = State(initialValue: AgendaModel(workspace: workspace)) | ||
| 35 | } | ||
| 36 | |||
| 37 | private struct Key: Equatable { | ||
| 38 | var view: String | ||
| 39 | var mode: AgendaMode? | ||
| 40 | var settings: [String] | ||
| 41 | var hidden: Set<String> | ||
| 42 | var files: Int | ||
| 43 | var changed: Int? | ||
| 44 | var edits: Int | ||
| 45 | var hour: Int | ||
| 46 | } | ||
| 47 | |||
| 48 | private var view: AgendaViewDefinition { views.first { $0.name == viewName } ?? AgendaViewLoader.builtIn[0] } | ||
| 49 | |||
| 50 | /// A section of rows under a header: a day, or a list or block's title. | ||
| 51 | private struct Group: Identifiable { | ||
| 52 | let id: String | ||
| 53 | let header: String | ||
| 54 | var isToday = false | ||
| 55 | var rows: [AgendaRow] | ||
| 56 | } | ||
| 57 | |||
| 58 | private var groups: [Group] { | ||
| 59 | func days(_ groups: [AgendaDayGroup], prefix: String) -> [Group] { | ||
| 60 | groups.map { day in | ||
| 61 | // Org pads the day's name with spaces. | ||
| 62 | Group(id: "\(prefix)\(day.day)", header: day.header.split(whereSeparator: \.isWhitespace).joined(separator: " "), | ||
| 63 | isToday: day.isToday, rows: day.overdue + day.rows) | ||
| 64 | } | ||
| 65 | } | ||
| 66 | func list(_ items: [AgendaItem]) -> [AgendaRow] { | ||
| 67 | items.compactMap { AgendaRow(item: $0, day: agenda.today, today: agenda.today) } | ||
| 68 | } | ||
| 69 | switch agenda.mode { | ||
| 70 | case .agenda: | ||
| 71 | return days(agenda.groups(), prefix: "") | ||
| 72 | case .blocks: | ||
| 73 | return agenda.blocks.enumerated().flatMap { index, block in | ||
| 74 | block.isAgenda | ||
| 75 | ? days(agenda.groups(block, showAllDates: false, filter: AgendaFilter()), prefix: "b\(index):") | ||
| 76 | : [Group(id: "b\(index)", header: block.header, rows: list(block.list))] | ||
| 77 | } | ||
| 78 | default: | ||
| 79 | return [Group(id: "list", header: agenda.viewSettings[agenda.mode]?.header ?? agenda.mode.title, rows: list(agenda.list))] | ||
| 80 | } | ||
| 81 | } | ||
| 82 | |||
| 83 | var body: some View { | ||
| 84 | let groups = groups | ||
| 85 | List { | ||
| 86 | if groups.allSatisfy(\.rows.isEmpty) { | ||
| 87 | Text("Nothing scheduled").foregroundStyle(.secondary) | ||
| 88 | } | ||
| 89 | ForEach(groups) { group in | ||
| 90 | if !group.rows.isEmpty { | ||
| 91 | Section { | ||
| 92 | ForEach(Array(group.rows.enumerated()), id: \.offset) { _, row in line(row) } | ||
| 93 | } header: { | ||
| 94 | Text(group.header).foregroundStyle((group.isToday ? theme.color("agenda-today") : theme.color("sidebar-header")) ?? .secondary) | ||
| 95 | } | ||
| 96 | } | ||
| 97 | } | ||
| 98 | } | ||
| 99 | .listStyle(.sidebar) | ||
| 100 | .themedListBackground(theme.color("sidebar-background", in: colorScheme)) | ||
| 101 | .safeAreaInset(edge: .bottom, spacing: 0) { | ||
| 102 | SidebarBar(showsAgenda: $showsAgenda) { | ||
| 103 | Menu { | ||
| 104 | ForEach(views) { view in Button(view.name) { viewName = view.name } } | ||
| 105 | Divider() | ||
| 106 | Button("Open Agenda Window") { openWindow(id: "agenda") } | ||
| 107 | } label: { | ||
| 108 | Text(view.name) | ||
| 109 | } | ||
| 110 | .fixedSize() | ||
| 111 | .help("The agenda view shown here; add views in views.toml") | ||
| 112 | } | ||
| 113 | } | ||
| 114 | .task(id: Key( | ||
| 115 | view: viewName, mode: views.first { $0.name == viewName }?.mode, settings: ["\(span)", "\(startOffset)", startOnWeekday, "\(includeSubfolders)", agendaFileList], | ||
| 116 | hidden: HiddenFolders.shared.all, files: workspace.files.count, changed: workspace.changedFile?.version, edits: session.editVersion, hour: hour | ||
| 117 | )) { await refresh() } | ||
| 118 | } | ||
| 119 | |||
| 120 | @ViewBuilder | ||
| 121 | private func line(_ row: AgendaRow) -> some View { | ||
| 122 | let label = HStack(alignment: .firstTextBaseline, spacing: 6) { | ||
| 123 | if !row.gutter.isEmpty { | ||
| 124 | Text(row.gutter) | ||
| 125 | .font(.caption) | ||
| 126 | .monospacedDigit() | ||
| 127 | .foregroundStyle(theme.dynamic(.secondaryLabelColor) { [theme] in theme.statusColor(row.status, dark: $0) }) | ||
| 128 | .frame(width: 52, alignment: .trailing) | ||
| 129 | .lineLimit(1) | ||
| 130 | .minimumScaleFactor(0.7) | ||
| 131 | } | ||
| 132 | VStack(alignment: .leading, spacing: 1) { | ||
| 133 | HStack(alignment: .firstTextBaseline, spacing: 4) { | ||
| 134 | if let todo = row.todo { | ||
| 135 | Text(todo) | ||
| 136 | .font(.caption.bold()) | ||
| 137 | .foregroundStyle(theme.dynamic(row.isDone ? .systemGreen : .systemRed) { [theme] in theme.todoColor(todo, isDone: row.isDone, dark: $0) }) | ||
| 138 | } | ||
| 139 | Text(row.title.isEmpty ? "(untitled)" : row.title) | ||
| 140 | .lineLimit(2) | ||
| 141 | .strikethrough(row.isDone) | ||
| 142 | .foregroundStyle(row.isDone ? .secondary : theme.color("sidebar-foreground") ?? .primary) | ||
| 143 | } | ||
| 144 | if !row.category.isEmpty { | ||
| 145 | Text(row.category).font(.caption2).foregroundStyle(.secondary).lineLimit(1) | ||
| 146 | } | ||
| 147 | } | ||
| 148 | } | ||
| 149 | .opacity(row.isBlocked ? 0.5 : 1) | ||
| 150 | if let item = row.item, let path = item.path, let offset = item.headingOffset ?? item.markerOffset { | ||
| 151 | Button { | ||
| 152 | commands.jump(path: path, offset: offset) | ||
| 153 | } label: { | ||
| 154 | label.frame(maxWidth: .infinity, alignment: .leading).contentShape(Rectangle()) | ||
| 155 | } | ||
| 156 | .buttonStyle(.plain) | ||
| 157 | .help((path as NSString).lastPathComponent) | ||
| 158 | } else { | ||
| 159 | label | ||
| 160 | } | ||
| 161 | } | ||
| 162 | |||
| 163 | private func refresh() async { | ||
| 164 | let loaded = AgendaViewLoader.load() | ||
| 165 | views = loaded.views | ||
| 166 | agenda.viewSettings = AgendaViewLoader.settings(loaded.views) | ||
| 167 | agenda.mode = view.mode | ||
| 168 | agenda.span = span | ||
| 169 | agenda.startOffset = startOffset | ||
| 170 | agenda.startOnWeekday = Int(startOnWeekday) | ||
| 171 | agenda.includeSubfolders = includeSubfolders | ||
| 172 | agenda.excludeArchives = OrgPreferences.agendaExcludeArchives() | ||
| 173 | agenda.hiddenFolders = HiddenFolders.shared.all | ||
| 174 | agenda.agendaFiles = OrgPreferences.agendaFiles() | ||
| 175 | agenda.options = OrgPreferences.agendaOptions(agenda.options) | ||
| 176 | let pro = ProAccess.shared.isUnlocked | ||
| 177 | agenda.calendarEvents = pro && OrgPreferences.calendarEvents() && CalendarEvents.isAuthorized ? CalendarAccess.events : nil | ||
| 178 | agenda.calendarNames = OrgPreferences.calendarEventCalendars() | ||
| 179 | agenda.reminderLists = pro && OrgPreferences.agendaReminders() && ReminderLists.isAuthorized ? CalendarAccess.reminders : nil | ||
| 180 | agenda.reminderListNames = OrgPreferences.agendaReminderLists() | ||
| 181 | await agenda.refresh(open: session.openTexts) | ||
| 182 | } | ||
| 183 | } | ||
Sources/Orgstar/ContentView.swift +12 −2
| @@ -29,6 +29,8 @@ struct ContentView: View { | |||
| 29 | @State private var statusItem: ClockStatusItem? | 29 | @State private var statusItem: ClockStatusItem? |
| 30 | @AppStorage("globalCapture") private var globalCapture = true | 30 | @AppStorage("globalCapture") private var globalCapture = true |
| 31 | @AppStorage("menuBarItem") private var menuBarItem = false | 31 | @AppStorage("menuBarItem") private var menuBarItem = false |
| 32 | /// The sidebar shows the agenda in place of the files. | ||
| 33 | @AppStorage("sidebarAgenda") private var sidebarAgenda = false | ||
| 32 | /// Today's agenda for the menu bar item. | 34 | /// Today's agenda for the menu bar item. |
| 33 | @State private var menuToday: [AgendaSnapshot.Row] = [] | 35 | @State private var menuToday: [AgendaSnapshot.Row] = [] |
| 34 | @State private var hour = 0 | 36 | @State private var hour = 0 |
| @@ -243,8 +245,14 @@ struct ContentView: View { | |||
| 243 | 245 | ||
| 244 | private var main: some View { | 246 | private var main: some View { |
| 245 | NavigationSplitView { | 247 | NavigationSplitView { |
| 246 | Sidebar(workspace: workspace, session: session, selection: $selectedFile) { commands.showingFolderPicker = true } | 248 | Group { |
| 247 | .navigationSplitViewColumnWidth(min: 200, ideal: 260) | 249 | if sidebarAgenda { |
| 250 | AgendaSidebar(workspace: workspace, session: session, commands: commands, hour: hour, showsAgenda: $sidebarAgenda) | ||
| 251 | } else { | ||
| 252 | Sidebar(workspace: workspace, session: session, selection: $selectedFile, showsAgenda: $sidebarAgenda) { commands.showingFolderPicker = true } | ||
| 253 | } | ||
| 254 | } | ||
| 255 | .navigationSplitViewColumnWidth(min: 200, ideal: 260) | ||
| 248 | } detail: { | 256 | } detail: { |
| 249 | HStack(spacing: 0) { | 257 | HStack(spacing: 0) { |
| 250 | if outlineShown { | 258 | if outlineShown { |
| @@ -1409,6 +1417,8 @@ struct ContentView: View { | |||
| 1409 | openWindow(id: "board") | 1417 | openWindow(id: "board") |
| 1410 | case "app.node.graph": | 1418 | case "app.node.graph": |
| 1411 | openWindow(id: "graph") | 1419 | openWindow(id: "graph") |
| 1420 | case "app.sidebar-agenda": | ||
| 1421 | sidebarAgenda.toggle() | ||
| 1412 | case "app.capture": | 1422 | case "app.capture": |
| 1413 | NSApp.activate() | 1423 | NSApp.activate() |
| 1414 | openWindow(id: "capture") | 1424 | openWindow(id: "capture") |
Sources/Orgstar/Sidebar.swift +37 −6
| @@ -8,6 +8,8 @@ struct Sidebar: View { | |||
| 8 | let workspace: WorkspaceModel | 8 | let workspace: WorkspaceModel |
| 9 | let session: DocumentSession | 9 | let session: DocumentSession |
| 10 | @Binding var selection: String? | 10 | @Binding var selection: String? |
| 11 | /// The sidebar shows the agenda in place of the files. | ||
| 12 | @Binding var showsAgenda: Bool | ||
| 11 | var addFolder: () -> Void = {} | 13 | var addFolder: () -> Void = {} |
| 12 | /// Folders shown collapsed, by path, one per line. | 14 | /// Folders shown collapsed, by path, one per line. |
| 13 | @AppStorage("collapsedFolders") private var collapsedText = "" | 15 | @AppStorage("collapsedFolders") private var collapsedText = "" |
| @@ -74,7 +76,7 @@ struct Sidebar: View { | |||
| 74 | .listStyle(.sidebar) | 76 | .listStyle(.sidebar) |
| 75 | .themedListBackground(theme.color("sidebar-background", in: colorScheme)) | 77 | .themedListBackground(theme.color("sidebar-background", in: colorScheme)) |
| 76 | .safeAreaInset(edge: .bottom, spacing: 0) { | 78 | .safeAreaInset(edge: .bottom, spacing: 0) { |
| 77 | HStack(spacing: 4) { | 79 | SidebarBar(showsAgenda: $showsAgenda) { |
| 78 | Button("Add Folder…", systemImage: "plus", action: addFolder) | 80 | Button("Add Folder…", systemImage: "plus", action: addFolder) |
| 79 | .help("Add a folder (⇧⌘O)") | 81 | .help("Add a folder (⇧⌘O)") |
| 80 | Menu { | 82 | Menu { |
| @@ -88,13 +90,8 @@ struct Sidebar: View { | |||
| 88 | .fixedSize() | 90 | .fixedSize() |
| 89 | .disabled(workspace.rootPaths.isEmpty) | 91 | .disabled(workspace.rootPaths.isEmpty) |
| 90 | .help("Remove a folder from the sidebar") | 92 | .help("Remove a folder from the sidebar") |
| 91 | Spacer() | ||
| 92 | } | 93 | } |
| 93 | .labelStyle(.iconOnly) | 94 | .labelStyle(.iconOnly) |
| 94 | .buttonStyle(.borderless) | ||
| 95 | .menuStyle(.borderlessButton) | ||
| 96 | .padding(.horizontal, 10) | ||
| 97 | .padding(.vertical, 6) | ||
| 98 | } | 95 | } |
| 99 | .confirmationDialog( | 96 | .confirmationDialog( |
| 100 | "Remove “\(removing.map { ($0 as NSString).lastPathComponent } ?? "")” from the sidebar?", | 97 | "Remove “\(removing.map { ($0 as NSString).lastPathComponent } ?? "")” from the sidebar?", |
| @@ -139,6 +136,40 @@ struct Sidebar: View { | |||
| 139 | } | 136 | } |
| 140 | } | 137 | } |
| 141 | 138 | ||
| 139 | /// The bar under the sidebar: what the shown side offers, then the button that switches between | ||
| 140 | /// the files and the agenda. | ||
| 141 | struct SidebarBar<Content: View>: View { | ||
| 142 | @Binding var showsAgenda: Bool | ||
| 143 | @ViewBuilder var content: Content | ||
| 144 | @Environment(\.orgTheme) private var theme | ||
| 145 | @Environment(\.colorScheme) private var colorScheme | ||
| 146 | |||
| 147 | var body: some View { | ||
| 148 | HStack(spacing: 6) { | ||
| 149 | content | ||
| 150 | Spacer() | ||
| 151 | Button(showsAgenda ? "Show Files" : "Show Agenda", systemImage: showsAgenda ? "folder" : "calendar") { showsAgenda.toggle() } | ||
| 152 | .labelStyle(.iconOnly) | ||
| 153 | .help(showsAgenda ? "Show the files" : "Show the agenda") | ||
| 154 | } | ||
| 155 | .buttonStyle(.borderless) | ||
| 156 | .menuStyle(.borderlessButton) | ||
| 157 | .font(.system(size: 14, weight: .medium)) | ||
| 158 | .foregroundStyle(theme.color("sidebar-foreground") ?? .primary) | ||
| 159 | .padding(.horizontal, 10) | ||
| 160 | .padding(.vertical, 7) | ||
| 161 | // Solid, so the rows scrolling under the bar don't show through its buttons. | ||
| 162 | .background { | ||
| 163 | if let color = theme.color("sidebar-background", in: colorScheme) { | ||
| 164 | color | ||
| 165 | } else { | ||
| 166 | Rectangle().fill(.ultraThickMaterial) | ||
| 167 | } | ||
| 168 | } | ||
| 169 | .overlay(alignment: .top) { Divider() } | ||
| 170 | } | ||
| 171 | } | ||
| 172 | |||
| 142 | struct OutlineColumn: View { | 173 | struct OutlineColumn: View { |
| 143 | let session: DocumentSession | 174 | let session: DocumentSession |
| 144 | @Environment(\.orgTheme) private var theme | 175 | @Environment(\.orgTheme) private var theme |
docs/manual/guide/01-files-and-folders.org +1 −1
| @@ -36,7 +36,7 @@ Several commands in this chapter are only in the palette, not in a menu: Close O | |||
| 36 | | View ▸ Show or Hide Columns and Clock | =⌥⌘I= | Show or Hide Columns and Clock | | 36 | | View ▸ Show or Hide Columns and Clock | =⌥⌘I= | Show or Hide Columns and Clock | |
| 37 | | View ▸ Show Tab Bar | | Show or Hide Tab Bar | | 37 | | View ▸ Show Tab Bar | | Show or Hide Tab Bar | |
| 38 | 38 | ||
| 39 | The toolbar's outline button does the same as View ▸ Show or Hide Outline. The sidebar is shown and hidden with the standard View menu command. | 39 | The toolbar's outline button does the same as View ▸ Show or Hide Outline. The sidebar is shown and hidden with the standard View menu command. The button at the right of the bar under it switches it between the files and an agenda; see [[file:07-agenda.org][The agenda]]. |
| 40 | 40 | ||
| 41 | orgstar remembers whether the outline, backlinks and inspector are shown. The outline pane's visibility is remembered for org files only: for other files it starts hidden each time you open one. Drag the divider on the outline pane's right edge to resize it (160 to 400 points; 220 by default). | 41 | orgstar remembers whether the outline, backlinks and inspector are shown. The outline pane's visibility is remembered for org files only: for other files it starts hidden each time you open one. Drag the divider on the outline pane's right edge to resize it (160 to 400 points; 220 by default). |
| 42 | 42 | ||
docs/manual/guide/03-keys.org +1
| @@ -1104,6 +1104,7 @@ No preset binds these. Run them from the palette or a menu, or bind them in =key | |||
| 1104 | | Command | What it does | | 1104 | | Command | What it does | |
| 1105 | |-+-| | 1105 | |-+-| |
| 1106 | | Board (=app.board=) | Opens the Board window. Window ▸ Board, =⇧⌘B=. | | 1106 | | Board (=app.board=) | Opens the Board window. Window ▸ Board, =⇧⌘B=. | |
| 1107 | | Show Agenda or Files in Sidebar (=app.sidebar-agenda=) | Switches the sidebar between the files and the agenda, as the button at the right of its bar does. | | ||
| 1107 | | Verbatim, Code, Strike-Through (=org.emphasize.verbatim=, =org.emphasize.code=, =org.emphasize.strike-through=) | =org-emphasize= with ===, =~= or =+=. | | 1108 | | Verbatim, Code, Strike-Through (=org.emphasize.verbatim=, =org.emphasize.code=, =org.emphasize.strike-through=) | =org-emphasize= with ===, =~= or =+=. | |
| 1108 | | Cancel Running Task (=app.babel.cancel=) | Stops the src block that is running, or an export or table recalculation running in Emacs. Edit ▸ Cancel Running Task, =⌘.=. | | 1109 | | Cancel Running Task (=app.babel.cancel=) | Stops the src block that is running, or an export or table recalculation running in Emacs. Edit ▸ Cancel Running Task, =⌘.=. | |
| 1109 | | Edit Config File (=app.edit-config=) | Opens =config.toml= in the editor. =⌥⌘,=. | | 1110 | | Edit Config File (=app.edit-config=) | Opens =config.toml= in the editor. =⌥⌘,=. | |
docs/manual/guide/07-agenda.org +8
| @@ -467,6 +467,14 @@ The search covers the agenda files only, not =org-agenda-text-search-extra-files | |||
| 467 | 467 | ||
| 468 | The view menu lists the built-in views, Agenda, TODO List and Stuck Projects, then the views in =views.toml=, then Match…, TODO Match…, Search… and TODO Search…. Saved views mirror =org-agenda-custom-commands=, with fewer options. | 468 | The view menu lists the built-in views, Agenda, TODO List and Stuck Projects, then the views in =views.toml=, then Match…, TODO Match…, Search… and TODO Search…. Saved views mirror =org-agenda-custom-commands=, with fewer options. |
| 469 | 469 | ||
| 470 | *In the sidebar.* On the Mac, the calendar button at the right of the bar under the main window's sidebar shows an agenda in place of the files, beside the editor; the same button, then a folder, brings the files back, and Show Agenda or Files in Sidebar (=app.sidebar-agenda=) switches between them. | ||
| 471 | |||
| 472 | - The menu at the left of the bar, where the files have their =+= and =−=, lists the built-in views and those in =views.toml=, and Open Agenda Window. The view chosen is remembered. | ||
| 473 | - Days with entries are listed with their entries, today's overdue ones first; a list view or a block shows under its title. Each line has the time or status, the TODO keyword, the title and the category. | ||
| 474 | - A click on an entry shows it in the editor. | ||
| 475 | - It uses the Agenda window's span, start, folders and agenda files. Calendar events and Reminders show once the Agenda window has been given access to them. | ||
| 476 | - It has no filters, bulk actions or keys of its own; those are in the Agenda window. | ||
| 477 | |||
| 470 | =views.toml= lives in the configuration folder beside =config.toml= (=~/.config/orgstar/= by default; see [[file:13-configuration.org][Configuration]]). Each view is a =[[view]]= table: | 478 | =views.toml= lives in the configuration folder beside =config.toml= (=~/.config/orgstar/= by default; see [[file:13-configuration.org][Configuration]]). Each view is a =[[view]]= table: |
| 471 | 479 | ||
| 472 | #+BEGIN_SRC toml | 480 | #+BEGIN_SRC toml |
l10n/Localizable.xcstrings +306
| @@ -2972,6 +2972,40 @@ | |||
| 2972 | } | 2972 | } |
| 2973 | } | 2973 | } |
| 2974 | }, | 2974 | }, |
| 2975 | "Agenda in the sidebar": { | ||
| 2976 | "localizations": { | ||
| 2977 | "de": { | ||
| 2978 | "stringUnit": { | ||
| 2979 | "state": "translated", | ||
| 2980 | "value": "Agenda in der Seitenleiste" | ||
| 2981 | } | ||
| 2982 | }, | ||
| 2983 | "es": { | ||
| 2984 | "stringUnit": { | ||
| 2985 | "state": "translated", | ||
| 2986 | "value": "Agenda en la barra lateral" | ||
| 2987 | } | ||
| 2988 | }, | ||
| 2989 | "fr": { | ||
| 2990 | "stringUnit": { | ||
| 2991 | "state": "translated", | ||
| 2992 | "value": "L'agenda dans la barre latérale" | ||
| 2993 | } | ||
| 2994 | }, | ||
| 2995 | "ja": { | ||
| 2996 | "stringUnit": { | ||
| 2997 | "state": "translated", | ||
| 2998 | "value": "サイドバーのアジェンダ" | ||
| 2999 | } | ||
| 3000 | }, | ||
| 3001 | "pt-BR": { | ||
| 3002 | "stringUnit": { | ||
| 3003 | "state": "translated", | ||
| 3004 | "value": "Agenda na barra lateral" | ||
| 3005 | } | ||
| 3006 | } | ||
| 3007 | } | ||
| 3008 | }, | ||
| 2975 | "Agenda shows %lld days": { | 3009 | "Agenda shows %lld days": { |
| 2976 | "localizations": { | 3010 | "localizations": { |
| 2977 | "de": { | 3011 | "de": { |
| @@ -22055,6 +22089,40 @@ | |||
| 22055 | } | 22089 | } |
| 22056 | } | 22090 | } |
| 22057 | }, | 22091 | }, |
| 22092 | "Open Agenda Window": { | ||
| 22093 | "localizations": { | ||
| 22094 | "de": { | ||
| 22095 | "stringUnit": { | ||
| 22096 | "state": "translated", | ||
| 22097 | "value": "Agenda-Fenster öffnen" | ||
| 22098 | } | ||
| 22099 | }, | ||
| 22100 | "es": { | ||
| 22101 | "stringUnit": { | ||
| 22102 | "state": "translated", | ||
| 22103 | "value": "Abrir ventana de agenda" | ||
| 22104 | } | ||
| 22105 | }, | ||
| 22106 | "fr": { | ||
| 22107 | "stringUnit": { | ||
| 22108 | "state": "translated", | ||
| 22109 | "value": "Ouvrir la fenêtre de l'agenda" | ||
| 22110 | } | ||
| 22111 | }, | ||
| 22112 | "ja": { | ||
| 22113 | "stringUnit": { | ||
| 22114 | "state": "translated", | ||
| 22115 | "value": "アジェンダウインドウを開く" | ||
| 22116 | } | ||
| 22117 | }, | ||
| 22118 | "pt-BR": { | ||
| 22119 | "stringUnit": { | ||
| 22120 | "state": "translated", | ||
| 22121 | "value": "Abrir Janela da Agenda" | ||
| 22122 | } | ||
| 22123 | } | ||
| 22124 | } | ||
| 22125 | }, | ||
| 22058 | "Open Attachment…": { | 22126 | "Open Attachment…": { |
| 22059 | "comment": "Command title", | 22127 | "comment": "Command title", |
| 22060 | "localizations": { | 22128 | "localizations": { |
| @@ -28358,6 +28426,74 @@ | |||
| 28358 | } | 28426 | } |
| 28359 | } | 28427 | } |
| 28360 | }, | 28428 | }, |
| 28429 | "Show Agenda": { | ||
| 28430 | "localizations": { | ||
| 28431 | "de": { | ||
| 28432 | "stringUnit": { | ||
| 28433 | "state": "translated", | ||
| 28434 | "value": "Agenda anzeigen" | ||
| 28435 | } | ||
| 28436 | }, | ||
| 28437 | "es": { | ||
| 28438 | "stringUnit": { | ||
| 28439 | "state": "translated", | ||
| 28440 | "value": "Mostrar agenda" | ||
| 28441 | } | ||
| 28442 | }, | ||
| 28443 | "fr": { | ||
| 28444 | "stringUnit": { | ||
| 28445 | "state": "translated", | ||
| 28446 | "value": "Afficher l'agenda" | ||
| 28447 | } | ||
| 28448 | }, | ||
| 28449 | "ja": { | ||
| 28450 | "stringUnit": { | ||
| 28451 | "state": "translated", | ||
| 28452 | "value": "アジェンダを表示" | ||
| 28453 | } | ||
| 28454 | }, | ||
| 28455 | "pt-BR": { | ||
| 28456 | "stringUnit": { | ||
| 28457 | "state": "translated", | ||
| 28458 | "value": "Mostrar Agenda" | ||
| 28459 | } | ||
| 28460 | } | ||
| 28461 | } | ||
| 28462 | }, | ||
| 28463 | "Show Agenda or Files in Sidebar": { | ||
| 28464 | "localizations": { | ||
| 28465 | "de": { | ||
| 28466 | "stringUnit": { | ||
| 28467 | "state": "translated", | ||
| 28468 | "value": "Agenda oder Dateien in der Seitenleiste anzeigen" | ||
| 28469 | } | ||
| 28470 | }, | ||
| 28471 | "es": { | ||
| 28472 | "stringUnit": { | ||
| 28473 | "state": "translated", | ||
| 28474 | "value": "Mostrar agenda o archivos en la barra lateral" | ||
| 28475 | } | ||
| 28476 | }, | ||
| 28477 | "fr": { | ||
| 28478 | "stringUnit": { | ||
| 28479 | "state": "translated", | ||
| 28480 | "value": "Afficher l'agenda ou les fichiers dans la barre latérale" | ||
| 28481 | } | ||
| 28482 | }, | ||
| 28483 | "ja": { | ||
| 28484 | "stringUnit": { | ||
| 28485 | "state": "translated", | ||
| 28486 | "value": "サイドバーにアジェンダまたはファイルを表示" | ||
| 28487 | } | ||
| 28488 | }, | ||
| 28489 | "pt-BR": { | ||
| 28490 | "stringUnit": { | ||
| 28491 | "state": "translated", | ||
| 28492 | "value": "Mostrar Agenda ou Arquivos na Barra Lateral" | ||
| 28493 | } | ||
| 28494 | } | ||
| 28495 | } | ||
| 28496 | }, | ||
| 28361 | "Show Attachment Folder": { | 28497 | "Show Attachment Folder": { |
| 28362 | "comment": "Command title", | 28498 | "comment": "Command title", |
| 28363 | "localizations": { | 28499 | "localizations": { |
| @@ -28496,6 +28632,40 @@ | |||
| 28496 | } | 28632 | } |
| 28497 | } | 28633 | } |
| 28498 | }, | 28634 | }, |
| 28635 | "Show Files": { | ||
| 28636 | "localizations": { | ||
| 28637 | "de": { | ||
| 28638 | "stringUnit": { | ||
| 28639 | "state": "translated", | ||
| 28640 | "value": "Dateien anzeigen" | ||
| 28641 | } | ||
| 28642 | }, | ||
| 28643 | "es": { | ||
| 28644 | "stringUnit": { | ||
| 28645 | "state": "translated", | ||
| 28646 | "value": "Mostrar archivos" | ||
| 28647 | } | ||
| 28648 | }, | ||
| 28649 | "fr": { | ||
| 28650 | "stringUnit": { | ||
| 28651 | "state": "translated", | ||
| 28652 | "value": "Afficher les fichiers" | ||
| 28653 | } | ||
| 28654 | }, | ||
| 28655 | "ja": { | ||
| 28656 | "stringUnit": { | ||
| 28657 | "state": "translated", | ||
| 28658 | "value": "ファイルを表示" | ||
| 28659 | } | ||
| 28660 | }, | ||
| 28661 | "pt-BR": { | ||
| 28662 | "stringUnit": { | ||
| 28663 | "state": "translated", | ||
| 28664 | "value": "Mostrar Arquivos" | ||
| 28665 | } | ||
| 28666 | } | ||
| 28667 | } | ||
| 28668 | }, | ||
| 28499 | "Show Line Numbers": { | 28669 | "Show Line Numbers": { |
| 28500 | "localizations": { | 28670 | "localizations": { |
| 28501 | "de": { | 28671 | "de": { |
| @@ -29559,6 +29729,74 @@ | |||
| 29559 | } | 29729 | } |
| 29560 | } | 29730 | } |
| 29561 | }, | 29731 | }, |
| 29732 | "Show the agenda": { | ||
| 29733 | "localizations": { | ||
| 29734 | "de": { | ||
| 29735 | "stringUnit": { | ||
| 29736 | "state": "translated", | ||
| 29737 | "value": "Agenda anzeigen" | ||
| 29738 | } | ||
| 29739 | }, | ||
| 29740 | "es": { | ||
| 29741 | "stringUnit": { | ||
| 29742 | "state": "translated", | ||
| 29743 | "value": "Mostrar la agenda" | ||
| 29744 | } | ||
| 29745 | }, | ||
| 29746 | "fr": { | ||
| 29747 | "stringUnit": { | ||
| 29748 | "state": "translated", | ||
| 29749 | "value": "Afficher l'agenda" | ||
| 29750 | } | ||
| 29751 | }, | ||
| 29752 | "ja": { | ||
| 29753 | "stringUnit": { | ||
| 29754 | "state": "translated", | ||
| 29755 | "value": "アジェンダを表示" | ||
| 29756 | } | ||
| 29757 | }, | ||
| 29758 | "pt-BR": { | ||
| 29759 | "stringUnit": { | ||
| 29760 | "state": "translated", | ||
| 29761 | "value": "Mostrar a agenda" | ||
| 29762 | } | ||
| 29763 | } | ||
| 29764 | } | ||
| 29765 | }, | ||
| 29766 | "Show the files": { | ||
| 29767 | "localizations": { | ||
| 29768 | "de": { | ||
| 29769 | "stringUnit": { | ||
| 29770 | "state": "translated", | ||
| 29771 | "value": "Dateien anzeigen" | ||
| 29772 | } | ||
| 29773 | }, | ||
| 29774 | "es": { | ||
| 29775 | "stringUnit": { | ||
| 29776 | "state": "translated", | ||
| 29777 | "value": "Mostrar los archivos" | ||
| 29778 | } | ||
| 29779 | }, | ||
| 29780 | "fr": { | ||
| 29781 | "stringUnit": { | ||
| 29782 | "state": "translated", | ||
| 29783 | "value": "Afficher les fichiers" | ||
| 29784 | } | ||
| 29785 | }, | ||
| 29786 | "ja": { | ||
| 29787 | "stringUnit": { | ||
| 29788 | "state": "translated", | ||
| 29789 | "value": "ファイルを表示" | ||
| 29790 | } | ||
| 29791 | }, | ||
| 29792 | "pt-BR": { | ||
| 29793 | "stringUnit": { | ||
| 29794 | "state": "translated", | ||
| 29795 | "value": "Mostrar os arquivos" | ||
| 29796 | } | ||
| 29797 | } | ||
| 29798 | } | ||
| 29799 | }, | ||
| 29562 | "Show the outline (⌥⌘O)": { | 29800 | "Show the outline (⌥⌘O)": { |
| 29563 | "localizations": { | 29801 | "localizations": { |
| 29564 | "de": { | 29802 | "de": { |
| @@ -31934,6 +32172,74 @@ | |||
| 31934 | } | 32172 | } |
| 31935 | } | 32173 | } |
| 31936 | }, | 32174 | }, |
| 32175 | "The agenda view shown here; add views in views.toml": { | ||
| 32176 | "localizations": { | ||
| 32177 | "de": { | ||
| 32178 | "stringUnit": { | ||
| 32179 | "state": "translated", | ||
| 32180 | "value": "Die hier gezeigte Agenda-Ansicht; Ansichten in views.toml hinzufügen" | ||
| 32181 | } | ||
| 32182 | }, | ||
| 32183 | "es": { | ||
| 32184 | "stringUnit": { | ||
| 32185 | "state": "translated", | ||
| 32186 | "value": "La vista de agenda que se muestra aquí; añade vistas en views.toml" | ||
| 32187 | } | ||
| 32188 | }, | ||
| 32189 | "fr": { | ||
| 32190 | "stringUnit": { | ||
| 32191 | "state": "translated", | ||
| 32192 | "value": "La vue d'agenda affichée ici ; ajoutez des vues dans views.toml" | ||
| 32193 | } | ||
| 32194 | }, | ||
| 32195 | "ja": { | ||
| 32196 | "stringUnit": { | ||
| 32197 | "state": "translated", | ||
| 32198 | "value": "ここに表示するアジェンダビュー。ビューはviews.tomlで追加します" | ||
| 32199 | } | ||
| 32200 | }, | ||
| 32201 | "pt-BR": { | ||
| 32202 | "stringUnit": { | ||
| 32203 | "state": "translated", | ||
| 32204 | "value": "A visualização da agenda mostrada aqui; adicione visualizações em views.toml" | ||
| 32205 | } | ||
| 32206 | } | ||
| 32207 | } | ||
| 32208 | }, | ||
| 32209 | "The calendar button under the sidebar shows your agenda, or a view from views.toml, beside the editor.": { | ||
| 32210 | "localizations": { | ||
| 32211 | "de": { | ||
| 32212 | "stringUnit": { | ||
| 32213 | "state": "translated", | ||
| 32214 | "value": "Die Kalendertaste unter der Seitenleiste zeigt deine Agenda oder eine Ansicht aus views.toml neben dem Editor." | ||
| 32215 | } | ||
| 32216 | }, | ||
| 32217 | "es": { | ||
| 32218 | "stringUnit": { | ||
| 32219 | "state": "translated", | ||
| 32220 | "value": "El botón de calendario bajo la barra lateral muestra tu agenda, o una vista de views.toml, junto al editor." | ||
| 32221 | } | ||
| 32222 | }, | ||
| 32223 | "fr": { | ||
| 32224 | "stringUnit": { | ||
| 32225 | "state": "translated", | ||
| 32226 | "value": "Le bouton calendrier sous la barre latérale affiche votre agenda, ou une vue de views.toml, à côté de l'éditeur." | ||
| 32227 | } | ||
| 32228 | }, | ||
| 32229 | "ja": { | ||
| 32230 | "stringUnit": { | ||
| 32231 | "state": "translated", | ||
| 32232 | "value": "サイドバー下のカレンダーボタンで、アジェンダまたはviews.tomlのビューをエディタの横に表示します。" | ||
| 32233 | } | ||
| 32234 | }, | ||
| 32235 | "pt-BR": { | ||
| 32236 | "stringUnit": { | ||
| 32237 | "state": "translated", | ||
| 32238 | "value": "O botão de calendário sob a barra lateral mostra sua agenda, ou uma visualização do views.toml, ao lado do editor." | ||
| 32239 | } | ||
| 32240 | } | ||
| 32241 | } | ||
| 32242 | }, | ||
| 31937 | "The empty folder is removed from disk and from orgstar.": { | 32243 | "The empty folder is removed from disk and from orgstar.": { |
| 31938 | "localizations": { | 32244 | "localizations": { |
| 31939 | "de": { | 32245 | "de": { |