ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Wick

by phyllisstein ST2 Removed

A Wikipedia reader for Sublime Text 2

Details

Installs

  • Total 132
  • Win 61
  • OS X 43
  • Linux 28
Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​github.​com

Wick for Sublime Text 2

Wick is a Sublime Text 2 plugin that speeds and supports the capillary action of knowledge. With just a few keystrokes, it pulls data from the Wikipedia into Sublime, swallowing audiovisual tinsel and formatting what's left as human-readable and readily-exportable Markdown. Whether you want to verify a definition or find a new direction for research, Wick will light the way.

Installation

The preferred method for installing Wick is through Sublime Package Control. It is also available as a GitHub repository.

Usage

Select a word or phrase and mash Ctrl+Alt+w (OS X) or Ctrl+Super+w (Windows and Linux), and Wick will display a panel with search results. Select an article to choose a section from its table of contents, if it's a longer article, or download and display the entire thing, if it's a shorter one. (The threshold for what constitutes a “long article” can be changed in Wick's settings.) You can skip the table of contents by adding Shift to your keystroke; short articles will still be fully downloaded, and you'll jump straight to the Introductions of long ones. Want to see your information in context? Set an amount of “padding” in its configuration and Wick will download and display a few sections before and after the one you select.

Configuration

Wick allows you to set the following options in Wick.sublime-settings:

  • "wikimedia_site" (default: wikipedia.org): Search another site that supports the Wikimedia API, like Wikibooks or Wiktionary. This can also be configured in the keybindings (see below).
  • "language" (default: “en”): Direct all queries to and download all results from your native tongue's Wikipedia.
  • "results_per_query" (default: 3): How many results should be displayed for each step in your search? This does not affect the total number of search results returned, only the number shown in each instance of the results panel.
  • **"default_to_intro"** (default: false): Sets whether selecting a long article displays its table of contents or its introduction. Adding Shift to the Wick keyboard shortcut will toggle this behavior on the fly.
  • **"short_article"** (default: 4): Articles with fewer than "short_article" sections are retrieved in their entirety, without the table-of-contents pane being displayed. Higher values will increase processing time.
  • "section_padding" (default: false): Set this to a number above zero and Wick will download and display that number of sections before and after the one you select.
  • "open_new_tab" (default: false): If true, Wick won't create new groups in your window.
  • "log_unparsed" (default: false): Log the raw HTML that's retried from the Wikipedia. Useful mostly in troubleshooting the Markdown conversion.

Additionally, you can add keybindings to the .sublime-keymap file for your platform to search a particular Wikimedia site. For example, this setting binds Ctrl+Alt+d to a Wiktionary search that returns the beginning of each definition by default:

{
    "keys": ["ctrl+alt+d"],
    "command": "wick",
    "args":
    {
        "site": "wiktionary.org",
        "toggle_intro": true
    }
}

Please be aware that this package has been tested primarily on the main Wikipedia site. There's no obvious reason that other sites using the Wikipedia software shouldn't work, but this should nevertheless be considered an experimental feature that makes glancing contact with the unknown.

Help and Support

If you have any problems with Wick, the GitHub “Issues” interface is probably a good place to start. You can also reach the author via Twitter or at d@daniel.sh.