Hide "\_" in Browse searchbar

Context:

Camel Case = hello_world

Reason:

Camel case is more readable for the average user, used mostly by Shared deck authors such as Anking and ErreAnki decks

Problem:

unnecessary searchbar clutter

Fixable?

Discourse hides \_, output as _

Example Tag:

#Preventiva::Análise_Dados/Epidemiologia::Processo_Saúde-Doença::Prevenção_em_Saúde::Níveis_de_Prevenção

Image

How it looks like when searching for the tag
image

Replicate steps:

  1. Copy a tag with / such as Hello_World
  2. Search in the browser by tag:Hello_World
  3. Output as Hello\_World
3 Likes

I think it should stay the way it is because escaping is needed for e.g. custom studies. It would be confusing if the behavior would be inconsistent.

(Except, of course, _ won’t have to be excaped anymore anywhere in a future version. In that case the simplification might be useful.)

Edit: It seems to be working with and without escaping backslash. In that case I’m in favor of removing backslashes too.

1 Like

For context, _ is treated as a special character when searching:

d_g
finds notes with d, , g, like dog, dig, dug, and so on.
front:_*
findd notes that have a non-empty Front field.
Searching - Anki Manual.

5 Likes