Skip to content

Google Docs: My Words edits are unimplemented (applyEdit rejects) #590

Description

@kcarnold

googleDocsEditorAPI.applyEdit rejects unconditionally:

// TODO(my-words): bridge to Apps Script (selectPhrase + replaceSelection for
// str_replace; insertTextAtCursor for insert). The GDocs multi-tab corpus
// (getAllTabs) is the exciting follow-up. Deferred — v1 targets standalone.
applyEdit(_edit: DocEdit): Promise<void> {
  return Promise.reject(
    new Error('applyEdit is not implemented for Google Docs yet'),
  );
},

There is no applySplice either, so applySpliceToEditor takes the DocEdit adapter path and every My Words edit fails on that surface. Known and deliberate — recording it so the gap is tracked rather than living only in a TODO.

The parts that do work there are read-only: getDocText, getParagraphs, selectPhrase. So the partner can read and point, and every edit fails.

Notes for when this is picked up

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions