.. _help_cloud_shared: Cloud drives and shared projects ================================ RubyQuill can keep a project’s manuscript in a **custom folder** — including a cloud-synced directory (OneDrive, Google Drive, Dropbox, Syncthing, and similar) — so you can move between computers or hand work to a collaborator. This is **handoff**, not simultaneous co-editing. .. important:: Even with **Shared** enabled, a project is designed for **one person on one computer at a time**. Only one browser tab holds the write lock. Cloud sync and lock request/yield exist so you can safely take turns — not so two people edit the same scenes at once (that is not Google Docs–style concurrent editing). Who this is for --------------- * The **same author** using a laptop and a desktop with a shared cloud folder * A **small set of collaborators** who share one project folder and take turns * Anyone who wants the manuscript on a cloud volume for backup while still editing locally through RubyQuill Who this is not for ------------------- * Realtime multi-cursor editing of the same scene * Opening the same shared project for write on two machines without waiting for yield / sync What lives where (XDG space is still required) ---------------------------------------------- Every computer that opens the project still needs space under your local projects directory (default ``$XDG_DATA_HOME/RubyQuill``, or ``projects_dir`` in App Config / ``config.toml``). =========================== ================================================== Location Contents =========================== ================================================== **Custom / cloud folder** Manuscript, Story Bible, project config, trash, ``_meta/`` (restore points; when Shared, also the git history bundle), lock files **Local under projects_dir** Crash-protection WAL (``_wal/``), custom-path pointer, and — for custom-path projects — the local Git directory used for Restore Points =========================== ================================================== Keystroke history stays **machine-local** on purpose so cloud clients are not flooded with tiny file updates. Plan on local disk usage per linked project even when the novel itself lives on a cloud volume. Setup on the first computer --------------------------- 1. Open **App Config** (home screen or project header) and set **User name** and **Machine name** so lock dialogs show who is writing. 2. On the home screen, create a project with an optional **custom / cloud folder path**, *or* move/create the tree in the cloud folder and use **Link existing folder**. 3. Open **Project Settings → General** and enable **Shared (between computers or collaborators e.g. through cloud drive)**. The checkbox is available only when the project has a custom path. Shared defaults to **off**. Turning it on enables lock request/yield and syncing revision history via a git bundle in the project’s ``_meta/`` folder. Setup on a second computer -------------------------- 1. Install and run RubyQuill on that machine. 2. Set **User name** / **Machine name** in App Config (use a distinct machine name). 3. On the home screen, choose **Link existing folder** and enter the path to the same cloud-synced project directory. 4. Open the project. Linking does **not** change project **owner**. If Shared was already enabled on the first computer, that setting syncs with the project config. Day-to-day handoff ------------------ 1. On the machine that holds the lock, finish typing (or leave the tab idle). 2. On the other machine (or for another collaborator), open the project read-only and choose **Request Edit Lock**. 3. The holder sees a prompt to **Save & Yield** or **Deny**. If they are idle, RubyQuill can auto-yield after a short timeout. 4. After yield, wait for cloud sync so the flushed manuscript and history bundle arrive, then the requester enters write mode. If nobody answers (asleep computer or paused cloud client), you get a **cloud sync warning**. Verify that your drive is synced before using **Take Over Lock**. Prefer yield over force whenever possible. Stale locks (no heartbeat for the configured timeout, default on the order of thirty minutes) can be acquired without the full request dance. Details: :ref:`help_sessions`. Owner, author, and who is editing --------------------------------- * **Owner** — set when the project is created. Only the owner may rename, delete, or overwrite-on-restore. Ownership transfer is not in the UI yet. * **Author** — export / byline metadata (pen name, etc.); independent of who holds the lock. * **User name** (App Config) — stamped on locks, Restore Points, and commits for the person editing on this install. See also :ref:`help_settings_general`. When things go wrong -------------------- * **Paused or disconnected cloud client** — resume sync before force-acquire; otherwise you risk editing an old copy. * **Diverged revision history** — RubyQuill may open **Revision Compare** so you can review differences. See :ref:`help_restore_points`. * **Still stuck read-only** — see :ref:`help_sessions` and :ref:`help_troubleshooting`.