Remove space around + in the {key A+B} display

RESOLVED WONTFIX

Status

support.mozilla.org
Knowledge Base Software
P4
normal
RESOLVED WONTFIX
7 years ago
7 months ago

People

(Reporter: Scoobidiver (away), Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
Right now, if you want to search A+B keys in an article, it needs to be written {key A}+{key B}.
Make {key A+B} searchable by typing A+B in the Find bar.
Search indexes the rendered HTML of the page, because it's capable of ignoring HTML. We can whitelist certain attributes/elements. The only way I can think to do this would be to put some <span> around the HTML generated by {key A+B} (which is |<span class="key">A</span> + <span class="key">B</span>| [maybe we should use the <kbd> element here?]) with a title or a data-attribute and tell Sphinx to index that.

+ is a special character in search, so that won't work exactly as planned, anyway.

Can we answer a question first: do people actually search for things this way?
(Reporter)

Comment 2

7 years ago
It's not about KB searches (no index) but searches inside an article so the + is not a special character.
See https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts/discuss/1644
It's useful but it's too much work, it can wait.
Oh, I don't even know if that's possible, since, afaik, the find-in-page feature of Firefox (and everything else) is based on _visible_ content.
(Reporter)

Comment 4

7 years ago
In fact, {key A+B} displays "A + B" while {key A}+{key B} displays "A+B". I renamed the summary.
Summary: Make {key A+B} searchable by typing A+B in the Find bar → Remove space around + in the {key A+B} display
scoobidive is awesome :-) but i don't think we'll ever fix this, setting to wont fix p4
Status: NEW → RESOLVED
Last Resolved: 7 months ago
Priority: -- → P4
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.