Firefox bar to quickly find API docs - firefox

This question is related to this one
Tricks to Google for desired page quickly
Firefox can do some magic and bring exactly the required pages. E.g.
java 6 SimpleDateFormat
ruby doc rexml
But some times it fails giving a usual google results:
ruby rexml
And some times I whould like it to go to different a location:
javascript array slice
I see
http://www.w3schools.com/jsref/jsref_slice_array.asp
but whould like it to be
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/slice
How it works, btw? Where can I find all existing mappings, and how can I add/edit them? If they can be viewed/edited as text document, it whould be cool.

You can add YubNub as a search engine, (It's my default) and then your api docs of choice as a YubNub command if it doesn't exist already. I use it for Ruby all the time, e.g. rdoc String

You have several options:
Use the right-hand side search box where a search provider is available. MDC once had such a provider, but their search engine sucks big times. For example SO has such a provider. It's denoted by a shade of blue on the arrow right there.
Navigate to a particular search engine, right click the search field and "Add a Keyword for this Search". You may add "js" for example. In the future all you have to do is to type "js array slice" in the address bar and FF will bring you to the search results page of that particular search engine.
If there's no search engine on that site, use Google Custom Search, define engines as you like and then follow steps at point 2.
If you want to modify the built-in search engine for address bar, open a new tab, go to about:config and then search for "keyword.URL".

These aren't mappings, it's a Google Lucky search, isn't it?

Related

How to get firefox select search engine with flag like chrome does

In Chrome browser, there is the possibility to define flags for selecting a specific search engine, depending on what you want to use for a current search. In your address bar, you can type for example
w my search term
By typing the w + space, chrome selects Wikipedia as search engine for "my search term". (Of course, having configured that w means Wikipedia.)
Is there a way to get this behaviour in Firefox, too?
To avoid misunderstandings: I know how to set a default search engine in Firefox, but I want to select it ... let's say ... 'dynamically', without the detour via calling the search engine's webpage before and typing in there.
Thanks!
In Preferences -> Search -> Search Shortcuts you can specify a keyword, w in your example.
If you want to add more wikipedia languages, go to wikipedia in that language, search form something and in the results page (doesn't work if it directly redirects to the article) click the ... in the address bar. You should see an Add Search Engine option.

Highlighting search keyword in Slickgrid

I'm developing logs viewer web program with Vue.js
I receive log data with ajax and display it with Slickgrid.
What i need to do is highlighting keyword after searching.
I found some examples highlighting whole cells or row but couldn't find highlighting specific keyword in cell.
ex)When i search a word 'cat', slickgrid shows cells which include 'cat'.
And i need to highlight the word 'cat' in the cell.
Anyone knows how to do this? or any examples??
Thank you.
You'll need to write a custom formatter. See here for an example page. Make sure you're using the 6pac repo - it's up to date, the MLeibman repo is unmaintained now.
Re highlighting a word, you'll need to return HTML from the formatter, and just have a special span to hilight the word, eg:
we will build a <span class="hilight">wall<span/>
It's a tricky business finding a full word, that is making sure it's not part of another word, if that's what you want eg.
did you buy the <span class="hilight">wall<span/>paper yet?
That's a whole 'nother Google search in itself.

How to specify the Keyword for search engines in Firefox?

It keeps bothering me that I cannot manage the Keyword for "One-click search engines". The keyword could be displayed as follows in Firefox 38.0.1
Through the help link, I found ways to add/hide/remove search engines. However, it did not give any suggestion on how to modify the search engine.
The practical motivation for me to learn how to change the keyword is that:
Firefox cannot sync "search engines" across different installations. Only bookmarks and add-ons could be synced, so far.
I am using Vimperator with Firefox, where pressing o (or t) followed by TAB, then keyword for search engine, will enable the finishing a search query sequence. Example:
:open google happy 2015
will launch a Google result page searching for "happy 2015".
So, the syntax is: ":open keyword search-pattern".
Can anyone tell me how to change the "keyword" of a search engine? Or, give instruction on how to create a search engine of my own? (either on the web or locally loaded is fine.)
To edit the keyword for a search engine, double-click on the search engine's entry, or highlight it and press F2.
Solution in short, as kindly offered by Brandon Parmenter, goes as follows:
:bmark http://example.com/search#q=%s -keyword=example
Start of the longer/older answer
Though the solution inspired by the following link does not change the entries for search engine, it does offer a fully functional keyword feature.
wikiHow:How to Add a Custom Search Engine to Firefox's Search Bar
Unlike what has been suggested in the external link, no further add-on is needed. The following steps will complete the definition of a search-keyword:
Go to the page on which one can search. (Either google.com, or github.com, or whatever)
Right click the search box (through which one can type search inquiry) and select "Add a Keyword for this search"
Define the keyword and press enter
This is not defining a search engine, but rather a search-keyword. Keywords defined in this way is stored as a Bookmarks entry.
So far, it is yet unclear how would conflicting keywords between search-engines-keywords and one we just defined should be resolved. Hopefully, since Firefox is syncing Bookmarks items, search-keyword may be synced to other installations.
Since the question to modifying the search-engine-keyword is yet unsolved, I will not accept my own answer.
Additionally, if one would be interested to look into the Bookmark entry, %s is the "place-holder" in the "Location" field of such bookmark that will be subsituted by whatever one would like to search.
To programatically change the keyword of a search engine you can do it like this:
var allEngines = Services.search.getEngines()
for (var i=0; i<allEngines.length; i++) {
var currentEngine = allEngines[i];
console.log('name of current engine:', currentEngine.name);
var currentKeyword = currentEngine.alias; // is null if no current key word
}
To change the keyword programtically just set currentEngine.alias
Here is a variable viewer in browser console of allEngines you see its an array and each entry is like this, in this image here one entry is expanded:
If you know the name you can just get the engine by name with var currentEngine = Services.search.getEngineByName('Bing')

How do I exclude commented lines from searches in Xcode?

Is it possible to exclude commented lines (either individual, or groups) from searches in Xcode?
If so, how can this be done?
No, you cannot exclude comment lines from Xcode search.
You can use "search scopes" to search more efficiently in Xcode:
Reference by Apple docs:
The refined search navigator allows all current search options and settings to be seen at a glance. The options are easily manipulated by clicking directly on them in the search navigator. You can set search scopes, including selecting multiple folders in a project, and save them by name for easy re-use. The search results display wraps to allow you to see ore results easily and quickly.

Adobe InDesign Server examples

I'm new to Adobe InDesign Server and I'm having a hard time finding a good kitchen sink app. All the examples I got from the SDK seem to partially work. All I'm trying to do is use a master page from InDesign from the server side and edit certain text fields. For example placing first and last name in particular text fields. Does anyone know of a good place to get examples code that shows all the features or how I would approach this problem?
http://www.adobe.com/devnet/indesign/documentation.html#idserver Has a lot of resources that is useful when starting out. In particular http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/indesign/cs55-docs/InDesignServer/ids-solutions.pdf includes a number of code examples for various common operations.
As to your specific example, the typical way to go about it is:
1. Get the page object from the master pages list.
2. Iterate over each text field on the page.
3. Somehow identify the fields, for example by setting the script label in the template document and checking the labels of each text field you iterate through.
4. Set the contents of the text field.
A lot of the official InDesign documentation is partial.
Jongware also hosts the complete reference documentation:
http://www.jongware.com/idjshelp.html
Probably the reason why teh IDS documentation isn't that exhaustive is that dealing with the server version is an extension of the classical indesign use. So the exception of some peculiarities detailed in the ids sdk docs, you will find most of the help with InDesign Scripting guides ;)

Resources