slimCODE

commUNITY
Welcome to slimCODE Sign in | Join | Help
in Search

slimCODE, aka Martin Plante

Updating the list of available slimSEARCH entries

The slimSEARCH plug-in for slimKEYS is a beast sometimes difficult to maintain. The number of web sites you can search into evolves with time. Within a slimSEARCH hotkey configuration, you can add predefined search entries using the green plus sign without the yellow sparkle.

image

This will show you a list of all search entries that come with slimKEYS, and all the ones you manually created before.

image

Notice the “Update list online” link at the bottom? This fetches an XML file on slimcode.com that gives you more entries. I have updated this file only once since the release of the slimSEARCH plug-in, but it pretty much contains all the search entries I’m using. If you don’t find what you want, you can manually add new entries by using the second green plus sign with a sparkle, and select “Custom web search”.

image

This gives you a blank entry you must fill in.

image

It’s not that hard to find out what search pattern to use. Let’s take the Windows Marketplace for Mobile. Enter two distinctive words in the search box, like “foobar slimcode” and proceed with the search.

image

Without considering the actual result page, look at the destination URL:

image

This is the URL you must use as your search pattern. Do you see “foobar%20slimcode”? That’s what you must replace with “{keywords}”. In this example, the final search pattern is:

https://marketplace.windowsphone.com/search.aspx?keywords={keywords}

We used two words on purpose, to see how a space was encoded. In this case, it became “%20”. By default, slimSEARCH replaces spaces with “%2B”, the equivalent of a “+” symbol. You can test how the target web site handles “%2B”, or explicitly tell slimSEARCH to use another symbol by checking “Replace spaces with this character”. The Marketplace web site has no problems with the default “+” sign, so I’ve left it unchecked, and filled in the rest of the info.

image

Some notes: In the title, you can put an ampersand symbol (&) before a letter, so that you can press “Alt-That letter” within the slimSEARCH popup to use that search entry. The toughest part is finding a letter you didn’t already use! :) Alt-R was still available for me. I chose “mm” as the prefix command (for “Mobile Marketplace”). This allows me to type “mm grocery list” and press Enter instead of typing “grocery list” and press Alt-R (even though I rarely use prefix commands, except for the “@” symbol for Twitter user searches).

Also, make sure you move your new search entry above “Web Address Filter” and “Start new process”, by using the “Move search entry up” blue arrow button. These two special entries should always be at the bottom. The next version of slimKEYS will actually hide you these two special entries.

Do you have custom search entries? Share them here!

Published Wednesday, January 27, 2010 3:21 PM by slimcode
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Tommy Carlier said:

Translate to English: http://translate.google.com/?langpair=|en&text={keywords}

Translate to French: http://translate.google.com/?langpair=|fr&text={keywords}

Translate to Dutch: http://translate.google.com/?langpair=|nl&text={keywords}

For other languages: just change the "langpair" parameter.

January 27, 2010 10:29 AM
 

Tommy Carlier said:

For developers:

Google Code Search:

http://www.google.com/codesearch?q={keywords}

January 27, 2010 10:46 AM
 

Tommy Carlier said:

For C# developers:

Google Code Search with language filter for C#:

http://www.google.com/codesearch?q={keywords}+lang:c%23

January 27, 2010 10:48 AM
 

Tommy Carlier said:

January 28, 2010 6:33 AM

Leave a Comment

(required) 
(optional)
(required) 
Submit