• Stars
    star
    1,325
  • Rank 35,471 (Top 0.7 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 12 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dash integration for Sublime Text

DashDoc provides integration of Dash (on OS X), Zeal (on Linux) and Zeal or Velocity (on Windows) into Sublime Text.

If the package is not available in the install list

You need to be on OS X, Windows or Linux to use DashDoc. You might have installed it already. If nothing helps, please check package control troubleshooting page or fill a bug against package control.

Usage

You can look up the word under the cursor or selected text in Dash using ctrl+h.

Installation

  1. Install the Sublime Package Control package.
  2. Use Package Control to install this package (DashDoc)

Hotkey configuration

DashDoc no longer comes with a default hotkey.

To set up the hotkey for dash open the Preferences > Key Bindings from the menu and add a new entry that looks like this:

[{ "keys": ["YOUR HOTKEY"], "command": "dash_doc"}]

for the default mode

[{ "keys": ["YOUR HOTKEY"], "command": "dash_doc",
                           "args": { "flip_syntax_sensitive": true } }]

for the flipped case sensitive mode.

Dependencies

xdg-utils on Linux.

Options

As usual, you will find the associated settings under the Preferences / Package Settings / DashDoc menu. Personal settings should be made in Settings - User.

Search any topic

DashDoc also includes a command to search any topic right from Sublime's command palette.

Syntax sensitivity

By default, DashDoc is sensitive to the syntax used in the current view. Dash will then consult the docset that matches the current syntax. Example: a lookup for map in a Haskell buffer will instruct Dash to search in its haskell docset, a search for the same word in a Python buffer will consult the python docset instead.

Syntax-insensitive search may be invoked using the ctrl+alt+h hotkey. You have an option to switch the default method of searching with config option syntax_sensitive_as_default, which defaults to true. If you set it to false, then ctrl+h becomes syntax-insensitive, and ctrl+alt+h becomes the sensitive option.

Choosing a Dash docset for a given syntax

For any Sublime Text syntax, DashDoc can search a number of docsets of your choosing. Use map entries of the form { <syntax> : [ <docset>, <docset>, ... ] }. For <docset>, use the lowercase docset prefixes that Dash indicates in its Preferences / Docsets pane. Dash searches the list of docsets in the given order.

For particular projects, you can override individual syntax-to-docsets mappings in the settings of the project's .sublime-project file, for example:

"settings": {
  "syntax_docset_map": {
    "Objective-C": ["iphoneos", "cocos2d"]
  }
}

Mappings that are not overridden this way default to what is found in the DashDoc.sublime-settings file. The default mapping, derived from Dash's suggestion, is:

"syntax_docset_map":
{
  "ActionScript"          : ["actionscript"],
  "Boo"                   : ["unity3d"],
  "C"                     : ["c", "glib", "gl2", "gl3", "gl4", "manpages"],
  "C99"                   : ["c", "glib", "gl2", "gl3", "gl4", "manpages"],
  "C++"                   : ["cpp", "net", "boost", "qt", "cvcpp", "cocos2dx", "c", "manpages"],
  "C++11"                 : ["cpp", "net", "boost", "qt", "cvcpp", "cocos2dx", "c", "manpages"],
  "Clojure"               : ["clojure"],
  "CoffeeScript"          : ["coffee"],
  "ColdFusion"            : ["cf"],
  "CSS"                   : ["css", "bootstrap", "foundation", "less", "awesome", "cordova", "phonegap"],
  "Dart"                  : ["dartlang", "polymerdart", "angulardart"],
  "Elixir"                : ["elixir"],
  "Erlang"                : ["erlang"],
  "Go"                    : ["go", "godoc"],
  "GoSublime"             : ["go", "godoc"],
  "GoSublime-Go"          : ["go", "godoc"],
  "Groovy"                : ["groovy"],
  "Haskell"               : ["haskell"],
  "Haskell-SublimeHaskell": ["haskell"],
  "Literate Haskell"      : ["haskell"],
  "HTML"                  : ["html", "svg", "css", "bootstrap", "foundation", "awesome", "statamic", "javascript", "jquery", "jqueryui", "jquerym", "angularjs", "backbone", "marionette", "meteor", "moo", "prototype", "ember", "lodash", "underscore", "sencha", "extjs", "knockout", "zepto", "cordova", "phonegap", "yui"],
  "Jade"                  : ["jade"],
  "Java"                  : ["java", "javafx", "grails", "groovy", "playjava", "spring", "cvj", "processing", "javadoc"],
  "JavaScript"            : ["javascript", "jquery", "jqueryui", "jquerym", "angularjs", "backbone", "marionette", "meteor", "sproutcore", "moo", "prototype", "bootstrap", "foundation", "lodash", "underscore", "ember", "sencha", "extjs", "knockout", "zepto", "yui", "d3", "svg", "dojo", "coffee", "nodejs", "express", "mongoose", "moment", "require", "awsjs", "jasmine", "sinon", "grunt", "chai", "html", "css", "cordova", "phonegap", "unity3d", "titanium"],
  "Kotlin"                : ["kotlin"],
  "Less"                  : ["less"],
  "Lisp"                  : ["lisp"],
  "Lua"                   : ["lua", "corona"],
  "Markdown"              : ["markdown"],
  "MultiMarkdown"         : ["markdown"],
  "Objective-C"           : ["iphoneos", "macosx", "appledoc", "cocos2d", "cocos3d", "kobold2d", "sparrow", "cocoapods", "c", "manpages"],
  "Objective-C++"         : ["cpp", "iphoneos", "macosx", "appledoc", "cocos2d", "cocos2dx", "cocos3d", "kobold2d", "sparrow", "cocoapods", "c", "manpages"],
  "Objective-J"           : ["cappucino"],
  "OCaml"                 : ["ocaml"],
  "Perl"                  : ["perl", "manpages"],
  "PHP"                   : ["php", "wordpress", "drupal", "zend", "laravel", "yii", "joomla", "ee", "codeigniter", "cakephp", "phpunit", "symfony", "typo3", "twig", "smarty", "phpp", "html", "statamic", "mysql", "sqlite", "mongodb", "psql", "redis"],
  "Processing"            : ["processing"],
  "Puppet"                : ["puppet"],
  "Python"                : ["python", "django", "twisted", "sphinx", "flask", "tornado", "sqlalchemy", "numpy", "scipy", "salt", "cvp"],
  "R"                     : ["r"],
  "Ruby"                  : ["ruby", "rubygems", "rails"],
  "Ruby on Rails"         : ["ruby", "rubygems", "rails"],
  "(HTML) Rails"          : ["ruby", "rubygems", "rails", "html", "svg", "css", "bootstrap", "foundation", "awesome", "statamic", "javascript", "jquery", "jqueryui", "jquerym", "angularjs", "backbone", "marionette", "meteor", "moo", "prototype", "ember", "lodash", "underscore", "sencha", "extjs", "knockout", "zepto", "cordova", "phonegap", "yui"],
  "(JavaScript) Rails"    : ["ruby", "rubygems", "rails", "javascript", "jquery", "jqueryui", "jquerym", "angularjs", "backbone", "marionette", "meteor", "sproutcore", "moo", "prototype", "bootstrap", "foundation", "lodash", "underscore", "ember", "sencha", "extjs", "knockout", "zepto", "yui", "d3", "svg", "dojo", "coffee", "nodejs", "express", "mongoose", "moment", "require", "awsjs", "jasmine", "sinon", "grunt", "chai", "html", "css", "cordova", "phonegap", "unity3d"],
  "(SQL) Rails"           : ["ruby", "rubygems", "rails"],
  "Ruby Haml"             : ["haml"],
  "Rust"                  : ["rust"],
  "Sass"                  : ["sass", "compass", "bourbon", "neat", "css"],
  "Scala"                 : ["scala", "akka", "playscala", "scaladoc"],
  "Shell-Unix-Generic"    : ["bash", "manpages"],
  "SQL"                   : ["mysql", "sqlite", "psql"],
  "TCL"                   : ["tcl"],
  "TSS"                   : ["titanium"],
  "TypeScript"            : ["typescript", "javascript", "react", "nodejs", "jquery", "jqueryui", "jquerym", "angularjs", "backbone", "marionette", "meteor", "sproutcore", "moo", "prototype", "bootstrap", "foundation", "lodash", "underscore", "ember", "sencha", "extjs", "knockout", "zepto", "yui", "d3", "svg", "dojo", "express", "mongoose", "moment", "require", "awsjs", "jasmine", "sinon", "grunt", "chai", "html", "css", "cordova", "phonegap", "unity3d", "titanium"],
  "YAML"                  : ["yaml"],
  "XML"                   : ["xml", "titanium"]
}

More information on Dash docsets.

Credits

More Repositories

1

shiny

a shiny test framework for rust
Rust
94
star
2

nixhelm

This is a collection of helm charts in a nix-digestable format.
Nix
77
star
3

bplist-python

Apple binary Property List reader/writer for Python
Python
68
star
4

cocotron

Cross-platform Objective-C API similar to Apple's Cocoa (unofficial svn fork)
Objective-C
45
star
5

rly

A simple ruby implementation of lex and yacc, based on Python's ply
Ruby
40
star
6

Injective

Cocoa / Cocoa Touch Dependency Injection framework with features for simpler TDD
Objective-C
40
star
7

cake

Nix
31
star
8

mediagic

PHP
30
star
9

gonix

Go bindings to nix API
Go
26
star
10

iphone-pinentry

iPhone pin entry controller and a custom numpad view
Objective-C
25
star
11

motion-redgreen

mdks / rm-redgreen wrapped in a gem
Ruby
25
star
12

BackInMotion

RubyMotion helper classes for Objective-C.
Objective-C
17
star
13

arm-demos

ARM project demos
C
16
star
14

nix-kube-generators

A set of functions helping to generate k8s yamls.
Nix
14
star
15

nix-kube-modules

A nixos module to configure helm charts to be installed into k3s
Nix
12
star
16

nativecapp

Qt port of NativeHost for Cappuccino
C++
11
star
17

DockDNS

A simple DNS forwarder that also happens to resolve docker container names
Go
9
star
18

ios-tdd

Supplementary material for iOS TDD Talk
Shell
9
star
19

motion-memorymanagement

Zero weak references for RubyMotion!
Objective-C
9
star
20

motion-yandexmapkit

YandexMapKit for RubyMotion
Objective-C
8
star
21

xmpp-framework

Clone of http://code.google.com/p/xmppframework
Objective-C
8
star
22

plcrashreporter

PLCrashReporter fork off svn
Objective-C
7
star
23

metanotes-legacy

TypeScript
7
star
24

nixdockertag

A simple repository that tracks the docker image hashes for floating tags.
Python
6
star
25

caparse

Cappuccino source code parser and analyzer
Python
5
star
26

tw-plugins

JavaScript
4
star
27

typewriter-scroll

Atom package that enables the typewriter scroll mode
CoffeeScript
4
star
28

MacLOR

Objective-C
4
star
29

nbtb

The No-Bullshit Tulpa Book
CSS
4
star
30

Sharecode

Cocoa code sharing and collaboration utility
Python
3
star
31

kubernetes-incubator-external-storage

A clone of kubernetes-incubator/external-storage
Go
3
star
32

Nanotomy

iPod Nano 6G hacking tools.
3
star
33

metanotes

An experiment in a self-hosting dynamic wiki system/personal knowledge space
TypeScript
3
star
34

motion-fixtures

Simple support for test fixtures in rubymotion
Ruby
3
star
35

resclient-dart

A resgate.io client for dart
Dart
2
star
36

motion_build

An experiment to make a modern RubyMotion build system
Ruby
2
star
37

safarixpath

XPath browser plugin for Safari
Objective-C
2
star
38

CardIODemo

card.io demo app in rubymotion
Ruby
2
star
39

nix-zfs-diff

zfs diff that aggregates symlinks and makes nix usage a bit more sane
Nix
2
star
40

mdhcpd

Small DHCP server with etcd3 backend
Rust
2
star
41

lxc-deploy

Quick LXC deployment tools
1
star
42

ravenry

Dart
1
star
43

obsidian-jira-links

TypeScript
1
star
44

NetState

Tiny lib to make real use of iPhone's network activity indicator
Objective-C
1
star
45

eyeperture

Aperture command line tool
Python
1
star
46

bashbest

Bash.org.ru clone tool
Python
1
star
47

photodev

photo.dev platform
Ruby
1
star
48

nekotrack

Bug tracking for the rest of us
1
star
49

nextdns-docker

Nix
1
star
50

nix-argocd-builder

nixos/nix image modified to work with argocd out of the box
Dockerfile
1
star
51

obsidian-youtube-importer

TypeScript
1
star
52

mucklet-chatbot

A simple chatbot for mucklet
Dart
1
star
53

rustedirc

Simple IRC server in Rust
Rust
1
star