68 Commits

Author SHA1 Message Date
NTCong
0fcd636031 remove keywords sorting 2017-01-16 16:27:32 +07:00
Utkarsh Upadhyay
b576a41fe7 Add defaults for tex filetype. 2016-08-02 18:04:15 +02:00
José Otávio Rizzatti Ferreira
4b01b6cd20 Fix VimL syntax 2016-01-24 07:39:59 -02:00
José Otávio Rizzatti Ferreira
6e06897997 Use filetype only if dashkeywords empty 2016-01-24 07:39:39 -02:00
José Otávio Rizzatti Ferreira
81ce68b432 Fix duplicate entries in DashKeywords 2016-01-24 06:26:38 -02:00
José Otávio Rizzatti Ferreira
3cf5831866 Fix autocommand 2016-01-24 06:09:22 -02:00
José Otávio Rizzatti Ferreira
14010a8f58 Add dash_activate option to save on Command+Tab 2016-01-24 06:06:58 -02:00
José Otávio Rizzatti Ferreira
ca61e55f3d Remove dead code 2016-01-24 05:43:49 -02:00
José Otávio Rizzatti Ferreira
fe2a79d480 Add bang to DashKeywords 2016-01-24 05:28:10 -02:00
José Otávio Rizzatti Ferreira
3c435605d2 Change Dash open command to use -g 2015-08-13 03:06:23 -03:00
José Otávio Rizzatti
4b4a86cea7 Remove uniq function (fixes #22) 2014-06-09 10:09:56 -04:00
José Otávio Rizzatti
07cad225bd Fix user autocommands for DashKeywords (fixes #24) 2014-06-09 10:08:10 -04:00
José Otávio Rizzatti
a4f9f525c7 Wrap the dash map code in a function 2014-06-09 09:25:18 -04:00
Thiago Alves
c682df0c15 Make the plugin respect the g:dash_map variable.
[Problem]
For some reason the documentation states that as a user I can set g:dash_map
global variable with a dictionary of "vim filetype" -> "dash docset" and
dash.vim will honor this map when calling Dash.app. Unfortunately this global
variable is never used in the plugin.

[Solution]
On autoload/dash.vim read the global variable and update the plugin map to honor
it.

[Note]
This change also makes possible to define a full list as a value on the
dictionary allowing the user to fully replace all the docsets defined by
default.
Also, the documentation was updated to reflect the change.
2014-05-20 14:21:38 -07:00
Bogdan Popescu
d1ed42a1ba Add AngularJS keyword 2014-05-17 23:43:31 +03:00
Bogdan Popescu
c18b733dd4 Dash 2.1 keywords 2014-05-16 04:15:36 +03:00
José Otávio Rizzatti
bd185c4a9a Remove aliases 2014-05-06 15:19:41 -04:00
José Otávio Rizzatti
3ebbcb2d02 Remove dependency on the cache 2014-05-06 14:42:46 -04:00
José Otávio Rizzatti
e9b26cf5aa Remove processing of plist 2014-05-03 17:12:22 -04:00
José Otávio Rizzatti
ad84ebc112 Check for autocommand presence 2014-05-03 16:34:15 -04:00
José Otávio Rizzatti
bb608a7577 Move defaults to their own file 2014-03-16 16:13:32 -04:00
José Otávio Rizzatti
673405d186 Take into account versioned docsets 2014-03-16 15:55:59 -04:00
José Otávio Rizzatti
0e1f23dc17 Always adds new keywords instead of resetting 2014-03-16 15:39:55 -04:00
José Otávio Rizzatti
aa783b1f93 Add default keywords for searching withing Dash
Creates a list of mappings for docsets and filetypes known to vim, which
will let most users automatically search a group of their installed
docsets whenever they are in a recognized filetype.

This list will be following the descriptions in accordance with:
http://kapeli.com/dash_plugins
2014-03-16 15:25:42 -04:00
José Otávio Rizzatti
9d7b4354b1 Improve DashKeywords
Calling DashKeywords without arguments will show the keywords set for
the current buffer.
2014-03-16 11:32:16 -04:00
José Otávio Rizzatti
cdf9df09e5 Damn old version of vim (fixes #15)
OS X provided vim, although is 7.3, is crap.

It's sort() function takes only 2 arguments, and later versions of vim
accept 3 arguments which broke the damn plugin, because the author uses
MacVim (and so should you :).
2014-03-12 12:07:20 -04:00
José Otávio Rizzatti
978272ccd6 Implements new plugin protocol (closes #12)
The new protocol is described at http://kapeli.com/dash_plugins

I do not take care of 'percent encoding' the queries, however, as
normally those are used for method name lookups, which should be a
single word.
2014-02-20 01:33:10 -04:00
José Otávio Rizzatti
9043524a52 DashKeywords broke the cache (fixes #6) 2013-08-30 10:49:18 -04:00
Dan Brown
9f4508b24f Escape shell characters in query before running 2013-07-19 16:00:02 +01:00
Ches Martin
9c63c2e252 Fix assumption of isKeywordTrigger dict presence
The key is not present on all trigger dicts.
2013-05-18 03:22:58 +07:00
José Otávio Rizzatti
40f2cccd07 Update headers 2013-03-19 15:39:15 -04:00
José Otávio Rizzatti
67babc9126 Lower case all keywords 2013-03-19 14:26:29 -04:00
José Otávio Rizzatti
d9ed29c293 Show keyword for profiles in DashSettings 2013-03-19 14:23:37 -04:00
José Otávio Rizzatti
c564632c26 Fix minor issues on rewrite 2013-03-19 14:03:09 -04:00
José Otávio Rizzatti
42c903cc11 Reorganize the search function 2013-03-19 13:20:07 -04:00
José Otávio Rizzatti
5dabf0ea5a Add function to add keywords to the current buffer 2013-03-19 04:09:36 -04:00
José Otávio Rizzatti
c720648272 Add dummy functions for entry points 2013-03-19 04:08:38 -04:00
José Otávio Rizzatti
ef2da370fa Removes obsolete code 2013-03-19 04:06:13 -04:00
José Otávio Rizzatti
89779ea2c8 Show settings using the new cache 2013-03-19 03:58:15 -04:00
José Otávio Rizzatti
efbf120492 Complete using the new cache 2013-03-19 03:57:42 -04:00
José Otávio Rizzatti
46dd873764 Sort docsets by name in the cache 2013-03-19 03:56:56 -04:00
José Otávio Rizzatti
cd4dd64938 Handle special cases for docset keywords 2013-03-19 01:57:16 -04:00
José Otávio Rizzatti
8bf08548ef Add keywords cache 2013-03-19 01:24:13 -04:00
José Otávio Rizzatti
8d93b473fc Add 3 new classes to the plugin
* Add a cache class
* Add a docset class to encapsulate docset info
* Add a profile class to encapsulate profile info

* Add dependency on funcoo.vim
2013-03-18 23:33:07 -04:00
José Otávio Rizzatti
c0e99beb3a Update url references 2013-03-18 16:07:37 -04:00
Zeh Rizzatti
54bfea2f4b Fix tiny bug on :Dash 2013-03-18 04:07:19 -04:00
Zeh Rizzatti
02da0f31ed Consolidate get and set into DashDocsets command 2013-03-16 19:05:09 -04:00
Zeh Rizzatti
56d6589af0 Add DashGetDocsets command 2013-03-16 17:05:30 -04:00
Zeh Rizzatti
71bdd0dbbd Consider options from DashSetDocsets on search 2013-03-16 16:49:12 -04:00
Zeh Rizzatti
ed3749f87e Rename command DashDocsets to DashListDocsets 2013-03-16 03:47:00 -04:00