Skip to content

Certain relative dates unexpectedly capitalize input text in link alias #11

Description

@TrulyFlawed

Describe the bug

Typing @today Enter will automatically be expanded to the current date. Press Shift at the same time to keep the input text as an alias (e.g. @today[[202112-27|today]]).
— README

When using relative dates like @today, @yesterday, and @tomorrow, the input is being automatically capitalized inside of the outputted link alias where this behavior does not appear to be present elsewhere and is not shown in the README.

Steps to reproduce

  1. Type @today, @yesterday, or @tomorrow (lowercase)
  2. Press Shift + Enter
  3. Get output [[<date>|Today]] instead of [[<date>|today]]

Expected behavior

I expected that the plugin would treat writing lowercase @today would have the link's display text also be lowercase. This was especially frustrating because the example in the README implies that getting a lowercase output from these inputs is possible.

Actual behavior

Instead, the link's display text is capitalized. So then I have to go back and correct it manually.

Environment

  • Plugin version: 0.6.4
  • Obsidian version: 1.13.4 (Installer 1.10.3)
  • OS: Linux (Ubuntu 24.04.4 LTS)

Error messages

N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions