Zettlr: [BUG] Linking notes does not always add the filename

Created on 7 Jun 2020  Â·  6Comments  Â·  Source: Zettlr/Zettlr

Description

When linking notes within a note, the filename is not always added when the option is set to 'always' in preferences.

Reproducing

I am unable to reliably reproduce - this sometimes happens when selecting the highlighted search results from the autocomplete options, and doesn't ever seem to happen when selecting an unhighlighted one.

Expected behaviour

Link the filename as indicated in the preference panel.

Platform

  • OS and version: MacOS 10.15.5
  • Zettlr Version: 1.7.0-beta.9
bug [non-critical] confirmed

All 6 comments

I noticed something similar, but didn't have the time to investigate right now. As soon as you find out some pattern, please notify us here so that we can dig into that problem!

Got the same issue on OS X 14.4.0

Same issue on Windows 10 Home (10.0.19041 Build 19041) with Zettlr 1.7.5. It happens regularly, but I have also not observed a consistent pattern.

There'll be a 1.8 beta soon, I'd like you to test it out with this as well – I won't touch the 1.7.x branch anymore due to missing bandwidth!

I have not had a chance to test the 1.8 beta, but I did discover how to reliably reproduce this bug in 1.7.5. I understand 1.7.x is no longer under development. However, since this may also apply to 1.8.x, I am sharing what I found.

This bug appears to be associated with the auto-save feature. Here are the steps to reproduce the bug:

  1. Create two new files.
  2. In either file, begin typing the file link syntax, e.g. [[xyz]], to cause the file link selection box to appear.
  3. Leave the box open; do not make a selection.
  4. Note the asterisk next to the file name in the file tab at the top of the screen.
  5. When the asterisk disappears, indicating the file has been saved, make a selection in the open file link box.
  6. The title from the linked file will not be included in the resulting file link.

If one quickly makes a selection before the file auto-saves, the link and its title are both added to the file.

However, since this may also apply to 1.8.x, I am sharing what I found.

Yes, thank you!

Now that I have a reproducibility, I can have a look :)

Was this page helpful?
0 / 5 - 0 ratings