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
Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12
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.