Underscore is treated as part of the name (it shouldn't)

Steps to reproduce

  1. Write 2023-03-25_deep_learning (cursor stays in the end of the string).

  • Press Ctrl+Left. Bug: The cursor will jump over 25_deep_learning and will end up between the last - and 2.
    or
  • Press Ctrl+Backspace. Bug: 25_deep_learning will be deleted.
    or
  • Double-click anywhere on the part 25_deep_learning. Bug: the whole part will be selected.
    or
  • Press Ctrl+Shift-Left. Bug: The part 25_deep_learning will be selected.

That is despite there being 3 different parts (1 number and 2 words) separated by an underscore.

The same bug is also present e.g. in file renaming screen.

Expected result

Underscore should be treated the same as space ( ) or dash (-).

Environment

  • Operating system:
    Linux Mint 21.1 Cinnamon

  • Debug info:
    SYSTEM INFO:
    Obsidian version: v1.1.16
    Installer version: v1.1.16
    Operating system: #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 5.15.0-60-generic
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: none
    Snippets enabled: 0
    Restricted mode: on

RECOMMENDATIONS:
none

I disagree with you and I checked few other editors and they act like obsidian.

2 Likes