Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using 'cut' on a hierarchical tag replaces double colons (::) #3062

Open
jcznk opened this issue Mar 9, 2024 · 1 comment
Open

Using 'cut' on a hierarchical tag replaces double colons (::) #3062

jcznk opened this issue Mar 9, 2024 · 1 comment
Labels

Comments

@jcznk
Copy link

jcznk commented Mar 9, 2024

Tested on Anki 24.04 beta1, no add-ons, Windows 10 qt6. IIRC, it also used to happen on previous versions.

Steps:

  1. go to the Editor/Browser and select a note that has a hierarchical tag (or add one).
  1. Click on the tag bar next to the hierarchical tag you want to cut, and move the cursor so that the tag is displayed as plain text.
  1. Select the tag and then 'cut' it (e.g., using Ctrl+X), and then paste it into a Field or Browser bar. The double colon (::) is replaced by a ratio symbol (∷).
    E.g., #::ExampleParentTag::ExampleChildTag becomes #∷ExampleParentTag∷ExampleChildTag. This can be inconvenient if you want to use the tag for Browser searches or Find & Replace, as you have to fix it manually.

The problem does not seem to occur if you copy the tag instead of cutting it.
(But, if I copy the text of the tag when the tag is not rendered as plain text, the double column does get replaced with a ratio symbol, and a few divs and brs are also added: <div><br></div><div><div>#∷ExampleParentTag∷ExampleChildTag</div></div><div><br></div>)

@jcznk
Copy link
Author

jcznk commented Mar 9, 2024

Also, the "tag input" bar does not seem fully distinguish between double colons (::) and the ratio symbol (∷). When I paste #∷ExampleParentTag∷ExampleChildTag in the tag bar, the ratio symbols are replaced with double colons. However, attempting to paste the ratio symbol alone, outside of hierarchical tags, into the tag bar does not result in any input being accepted.

@dae dae added the editor label Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants