Labs/Ubiquity/Ubiquity 0.5.5 Release Notes: Difference between revisions

From MozillaWiki
< Labs‎ | Ubiquity
Jump to navigation Jump to search
(clipboard.image)
 
(11 intermediate revisions by the same user not shown)
Line 2: Line 2:
Ubiquity 0.5.5 introduces new features and APIs as well as fixes bugs.
Ubiquity 0.5.5 introduces new features and APIs as well as fixes bugs.


= Download [https://bitbucket.org/satyr/ubiquity/downloads/tip.xpi It] =
= Download [http://bitbucket.org/satyr/ubiquity/downloads/tip.xpi It] =


= Thanks =
= Thanks =
Line 9: Line 9:


== Features ==
== Features ==
* Supports up to Firefox 3.7a2pre (but no longer supports 3.0.*).
* Supports up to Firefox 3.7a6pre (but no longer supports 3.0.*).
* More keys are allowed for the key combo to invoke Ubiquity.
* More keys are allowed for the key combo to invoke Ubiquity.
* The help view informs feed updates. ([http://ubiquity.mozilla.com/trac/ticket/835 #835])
* The help view informs feed updates. ([http://ubiquity.mozilla.com/trac/ticket/835 #835])
Line 15: Line 15:
* Bundled feeds use persistent URLs (resource: instead of file:), making profiles portable. ([http://ubiquity.mozilla.com/trac/ticket/882 #882])
* Bundled feeds use persistent URLs (resource: instead of file:), making profiles portable. ([http://ubiquity.mozilla.com/trac/ticket/882 #882])
* About pages got nicer URLs. (chrome://ubiquity/content/cmdlist.xhtml → about:ubiquity?cmdlist)
* About pages got nicer URLs. (chrome://ubiquity/content/cmdlist.xhtml → about:ubiquity?cmdlist)
* Command Editor is now Bespin thanks to [http://twitter.com/ChristianSonne cers].
* Command Editor is now [http://mozillalabs.com/bespin/ Bespin] thanks to [http://twitter.com/ChristianSonne cers].
* Setting {extensions.ubiquity.openAt} to "X,Y" makes Ubiquity open at that screen coordinates. ([http://getsatisfaction.com/mozilla/topics/open_ubiquity_window_at_outside_of_browser_window])
* Setting {extensions.ubiquity.openAt} to "X,Y" makes Ubiquity open at that screen coordinates. ([http://getsatisfaction.com/mozilla/topics/open_ubiquity_window_at_outside_of_browser_window])
* Clicking the highlighted suggestion executes it.
* Clicking the highlighted suggestion executes it.
* Suggestions are mouse-scrollable.
* Suggestions are mouse-scrollable.
* Non-left click on a popup menu entry opens its preview instead of executing it.
* Non-left click on a popup menu entry opens its preview instead of executing it.
* Repeating the last command is now possible (essentially the same as Ctrl+Space → Enter, but far faster). Set a key combo for it on [about:ubiquity?settings].
* Repeating the last command is now possible (essentially the same as Ctrl+Space → Enter, but far faster). Set a key combo for it on about:ubiquity?settings.
* Command histories are keyboard accessible.
* Command histories are keyboard accessible.
** Ctrl+↑↓ (or mouse scroll over command entry)
** Ctrl+↑↓ (or mouse scroll over command entry)
** Ctrl+(Shift)+Tab completes current input from history.
** Ctrl+(Shift)+Tab completes current input from history.
* Right click on command entry or preview browser opens context menu.


== Commands ==
== Commands ==
=== new ===
=== new ===
* Built-in
* Built-in
** "change skin"
** change skin
* Firefox
* Firefox
** "view extension" / "stop" / "print preview" / "open error console"
** view extension
** stop
** print preview
** open error console
* Developer
* Developer
** "jQuery API"
** unescape HTML entities
** view selection source
** jQuery API
=== changes ===
=== changes ===
* "check calendar" [http://getsatisfaction.com/mozilla/topics/dates_not_showing_with_check_calendar_command shows dates] correctly.
* "check calendar" [http://getsatisfaction.com/mozilla/topics/dates_not_showing_with_check_calendar_command shows dates] correctly.
* "translate" warns for API limit and fallbacks to page translation ([http://ubiquity.mozilla.com/trac/ticket/854 #854]), retains the original HTML, displays the detectedSourceLanguage, and supports default/alternate language settings ([http://ubiquity.mozilla.com/trac/ticket/884 #884]).
* "translate" warns for API limit and fallbacks to page translation ([http://ubiquity.mozilla.com/trac/ticket/854 #854]), retains the original HTML, displays the detectedSourceLanguage, and supports default/alternate language settings ([http://ubiquity.mozilla.com/trac/ticket/884 #884]).
** {extensions.ubiquity.translate.lang.default} : default language code to translate into
** {extensions.ubiquity.translate.lang.default} : default language code to translate into
** {extensions.ubiquity.translate.lang.alt} : alternate language code to tranlate into if the source language equals default language
** {extensions.ubiquity.translate.lang.alt} : alternate language code to translate into if the source language equals default language
* "weather" is improved by [http://twitter.com/mitcho mitcho].
* "weather" is improved by [http://twitter.com/themitcho mitcho].
* "open" acts also like awesomebar.
* "open" acts also like awesomebar.
* "email" works again by not using the broken [http://code.google.com/p/gmail-greasemonkey/wiki/GmailGreasemonkey10API gmonkey API].
* "email" works again by not using the broken [http://code.google.com/p/gmail-greasemonkey/wiki/GmailGreasemonkey10API gmonkey API].
* "zoom" zooms the current tab.
* "highlight syntax" uses [http://code.google.com/p/google-code-prettify/ google-code-prettify].
* Many search commands got better previews.
* Many search commands got better previews.
* Text editing commands work outside of rich-edits.
* Text editing commands work outside of rich-edits.


== Skin ==
== Skin ==
Because of the security fix, the default preview URL is changed. Use:
Because of a security fix, the default preview URL is changed. Use:
'''<pre>@-moz-document url(resource://ubiquity/preview.html) {</pre>'''
'''<pre>@-moz-document url(resource://ubiquity/preview.html) {</pre>'''
instead of:
instead of:
Line 52: Line 60:
== Parser ==
== Parser ==
* Dutch and German are supported.
* Dutch and German are supported.
* Changing the parser and/or parser language no longer require restart. ([http://ubiquity.mozilla.com/trac/ticket/760 #760])
* Changing the parser and/or parser language no longer requires restart. ([http://ubiquity.mozilla.com/trac/ticket/760 #760])
* Parser 1 handles partial modifiers ([http://ubiquity.mozilla.com/trac/ticket/889 #889]) and verbs on end.
* Parser 1 handles partial modifiers ([http://ubiquity.mozilla.com/trac/ticket/889 #889]) and verbs on end.


Line 61: Line 69:
* Functions prefixed with <code>teardown_</code> are executed on refreshing/purging the feed.
* Functions prefixed with <code>teardown_</code> are executed on refreshing/purging the feed.
* Specifying <code>author(s)/contributor(s)/license/homepage</code> to feed itself is now possible. Simply assign those properties to the <code>feed</code> object as you do with command objects.
* Specifying <code>author(s)/contributor(s)/license/homepage</code> to feed itself is now possible. Simply assign those properties to the <code>feed</code> object as you do with command objects.
* More globals: <code>atob btoa Audio Image DOMParser NodeFilter XMLSerializer</code>


=== Ubiquity ===
=== [https://ubiquity.mozilla.com/hg/ubiquity-firefox/raw-file/tip/ubiquity/index.html#chrome/content/ubiquity.js Ubiquity] ===
<code>execute() / preview()</code>
<code>execute() preview()</code>


=== Utils ===
=== [https://ubiquity.mozilla.com/hg/ubiquity-firefox/raw-file/tip/ubiquity/index.html#modules/utils.js Utils] ===
==== new ====
==== added ====
* <code>currentTab currentTabs tabs.from() BrowserTab()</code>
* <code>currentTab currentTabs tabs.from() tabs.length BrowserTab()</code>
* <code>chromeWindows hiddenWindow</code>
* <code>chromeWindows hiddenWindow</code>
* <code>sortBy() uniq() seq()</code>
* <code>sort() uniq() seq() count() extend() regexp() defineLazyProperty() unescapeHtml()</code>
* <code>clipboard.html clipboard.get() clipboard.set()</code>
* <code>clipboard.html clipboard.image clipboard.get() clipboard.set()</code>
* <code>regexp() notify() listenOnce() defineLazyProperty() reportError()</code>
* <code>notify() listenOnce() parseHtml() reportError()</code>
* <code>regexp.* prefs.* gist.*</code>
* <code>regexp.* prefs.* gist.*</code>


==== changes ====
==== changed ====
* <code>openUrlInBrowser()</code> conforms to {browser.tabs.loadInBackground} and returns the created tab or window.
* <code>openUrlInBrowser()</code> conforms to {browser.tabs.loadDivertedInBackground} and returns the created tab or window.
* <code>focusUrlInBrowser()</code> can focus across windows.
* <code>focusUrlInBrowser()</code> can focus across windows.
* <code>trim()/encodeJson()/decodeJson()/json</code> are deprecated.
* <code>ellipsify()</code> accepts plain string.
==== deprecated ====
* <code>trim() encodeJson() decodeJson() json</code>


=== CmdUtils ===
=== [https://ubiquity.mozilla.com/hg/ubiquity-firefox/raw-file/tip/ubiquity/index.html#modules/cmdutils.js CmdUtils] ===
==== new ====
==== added ====
* <code>CreateAlias() / getCommand() / executeCommand() / previewCommand()</code>
* <code>CreateAlias() getCommand() executeCommand() previewCommand()</code>
* <code>mixNouns()</code>
* <code>mixNouns()</code>
* <code>getSelectedNodes()</code>
* <code>isSelected getSelectedNodes() getSelectedRanges()</code>
==== changes ====
==== changed ====
* Some methods prefixed with get/set can be accessed as getters/setters. (<code>CmdUtils.getWindow() → CmdUtils.window</code>)
* Some methods prefixed with get/set can be accessed as getters/setters. (<code>CmdUtils.getWindow() → CmdUtils.window</code>)
* <code>makeSearchComand()</code> has "charset" option.
* <code>makeSearchComand()</code> is improved in a number of ways. See [[Labs/Ubiquity/Writing_A_Search_Command]].
* <code>onPageLoad()</code> supports GreaseMonkey style page filters.
* <code>onPageLoad()</code> supports [http://wiki.greasespot.net/Metadata_Block Greasemonkey style page filters].
* <code>injectCss()/injectHtml()/injectJs()/loadJQuery()</code> can specify target document.


=== Nouns ===
=== [https://ubiquity.mozilla.com/hg/ubiquity-firefox/raw-file/tip/ubiquity/index.html#modules/nountypes.js Nouns] ===
* <code>noun_type_url</code> supports Google Reader (https only).
==== added ====
* noun_type_skin
* noun_type_extension
==== changed ====
* <code>noun_type_url</code> supports [https://www.google.com/reader/view/ Google Reader] (https only).


=== jQuery ===
=== [http://jquery.com/ jQuery] ===
1.4.2
[http://jquery14.com/ 1.4.2]


== Bugs Fixed ==
== Bugs Fixed ==
Line 101: Line 117:
* Noisy dumps are removed. ([http://ubiquity.mozilla.com/trac/ticket/897 #897])
* Noisy dumps are removed. ([http://ubiquity.mozilla.com/trac/ticket/897 #897])
* Preview no longer has chrome privilege. ([http://ubiquity.mozilla.com/trac/ticket/714 #714])
* Preview no longer has chrome privilege. ([http://ubiquity.mozilla.com/trac/ticket/714 #714])
* extensions.ubiquity.inputLimit is added. ([http://ubiquity.mozilla.com/trac/ticket/507 #507])
* {extensions.ubiquity.inputLimit} is added. ([http://ubiquity.mozilla.com/trac/ticket/507 #507])
* <code>noun_type_url</code> is fixed. (was broken beyond belief)
* <code>noun_type_url</code> is fixed. (was broken beyond belief)
* The bug in <code>noun_type_percentage</code> is fixed, which should fix [http://getsatisfaction.com/mozilla/topics/ubiquity_zoom_comand_bug "zoom"].
* The bug in <code>noun_type_percentage</code> is fixed, which should fix [http://getsatisfaction.com/mozilla/topics/ubiquity_zoom_comand_bug "zoom"].

Latest revision as of 06:38, 19 June 2010

Main Features

Ubiquity 0.5.5 introduces new features and APIs as well as fixes bugs.

Download It

Thanks

In Depth

Features

  • Supports up to Firefox 3.7a6pre (but no longer supports 3.0.*).
  • More keys are allowed for the key combo to invoke Ubiquity.
  • The help view informs feed updates. (#835)
  • Toolbar button is added.
  • Bundled feeds use persistent URLs (resource: instead of file:), making profiles portable. (#882)
  • About pages got nicer URLs. (chrome://ubiquity/content/cmdlist.xhtml → about:ubiquity?cmdlist)
  • Command Editor is now Bespin thanks to cers.
  • Setting {extensions.ubiquity.openAt} to "X,Y" makes Ubiquity open at that screen coordinates. ([1])
  • Clicking the highlighted suggestion executes it.
  • Suggestions are mouse-scrollable.
  • Non-left click on a popup menu entry opens its preview instead of executing it.
  • Repeating the last command is now possible (essentially the same as Ctrl+Space → Enter, but far faster). Set a key combo for it on about:ubiquity?settings.
  • Command histories are keyboard accessible.
    • Ctrl+↑↓ (or mouse scroll over command entry)
    • Ctrl+(Shift)+Tab completes current input from history.
  • Right click on command entry or preview browser opens context menu.

Commands

new

  • Built-in
    • change skin
  • Firefox
    • view extension
    • stop
    • print preview
    • open error console
  • Developer
    • unescape HTML entities
    • view selection source
    • jQuery API

changes

  • "check calendar" shows dates correctly.
  • "translate" warns for API limit and fallbacks to page translation (#854), retains the original HTML, displays the detectedSourceLanguage, and supports default/alternate language settings (#884).
    • {extensions.ubiquity.translate.lang.default} : default language code to translate into
    • {extensions.ubiquity.translate.lang.alt} : alternate language code to translate into if the source language equals default language
  • "weather" is improved by mitcho.
  • "open" acts also like awesomebar.
  • "email" works again by not using the broken gmonkey API.
  • "zoom" zooms the current tab.
  • "highlight syntax" uses google-code-prettify.
  • Many search commands got better previews.
  • Text editing commands work outside of rich-edits.

Skin

Because of a security fix, the default preview URL is changed. Use:

@-moz-document url(resource://ubiquity/preview.html) {

instead of:

@-moz-document url(chrome://ubiquity/content/preview.html) {

Parser

  • Dutch and German are supported.
  • Changing the parser and/or parser language no longer requires restart. (#760)
  • Parser 1 handles partial modifiers (#889) and verbs on end.

New APIs

Default Feed

  • _() works outside of cmd.execute()/cmd.preview().
  • Functions prefixed with teardown_ are executed on refreshing/purging the feed.
  • Specifying author(s)/contributor(s)/license/homepage to feed itself is now possible. Simply assign those properties to the feed object as you do with command objects.
  • More globals: atob btoa Audio Image DOMParser NodeFilter XMLSerializer

Ubiquity

execute() preview()

Utils

added

  • currentTab currentTabs tabs.from() tabs.length BrowserTab()
  • chromeWindows hiddenWindow
  • sort() uniq() seq() count() extend() regexp() defineLazyProperty() unescapeHtml()
  • clipboard.html clipboard.image clipboard.get() clipboard.set()
  • notify() listenOnce() parseHtml() reportError()
  • regexp.* prefs.* gist.*

changed

  • openUrlInBrowser() conforms to {browser.tabs.loadDivertedInBackground} and returns the created tab or window.
  • focusUrlInBrowser() can focus across windows.
  • ellipsify() accepts plain string.

deprecated

  • trim() encodeJson() decodeJson() json

CmdUtils

added

  • CreateAlias() getCommand() executeCommand() previewCommand()
  • mixNouns()
  • isSelected getSelectedNodes() getSelectedRanges()

changed

Nouns

added

  • noun_type_skin
  • noun_type_extension

changed

jQuery

1.4.2

Bugs Fixed

  • XML errors on Command List are catched and reported.
  • PNG file sizes are reduced. (#888)
  • XHTML feeds auto-refresh correctly. (#611)
  • Noisy dumps are removed. (#897)
  • Preview no longer has chrome privilege. (#714)
  • {extensions.ubiquity.inputLimit} is added. (#507)
  • noun_type_url is fixed. (was broken beyond belief)
  • The bug in noun_type_percentage is fixed, which should fix "zoom".