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

Name auto-complete (add display name option) does not work when linking with ID #5103

Open
2 of 5 tasks
hungvvu opened this issue Apr 10, 2024 · 3 comments
Open
2 of 5 tasks
Labels
bug A bug that affects the functionality of Zettlr.

Comments

@hungvvu
Copy link
Contributor

hungvvu commented Apr 10, 2024

Description

Summary: The name auto-complete no longer works when linking with ID.
Behaviour: When linking with the ID by typing out [[]], Zettlr doesn't add the title/display name of the note nor suggest auto-completion for the title/display name. However, it does work when linking using the title/display name itself.
Expected Behaviour: When linking with ID, auto-completion should work similarly to linking with the display name.

Video:

zettlr-no-title-auto-completion-bug-report-compressed

Reproducing

  1. Go to a note that has an ID.
  2. Copy the note ID
  3. From another note, link using [[]] and pasting the ID into the double-brackets
  4. Alternatively, type out the ID manually in the double brackets, the auto-completion doesn't work in both cases

Zettlr Version

Stable (most recent version)

Specify version

Zettlr 3.0.5

Installation Method

From the Website or GitHub

Your Platform

  • Windows
  • macOS
  • Linux

Architecture

  • Intel 64bit
  • ARM 64bit

Operating System Version

Windows 11

Additional Information

Also tested on Ubuntu 22.04 VM with the latest build from develop branch.

@hungvvu hungvvu added the bug A bug that affects the functionality of Zettlr. label Apr 10, 2024
@nathanlesage
Copy link
Member

One thing: When pasting, this does not have any autocomplete, so naturally this won't work. Regarding the ID typing, I have to double-check, but this list of numbers that you see I can't remember having implemented that. Usually, there is only one entry and Zettlr chooses whether to use the ID or the name based on your settings.

@hungvvu
Copy link
Contributor Author

hungvvu commented Apr 11, 2024

One thing: When pasting, this does not have any autocomplete, so naturally this won't work. Regarding the ID typing, I have to double-check, but this list of numbers that you see I can't remember having implemented that. Usually, there is only one entry and Zettlr chooses whether to use the ID or the name based on your settings.

That's strange, I remembered in 2.3.0 I used to be able to Ctrl + V and get a single autocomplete suggestion entry that I can just press Enter and have the name filled in a similar manner to linking by file name. Is this new behaviour with the ID an intended change? If not I can try retesting it later.

About the list of number/ID, I don't know if this helps but the context that that happened in was after I closed my main workspace and open up the Zettlr tutorial workspace to make the screen capture (since I didn't want to accidentally leak something with personal notes). Just a wild guess but could it be something caching related?

@nathanlesage
Copy link
Member

Just a wild guess but could it be something caching related?

Since these IDs need to be cached in the FSAL, this is definitely a chance.

One explanation for the "pasting and get one entry" could be a change in behavior from CM5 to CM6. It could be that, if you paste something that EXACTLY matches an entry, that CM6 simply doesn't bother showing you that (which, for a simple autocomplete, makes absolute sense). I'd have to investigate this. Feel free to also play around a bit, the more info is in this thread, the less I have to poke at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug that affects the functionality of Zettlr.
Projects
None yet
Development

No branches or pull requests

2 participants