From adbbc45a5667a00e0f1a7c6fc7c9558454500041 Mon Sep 17 00:00:00 2001 From: Dasemu Date: Mon, 26 Oct 2026 02:43:34 +0100 Subject: [PATCH] chore: rebrand remaining Logseq references to Synapse Describe Synapse's own Markdown dialect, export format and editor behaviour as Synapse's, rename Logseq-named history test identifiers, and set the app label/window titles to Synapse. The importer keeps its Logseq naming. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 2 +- app/android/app/src/main/AndroidManifest.xml | 2 +- app/lib/src/editor/markdown.dart | 2 +- app/lib/src/rust/api/graph.dart | 2 +- app/lib/src/rust/frb_generated.dart | 2 +- app/linux/runner/my_application.cc | 4 ++-- app/pubspec.yaml | 2 +- app/test/editor_keys_test.dart | 2 +- app/windows/runner/Runner.rc | 6 +++--- app/windows/runner/main.cpp | 2 +- crates/synapse-ai/src/features.rs | 2 +- crates/synapse-caldav/src/mapping.rs | 2 +- crates/synapse-core/src/model.rs | 4 ++-- crates/synapse-core/src/parse.rs | 2 +- crates/synapse-ffi/src/api/outline.rs | 2 +- crates/synapse-ffi/tests/api.rs | 2 +- crates/synapse-history/src/export.rs | 4 ++-- crates/synapse-history/src/parse.rs | 4 ++-- crates/synapse-history/tests/history.rs | 2 +- docs/README.md | 2 +- docs/app.md | 2 +- docs/caldav.md | 2 +- docs/history.md | 4 ++-- docs/plan.md | 2 +- 24 files changed, 31 insertions(+), 31 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 4448420..29f36e6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,7 +1,7 @@ # Synapse ## Overview -Native "second brain" notes app (Logseq-like outliner with linked pages and journals) for +Native "second brain" notes app (outliner with linked pages and journals, in the vein of Logseq) for Android, Linux and Windows. Rust core shared by a Flutter client (via flutter_rust_bridge) and an optional self-hosted sync server. Local-only (standalone graph) or client-server (online graph). No webviews. diff --git a/app/android/app/src/main/AndroidManifest.xml b/app/android/app/src/main/AndroidManifest.xml index 7620421..c6f4da5 100644 --- a/app/android/app/src/main/AndroidManifest.xml +++ b/app/android/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ openPage({required String title}); /// Shift-Tab: the block moves right after its parent, adopting its following siblings as - /// children so it keeps its visual place (Logseq's default outdenting). + /// children so it keeps its visual place (direct outdenting). Future> outdentBlock({required String id}); /// Current outline of a page. diff --git a/app/lib/src/rust/frb_generated.dart b/app/lib/src/rust/frb_generated.dart index 879f8bb..cd045f5 100644 --- a/app/lib/src/rust/frb_generated.dart +++ b/app/lib/src/rust/frb_generated.dart @@ -5341,7 +5341,7 @@ class SynapseGraphImpl extends RustOpaque implements SynapseGraph { .crateApiGraphSynapseGraphOpenPage(that: this, title: title); /// Shift-Tab: the block moves right after its parent, adopting its following siblings as - /// children so it keeps its visual place (Logseq's default outdenting). + /// children so it keeps its visual place (direct outdenting). Future> outdentBlock({required String id}) => RustLib .instance .api diff --git a/app/linux/runner/my_application.cc b/app/linux/runner/my_application.cc index 14e4465..c9d6bf3 100644 --- a/app/linux/runner/my_application.cc +++ b/app/linux/runner/my_application.cc @@ -45,11 +45,11 @@ static void my_application_activate(GApplication* application) { if (use_header_bar) { GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); gtk_widget_show(GTK_WIDGET(header_bar)); - gtk_header_bar_set_title(header_bar, "synapse"); + gtk_header_bar_set_title(header_bar, "Synapse"); gtk_header_bar_set_show_close_button(header_bar, TRUE); gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); } else { - gtk_window_set_title(window, "synapse"); + gtk_window_set_title(window, "Synapse"); } gtk_window_set_default_size(window, 1280, 720); diff --git a/app/pubspec.yaml b/app/pubspec.yaml index 3b9f991..5c730fc 100644 --- a/app/pubspec.yaml +++ b/app/pubspec.yaml @@ -1,5 +1,5 @@ name: synapse -description: "Synapse: a native, Logseq-like second brain." +description: "Synapse: a native second brain: outliner notes with linked pages and journals." publish_to: 'none' version: 0.1.0+1 diff --git a/app/test/editor_keys_test.dart b/app/test/editor_keys_test.dart index 9733459..a7cab08 100644 --- a/app/test/editor_keys_test.dart +++ b/app/test/editor_keys_test.dart @@ -169,7 +169,7 @@ void main() { await tester.pump(); expect(h.local, [(0, 'a'), (1, 'b'), (1, 'c')]); - // Outdenting `b` adopts `c` (Logseq's direct outdenting). + // Outdenting `b` adopts `c` (direct outdenting). await edit(tester, h, 'b'); await withShift(tester, LogicalKeyboardKey.tab); expect(h.local, [(0, 'a'), (0, 'b'), (1, 'c')]); diff --git a/app/windows/runner/Runner.rc b/app/windows/runner/Runner.rc index 55bf5c5..e5c83a6 100644 --- a/app/windows/runner/Runner.rc +++ b/app/windows/runner/Runner.rc @@ -90,12 +90,12 @@ BEGIN BLOCK "040904e4" BEGIN VALUE "CompanyName", "dasemu" "\0" - VALUE "FileDescription", "synapse" "\0" + VALUE "FileDescription", "Synapse" "\0" VALUE "FileVersion", VERSION_AS_STRING "\0" - VALUE "InternalName", "synapse" "\0" + VALUE "InternalName", "Synapse" "\0" VALUE "LegalCopyright", "Copyright (C) 2026 dasemu. All rights reserved." "\0" VALUE "OriginalFilename", "synapse.exe" "\0" - VALUE "ProductName", "synapse" "\0" + VALUE "ProductName", "Synapse" "\0" VALUE "ProductVersion", VERSION_AS_STRING "\0" END END diff --git a/app/windows/runner/main.cpp b/app/windows/runner/main.cpp index 495ae6d..9717b50 100644 --- a/app/windows/runner/main.cpp +++ b/app/windows/runner/main.cpp @@ -27,7 +27,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, FlutterWindow window(project); Win32Window::Point origin(10, 10); Win32Window::Size size(1280, 720); - if (!window.Create(L"synapse", origin, size)) { + if (!window.Create(L"Synapse", origin, size)) { return EXIT_FAILURE; } window.SetQuitOnClose(true); diff --git a/crates/synapse-ai/src/features.rs b/crates/synapse-ai/src/features.rs index 90833a5..c546f09 100644 --- a/crates/synapse-ai/src/features.rs +++ b/crates/synapse-ai/src/features.rs @@ -366,7 +366,7 @@ pub struct TaskSuggestion { } impl TaskSuggestion { - /// Logseq block content: `TODO [#A] text` plus a `DEADLINE:` line when there is a due date. + /// Synapse block content: `TODO [#A] text` plus a `DEADLINE:` line when there is a due date. pub fn to_block_content(&self) -> String { let mut s = String::from("TODO "); if let Some(p) = self.priority { diff --git a/crates/synapse-caldav/src/mapping.rs b/crates/synapse-caldav/src/mapping.rs index 6ee1709..ebaeb57 100644 --- a/crates/synapse-caldav/src/mapping.rs +++ b/crates/synapse-caldav/src/mapping.rs @@ -1,4 +1,4 @@ -//! Logseq task syntax <-> VTODO fields. +//! Synapse task syntax <-> VTODO fields. //! //! ```text //! TODO [#A] Pay rent diff --git a/crates/synapse-core/src/model.rs b/crates/synapse-core/src/model.rs index f37af4e..468218f 100644 --- a/crates/synapse-core/src/model.rs +++ b/crates/synapse-core/src/model.rs @@ -4,7 +4,7 @@ use uuid::Uuid; pub type PageId = Uuid; pub type BlockId = Uuid; -/// Free-form properties (`key:: value` in Logseq). +/// Free-form properties (`key:: value` in block Markdown). pub type Properties = serde_json::Map; pub fn new_id() -> Uuid { @@ -97,7 +97,7 @@ pub struct Block { pub parent_id: Option, /// Fractional index among siblings (see [`crate::position`]). pub position: String, - /// Logseq-flavoured Markdown (rich text source of truth). + /// Synapse outline Markdown (rich text source of truth). pub content: String, pub properties: Properties, pub collapsed: bool, diff --git a/crates/synapse-core/src/parse.rs b/crates/synapse-core/src/parse.rs index adf3226..bacf694 100644 --- a/crates/synapse-core/src/parse.rs +++ b/crates/synapse-core/src/parse.rs @@ -1,4 +1,4 @@ -//! Extracts references from Logseq-flavoured Markdown block content. +//! Extracts references from Synapse outline Markdown block content. use crate::model::RefKind; use uuid::Uuid; diff --git a/crates/synapse-ffi/src/api/outline.rs b/crates/synapse-ffi/src/api/outline.rs index 8a1ada5..d3b2c07 100644 --- a/crates/synapse-ffi/src/api/outline.rs +++ b/crates/synapse-ffi/src/api/outline.rs @@ -67,7 +67,7 @@ impl SynapseGraph { } /// Shift-Tab: the block moves right after its parent, adopting its following siblings as - /// children so it keeps its visual place (Logseq's default outdenting). + /// children so it keeps its visual place (direct outdenting). pub fn outdent_block(&self, id: String) -> Result> { let g = self.lock(); let b = get(&g, parse_id(&id)?)?; diff --git a/crates/synapse-ffi/tests/api.rs b/crates/synapse-ffi/tests/api.rs index 8423889..72fff89 100644 --- a/crates/synapse-ffi/tests/api.rs +++ b/crates/synapse-ffi/tests/api.rs @@ -45,7 +45,7 @@ fn indent_and_outdent_keep_visual_order() { assert_eq!(shape(&rows), vec![(0, "a"), (1, "b"), (1, "c"), (1, "d")]); assert!(rows[0].has_children); - // Outdenting `c` adopts `d` as its child (Logseq's direct outdenting). + // Outdenting `c` adopts `d` as its child (direct outdenting). let rows = g.outdent_block(ids[2].clone()).unwrap(); assert_eq!(shape(&rows), vec![(0, "a"), (1, "b"), (0, "c"), (1, "d")]); diff --git a/crates/synapse-history/src/export.rs b/crates/synapse-history/src/export.rs index d86b49a..c22a762 100644 --- a/crates/synapse-history/src/export.rs +++ b/crates/synapse-history/src/export.rs @@ -1,4 +1,4 @@ -//! Deterministic Logseq-compatible Markdown export of pages. +//! Deterministic Markdown export of pages. //! //! Layout: `pages/.md`, `journals/YYYY_MM_DD.md`, `assets.json`. //! A page file starts with page properties (`key:: value`, aliases as `alias:: a, b`), @@ -26,7 +26,7 @@ pub const TAGS_PROP: &str = "synapse-tags"; /// Page property with the type names (`synapse-types:: persona, lugar`). pub const TYPES_PROP: &str = "synapse-types"; -/// Encodes a page title as a file name (Logseq "triple-lowbar" format: `/` becomes `___`, +/// Encodes a page title as a file name ("triple-lowbar" format: `/` becomes `___`, /// characters illegal on Windows and `%` are percent-encoded). pub fn encode_title(title: &str) -> String { let mut out = String::with_capacity(title.len()); diff --git a/crates/synapse-history/src/parse.rs b/crates/synapse-history/src/parse.rs index 4b6667f..05a23a7 100644 --- a/crates/synapse-history/src/parse.rs +++ b/crates/synapse-history/src/parse.rs @@ -1,4 +1,4 @@ -//! Parser for the Markdown files produced by [`crate::export`] (and plain Logseq pages). +//! Parser for the Markdown files produced by [`crate::export`] (and plain outline pages). use crate::export::{DESCRIPTION_PROP, HUBS_PROP, KIND_PROP, TAGS_PROP, TYPES_PROP, parse_value}; use serde_json::Value; @@ -224,7 +224,7 @@ mod tests { } #[test] - fn logseq_space_indent() { + fn space_indent() { let p = parse_page("- a\n - b\n - c\n - d\n"); let d: Vec<_> = p.blocks.iter().map(|b| b.depth).collect(); assert_eq!(d, [0, 1, 2, 1]); diff --git a/crates/synapse-history/tests/history.rs b/crates/synapse-history/tests/history.rs index 448edc1..9c68048 100644 --- a/crates/synapse-history/tests/history.rs +++ b/crates/synapse-history/tests/history.rs @@ -26,7 +26,7 @@ fn at(g: &Graph, ms: i64) { } #[test] -fn export_is_deterministic_and_logseq_shaped() { +fn export_is_deterministic_and_outline_shaped() { let (_d, g, _h) = setup(); let p = add(&g, "Project/Alpha", &["first", "second"]); let first = g.page_tree(p.id).unwrap()[0].1.clone(); diff --git a/docs/README.md b/docs/README.md index 02ec69c..e9fb086 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3,7 +3,7 @@ - [plan.md](plan.md): product scope and roadmap. - [architecture.md](architecture.md): crates, data model, storage and sync design. - [app.md](app.md): Flutter app and FFI: build/run per platform, editor behaviour. -- [import.md](import.md): Logseq importer. +- [import.md](import.md): Logseq importer (import source). - [search.md](search.md): full-text, vector and hybrid search, auto-link suggestions. - [ai.md](ai.md): AI providers, keys, graph features. - [history.md](history.md): automatic git snapshots and restore. diff --git a/docs/app.md b/docs/app.md index 553ef1a..3cdbc9e 100644 --- a/docs/app.md +++ b/docs/app.md @@ -53,7 +53,7 @@ Commit the regenerated `crates/synapse-ffi/src/frb_generated.rs` and `app/lib/sr ## Editor - Blocks render Markdown when idle and become raw-Markdown text fields when focused. - Keys: Enter split (at start: new block above), Shift+Enter newline, Tab/Shift+Tab - indent/outdent (Logseq's direct outdenting), Backspace at start merges into the previous + indent/outdent (direct outdenting), Backspace at start merges into the previous block, Delete at end pulls the next one in, ↑/↓/←/→ cross block edges, Alt+Shift+↑/↓ move among siblings, Ctrl+↑/↓ collapse/expand, Ctrl+Enter cycles TODO/DONE, Esc leaves editing. - `[[`, `((` auto-pair; `[[`, `#` and `((` open autocomplete (↑/↓, Enter/Tab, Esc). diff --git a/docs/caldav.md b/docs/caldav.md index d569cb6..7e9b107 100644 --- a/docs/caldav.md +++ b/docs/caldav.md @@ -22,7 +22,7 @@ with `If-Match` (or `If-None-Match: *` for creation) and `DELETE` with `If-Match rustls with the bundled webpki roots (self-signed servers are not supported yet). ## Mapping -| Logseq block | VTODO | +| Synapse block | VTODO | |---|---| | `TODO`/`LATER` | `STATUS:NEEDS-ACTION` | | `DOING`/`NOW` | `IN-PROCESS` | diff --git a/docs/history.md b/docs/history.md index d7813ee..b9d12cf 100644 --- a/docs/history.md +++ b/docs/history.md @@ -1,11 +1,11 @@ # History (`synapse-history`) Automatic git-like backup of a graph. A bare git repository at `/history/` holds a -deterministic, Logseq-compatible Markdown export; every snapshot is a commit. Plain `git` +deterministic Markdown export; every snapshot is a commit. Plain `git` works on it (`git --git-dir=/history log`, `clone`, ...). ## Export format -- `pages/.md`: title encoded Logseq-style (`/` → `___`, `% < > : " \ | ? *` and control +- `pages/<title>.md`: title encoded (`/` → `___`, `% < > : " \ | ? *` and control chars percent-encoded). `journals/YYYY_MM_DD.md` for journals. - File = page properties (`key:: value`, aliases as `alias:: a, b`), then one `- ` bullet per block, nested with tabs; extra content lines and block properties are indented under the diff --git a/docs/plan.md b/docs/plan.md index f515c8f..d12d609 100644 --- a/docs/plan.md +++ b/docs/plan.md @@ -1,7 +1,7 @@ # Synapse plan ## Goals -A Logseq-like outliner that fixes what Logseq/Obsidian lack: native performance on Android, +An outliner for linked notes and journals that fixes what Logseq/Obsidian lack: native performance on Android, Linux and Windows, a real database instead of re-parsing Markdown on every start, heavy assets handled properly, built-in sync (self-hosted) and backup, semantic search and AI, and a "brain-like" model where connections have strength, memory is episodic (journals) and