p0deje / Maccy

Lightweight clipboard manager for macOS
https://maccy.app
MIT License
11.51k stars 495 forks source link

Error copying cross reference in MS word #770

Closed MIsmlAhmed closed 3 months ago

MIsmlAhmed commented 3 months ago

Before Submitting Your Bug Report

Maccy Version (see 'About' window)

No response

macOS Version

No response

Maccy Settings

{
    "KeyboardShortcuts_delete" = "{\\"carbonKeyCode\\":51,\\"carbonModifiers\\":2048}";
    "KeyboardShortcuts_pin" = "{\\"carbonModifiers\\":2048,\\"carbonKeyCode\\":35}";
    "KeyboardShortcuts_popup" = "{\\"carbonKeyCode\\":8,\\"carbonModifiers\\":768}";
    "LaunchAtLogin__hasMigrated" = 1;
    "NSWindow Frame com.sindresorhus.Settings.FrameAutosaveName" = "798 673 442 321 0 0 2560 1415 ";
    SUAutomaticallyUpdate = 0;
    SUEnableAutomaticChecks = 1;
    SUHasLaunchedBefore = 1;
    SULastCheckTime = "2024-04-22 17:37:49 +0000";
    SUSendProfileInfo = 0;
    SUUpdateGroupIdentifier = 2748626887;
    enabledPasteboardTypes =     (
        "public.file-url",
        "public.rtf",
        "public.png",
        "public.html",
        "public.utf8-plain-text",
        "public.tiff"
    );
    ignoredPasteboardTypes =     (
        "com.typeit4me.clipping",
        "Pasteboard generator type",
        "net.antelle.keeweb",
        "com.agilebits.onepassword",
        "de.petermaurer.TransientPasteboardType"
    );
    migrations =     {
        "2020-04-25-allow-custom-ignored-types" = 1;
        "2020-06-19-use-keyboardshortcuts" = 1;
        "2020-09-01-ignore-keeweb" = 1;
        "2021-02-20-allow-to-customize-supported-types" = 1;
        "2021-06-28-add-title-to-history-item" = 1;
        "2021-10-16-remove-dynamic-pasteboard-types" = 1;
        "2022-08-01-rename-suppress-clear-alert" = 1;
        "2022-11-14-add-html-rtf-to-supported-types" = 1;
        "2023-01-22-add-regexp-search-mode" = 1;
    };
    removeFormattingByDefault = 1;
}

Description

When trying to copy a cross-reference (special field) in MS Word and paste it somewhere else in the document it comes back with an error inside the MS Word app itself. For example, if I copy Figure 1 as a cross-reference and try to paste it, MS Word would paste Error! Reference source not found.

Steps to Reproduce

  1. Open MS Word.
  2. Insert a figure or table caption
  3. insert a cross-reference of the caption
  4. copy and paste the cross-reference with Maccy
p0deje commented 3 months ago

Could it be because you have a "Remove formatting by default" enabled? It would paste from Maccy without extra metadata.

MIsmlAhmed commented 3 months ago

No, I tried turning that off and still the problem remains.

p0deje commented 3 months ago

@MIsmlAhmed Can you please record a small screencast showing how to add cross-reference and how Maccy breaks its pasting. Also, what version of Word do you use?

MIsmlAhmed commented 3 months ago

Here's a gif that shows the steps. I am using office 365. ScreenRecording2024-04-22at1 46 37PM-ezgif com-video-to-gif-converter

p0deje commented 3 months ago

@MIsmlAhmed I don't see where you'd load Maccy and copy/paste from it. How exactly is Maccy used in your scenario?

MIsmlAhmed commented 3 months ago

It's already loaded in my system and I use the regular copy/paste shortcut.

p0deje commented 3 months ago

Does the pasting work when you quit Maccy?

MIsmlAhmed commented 3 months ago

Yes