Skip to content

like Find.find(query) explore Find.unfind(URI), to "decode" a URL into a "Find syntax" #94

@4www

Description

@4www

It could be interesting to see if from a URL it is possible to look for matching symbol and engines.

That way for example a <a href="https://github.com/internet4000/find"/> could be parsed, and:

  • could result in &gh internet4000 find
  • could be used to add a title="" with the find query value, as "usage example"
  • a utility to convert list of links (by new lines, like the queries in the node script), to a list of "equivalent" find queries
  • as a "translator" to input a URL/URI and get possible "find representation" to get the same resulting URL

For example, in the case of https://github.com/internet4000/find and pseudo code:

const my_url = "https://github.com/internet4000/find"
const result = Find.unfind(my_url)
console.log(unfind)
{
  input: "https://github.com/internet4000/find",
  matches: [
   {
      exact: true,
      output: "https://github.com/internet4000/find",
      query: "&ghi4k find"
    },
    {
      exact: true,
      output: "https://github.com/internet4000/find",
      query: "&gh internet4000 find"
    },
   {
      exact: false,
      output: "https://github.com/internet4000/find/issues",
      query: "*ghi_i4_find" // could be `*` a bookmark symbol, like firefox
    },
    [...]
  ]
}

Could test matching symbol.engines URLs from the domain, and their path, and figure if there are matching symbols to build such a resulting URL.

If there are domains matching, find from the "placeholder patterns" how to split the query and fit that in a URL, and compare to the originally requested result (and maybe stop if a few are exact match, or so that it feels like typing suggestions)

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