ipfs-chrome-extension icon indicating copy to clipboard operation
ipfs-chrome-extension copied to clipboard

feature request: support `fs:/ipfs/...` URL scheme

Open Mithgol opened this issue 9 years ago • 4 comments

URLs in form ipfs:Qme3pKkedCfcebDmkZz5tU2suMjHP4EPi29NMNNxQrQzwy/done seem useful because they are relatively short (51 characters plus the length of the path such as /done).

For example, they won't be broken in the middle to be forcibly wrapped to the next line on a traditional (80 characters per line) terminal unless the path (after the hash) exceeds ≈28 characters. That's at least twice as good as the old 8.3 character limit.

They are also less likely to cause horizontal scrollbars in modern editors or HTML textareas.

Unfortunately, such short URLs are supported, as far as I can tell, only by the addon for Firefox.

Would this Chrome extension also support them? (In addition to the support of current http://gateway.ipfs.io/ipfs/ URLs are 23 characters longer than ipfs:.)

Mithgol avatar Sep 14 '15 10:09 Mithgol

see also https://github.com/ipfs/go-ipfs/issues/1678

jbenet avatar Sep 14 '15 16:09 jbenet

Posted https://github.com/ipfs/go-ipfs/issues/1678#issuecomment-140153918 and https://github.com/ipfs/go-ipfs/issues/1678#issuecomment-140158406 there.

Mithgol avatar Sep 14 '15 18:09 Mithgol

Note that this extension does support inputting urls in the form /ipfs/Qme3pKkedCfcebDmkZz5tU2suMjHP4EPi29NMNNxQrQzwy/done. You just have to click the "Allow access to file URLs" option on the chrome://extensions page

dylanPowers avatar Sep 14 '15 18:09 dylanPowers

The results of the discussion ipfs/go-ipfs#1678 seem to be the fs:/ipfs/... form, and thus I'll rename.

Mithgol avatar Sep 18 '15 19:09 Mithgol