Skip to content

Suggestion: special search for Lean code names? #181

Description

@mars0i

Not sure whether this is a Verso issue per se. Maybe it has to be dealt with separately in individual Verso documents?

The suggestion is to provide a special syntax in the search function (or a separate search box?) that allows searching for names for Lean terms.

Example: I was trying to search for by in FPIL. For some reason this doesn't work at all in the search box--maybe it's being excluded as a common word? However, I can search for "by" in a specific page using my browser search. That's tedious, though, because mostly brings up uses of "by" in English. If the FPIL search found instances of "by", it would be even more tedious.

Since code must be marked as code in the document source, it should in theory be possible to do a search that finds a string only when it appears in a code block or inline code. (Sounds easy enough, but that doesn't mean it is.)

I know that if this seems like it's worth implementing, it might not be a priority, but I thought I'd mention it as a possibility.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions