ProKeys icon indicating copy to clipboard operation
ProKeys copied to clipboard

Support expansion inside of address/URL bar

Open GaurangTandon opened this issue 8 years ago • 6 comments

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.

GaurangTandon avatar Dec 26 '16 10:12 GaurangTandon

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 .

iWrote avatar Dec 27 '16 09:12 iWrote

This is the API:

https://developer.chrome.com/extensions/omnibox

Key implementation takeaways:

  1. we need a keyword. How about "pk" @iWrote ?
  2. 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.
  3. we can richly format the snippet suggestion.
  4. when user accepts it, we can expand it inside address bar (though without rich formatting)
  5. 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 \newlines and <br>eaks.

GaurangTandon avatar Mar 05 '17 15:03 GaurangTandon

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 should be added in the url displayed in the dropdown

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

ammarbinfaisal1 avatar Sep 25 '18 08:09 ammarbinfaisal1

Omg how did I miss this. Yes, you are completely right. I'll try to get something ready soon.

GaurangTandon avatar Jun 10 '19 04:06 GaurangTandon

Except that this behavior is exactly what happens currently. So, probably your request got obsoleted.

GaurangTandon avatar Jun 10 '19 07:06 GaurangTandon

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>

ammarbinfaisal1 avatar Jun 23 '19 14:06 ammarbinfaisal1