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

[Feature Suggestion] - Auto complete hashes as they are being typed #1278

Closed
otboss opened this issue Dec 8, 2019 · 6 comments
Closed

[Feature Suggestion] - Auto complete hashes as they are being typed #1278

otboss opened this issue Dec 8, 2019 · 6 comments
Labels
kind/enhancement A net-new feature or improvement to an existing feature P3 Low: Not priority right now

Comments

@otboss
Copy link

otboss commented Dec 8, 2019

Lets say I want to share a hash to someone and the means is speech. They have to manually type out the entire hash in order to get the file. How about a feature where search field recommends files as the user types by listing hashes. At a certain length it is unlikely that the hash will be used for multiple files, saving time.

@hacdias
Copy link
Member

hacdias commented Dec 16, 2019

As much as I appreciate the intent of this feature, this seems to be a really hard (if not impossible) thing to make. THere are all combinations of letters and digits in the hashes.

In addition, we do not keep track of hashes in any way so it's not possible for us to autocomplete them accurately. The only thing that comes to my mind is to show all possible options, which are... lots of them.

@hacdias
Copy link
Member

hacdias commented Dec 16, 2019

@autonome @lidel what do you think about this?

@lidel
Copy link
Member

lidel commented Jan 7, 2020

AFAIK we do not have/expose primitives for asking DHT, already connected peers or even local datastore for "all CIDs that start/end with XYZ".

Described feature would require adding a new Core API (to go-ipfs, possibly libp2p) that allows for that type of fuzzy lookup.

@lidel lidel added the need/triage Needs initial labeling and prioritization label Jul 6, 2021
@lidel lidel added P3 Low: Not priority right now kind/enhancement A net-new feature or improvement to an existing feature and removed need/triage Needs initial labeling and prioritization labels Mar 28, 2022
@SgtPooki SgtPooki moved this to To do in IPFS-GUI (PL EngRes) Jul 19, 2022
@ShadowJonathan
Copy link

ShadowJonathan commented Jan 26, 2023

IMO this does not sound like an problem that can be addressed via this solution of auto-completing hashes. It is nearly impossible to know what a user would want to type, as CIDs are an extremely dense format of nearly-straight-to-binary transformation.

Hashes, by their nature, are also meant to be non-reversible, and thus also non-guessable by extension. There exists millions upon millions of hashes out there on the network, knowing which one the user wants is what the user should provide, its not like google or netflix where the name is human-readable, and its often searched, and centrally tallied and re-distributed.


What I suggest instead as a solution is an extension to multibase, having a human-readable and speakable word list like PGP does, that can be spoken, typed, and converted to bytes in the back-end.

I see that this issue already exists to address this.

@ShadowJonathan
Copy link

Ah, it appears that multibase already has a user-pronouncable codec: proquint, which could probably serve this purpose.

@SgtPooki
Copy link
Member

Closing this issue as it would need to be resolved at lower levels and then supported by kubo before desktop would implement it.

@SgtPooki SgtPooki closed this as not planned Won't fix, can't repro, duplicate, stale May 14, 2023
@github-project-automation github-project-automation bot moved this from Needs Grooming to Done in IPFS-GUI (PL EngRes) May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A net-new feature or improvement to an existing feature P3 Low: Not priority right now
Projects
No open projects
Status: Done
Development

No branches or pull requests

5 participants