ankitects / ankitects/anki

Auto fromatting paste is not working after clipboard paste via win key + v

Open
#3,035 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
30.5k
Forks
3.2k
Avg merge
2d 8h
Merged PRs (30d)
72

Description

Steps to reproduce this bug:

1: Click on "Add" to add a new note.
2: Copy multiple things to get a clipboard history
3: Paste something from your clipboard history via Win Key + V
4: Try to normally paste something
unexpected behavior: pasting without formatting is not possible anymore.

Here is an explanatory gif, visualizing the issue
![Anki problem](https://github.com/ankitects/anki/assets/65167682/fab83248-300a-4a58-bd1e-a2ec37b60cdd)

Anki Version:
Version ⁨23.12.1 (1a1d4d54)⁩
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1

Windows Version:
Edition Windows 11 Pro
Version 23H2
Installed on ‎15/‎06/‎2023
OS build 22631.3155
Experience Windows Feature Experience Pack 1000.22684.1000.0

EDIT: For this example I used the headline of the following wikipedia page/article:
https://en.wikipedia.org/wiki/Aide-m%C3%A9moire

Contributor guide

Open the contributing guide

Research direction

Reproduce the problem in Anki on Windows 11 using the listed steps, especially a clipboard-history paste with Win+V followed by a normal paste. Trace the desktop paste and formatting-handling entry point from that reproduction; done means normal paste formatting behavior remains available afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.