Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consider replacing # commands with "dedicated micro web app(s)" #89

Open
4www opened this issue Jul 24, 2023 · 0 comments
Open

consider replacing # commands with "dedicated micro web app(s)" #89

4www opened this issue Jul 24, 2023 · 0 comments

Comments

@4www
Copy link
Contributor

4www commented Jul 24, 2023

currently there are Find # commands, such as:

  • #add <symbol> <engine> <url> and #del <symbol> <engine>
  • #import <json_string> and #export to JSON
  • #help half working help, making a query to find with the user; used as example

All these functions, are provided with the Find instance as first argument, and the user query (without the command) as second arg.

These commands are defined under the # symbol, and instead of being under the key .engines like other symbols, these commands/functions are defined under the .fns key of the js symbol map.

It is practical as a semantic to demonstrate the separation of meaning, and "execution type", between symbols.

Maybe these functions, could be replaced, by an other already existing symbol, for example:

+find-add-engine-for-symbol <symbol> <engine> <url>
+find-add <symbol> <engine> <url>
+fadd <s> <e> <u> (a sym)
;; or any semantic; ++add could work too (symbol + engine +add )

This could build the URL(s), for destination of the "internal Find client", with a different query param: f for find, s for settings, or with a different "user query value than the initial"; i4k-find:// for find "URI building scheme", or i4k-find: to match protocol syntax.

https://example.org/find-instance/#f=<web-component-call-to-find>
https://example.org/find-instance/#q=i4k-find:[,//]<command>/<query_with_spaces>/
https://example.org/find-instance/#q=i4k-find:<command>?<query_uri_encoded>:<command>?<query>:

There are interesting examples https://en.wikipedia.org/wiki/List_of_URI_schemes om how to make "list of ressources", contact, notes, tags, fm, dns, etc. with various patterns, maybe to nest and chain queries/commands.

That way the functions/commands could be moved together with the rest and follow the classic engine(s) behavior (or opening a new URL with the user query into the URL patterns, and let the app handle how to interpret what to do with it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant