Failure to autocomplete note selection when using "[[" and "|"

Steps to reproduce

  1. Open the editor and type [[ to bring up the link suggestion dropdown menu.
  2. Navigate through the suggestions using the arrow keys or by scrolling (do not select a note using Enter or a left click).
  3. Press | to attempt adding a custom display text to the link.

Did you follow the Troubleshooting Guide? [Y/N]

Y

Expected result

The [[ should autocomplete with the currently highlighted note from the dropdown menu, resulting in [[selected note| or [[selected note |]]`, depending on whether “Auto pair brackets” is enabled or not.

Actual result

The wikilink syntax remains as [[| or [[|]], without autocompleting the highlighted note from the dropdown menu.

Environment

SYSTEM INFO:
Obsidian version: v1.7.7
Installer version: v1.7.7
Operating system: Darwin Kernel Version 20.6.0: Thu Jul 6 22:12:47 PDT 2023; root:xnu-7195.141.49.702.12~1/RELEASE_X86_64 20.6.0
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

Additional Information

This behavior is inconsistent with how ^ or # functions in the dropdown menu, which autocomplete the currently highlighted note before invoking block or heading reference suggestions. It also contradicts the “Type | to change display text” suggestion displayed at the bottom of the drop-down menu.

This is not a bug. It’s intentional.

Thank you for the response. I realize this is super minor but I think it’s reasonable to question the intention behind this (see last paragraph of the post). Could I move this to feature requests if I update the post with the appropriate template?

  • Type the opening [[
  • Type characters to trigger auto-complete suggestions
  • Use the ↑ and ↓ keys to navigate to the intended auto-complete item
  • Press ⇥ (tab) to initiate the auto-completion (DO NOT press enter or return)
  • You will see [[My Target]] with the cursor placed before ]]
  • Type | and then the alias you want to use
  • Press enter/return once to move the cursor after ]] and again to accept the entry
1 Like

I take it you mean that I need to input |manually? Because when I press Tab, I see [[My Target]] with the cursor placed before ]].

Either way, this does make things easier. Didn’t know Tab worked like this. Thanks for the tip!

Ugh, yes, sorry. I fixed my post.

1 Like
1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.