A plugin to quickly open URLs containing a search/query term
This plugin is invoked with the uf
keyword and requires some configuration, see :providersTable()
The way this works is by defining a set of providers, each of which contains a URL with a %s
somewhere insert it.
When the user types uf
in Seal, followed by some more characters, those characters will be inserted into the string at the point where the %s
is.
By way of an example, you could define a provider with a url like http://bugs.mycorp.com/showBug?id=%s
, and just need to type uf 123456
in Seal to get a quick shortcut to open the full URL.
Signature | Seal.plugins.urlformats:providersTable(aTable) |
---|---|
Type | Method |
Description | Gets or sets the current providers table |
Parameters |
|
Returns |
|
Notes |
{
rhbz = { name = "Red Hat Bugzilla", url = "https://bugzilla.redhat.com/show_bug.cgi?id=%s", },
lp = { name = "Launchpad Bug", url = "https://launchpad.net/bugs/%s", },
}
|
Source | Source/Seal.spoon/seal_urlformats.lua line 97 |