ProKeys
ProKeys copied to clipboard
Support expansion inside of address/URL bar
Supports limited expansion: any multiline text, rich text is made single line by stripping all \n
ewlines. formatting, etc.
But, paste/date macros are completely supported. Variables are supported.
Working on the address bar while viewing a blocked site should work.
Feature is useful for people having weird proxy expansions for some reason.
it's not weird, he's probably playing old games
On Mon, Dec 26, 2016 at 3:39 PM, Gaurang Tandon [email protected] wrote:
Supports limited expansion: any multiline text, rich text is made single line by stripping all \newlines. formatting, etc. But, paste/date macros are completely supported. Variables are supported. Working on the address bar while viewing a blocked site should work.
Feature is useful for people having weird proxy expansions for some reason.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GaurangTandon/ProKeys/issues/47, or mute the thread https://github.com/notifications/unsubscribe-auth/ARfAxzgOKPaYM09kPuNQMQaFi0kSCLYCks5rL5JJgaJpZM4LVs0c .
This is the API:
https://developer.chrome.com/extensions/omnibox
Key implementation takeaways:
- we need a keyword. How about "pk" @iWrote ?
- we can allow the user to type the snip text, then
searchSnippets
to search for the expected snippet, and then display it as a suggestion. - we can richly format the snippet suggestion.
- when user accepts it, we can expand it inside address bar (though without rich formatting)
- as stated before, paste/date macros are completely supported. Variables are supported. Working on the address bar while viewing a blocked site should work. Snippets are stripped of
\n
ewlines and<br>
eaks.
There should be a way to add something to a general url snippet
like I have a snippet npm -> https://npmjs.org/ so typing pk and then npm would show this url in the dropdown from the address bar and I'll have to click on it to go there.
but what if the snippet body was https://npmjs.org/package/ and I need it to open docs of an npm package?
then writing any thing after npm
Or, as as mdn search extension does that, the dropdown item which I go to using the arrow keys should replace whatever is in the address bar
Omg how did I miss this. Yes, you are completely right. I'll try to get something ready soon.
Except that this behavior is exactly what happens currently. So, probably your request got obsoleted.
this behavior is exactly what happens currently
No, this isn't the current behaviour. Currently the url stored with that snippet name gets opened. I meant there should be a way to attach something in that url. <snippet-name>/<further-address>