File plugin/qthelp.vim changed (mode: 100644) (index 242ce6e..2bec563) |
1 |
1 |
" Name: qthelp |
" Name: qthelp |
2 |
2 |
" Author: xaizek (xaizek@lavabit.com) |
" Author: xaizek (xaizek@lavabit.com) |
3 |
|
" Version: 1.1.5 |
|
|
3 |
|
" Version: 1.1.6 |
4 |
4 |
" |
" |
5 |
5 |
" Description: This plugin would allow you to open Qt help pages in browser |
" Description: This plugin would allow you to open Qt help pages in browser |
6 |
6 |
" from your C++ source code. Currently it can show help if the word |
" from your C++ source code. Currently it can show help if the word |
|
35 |
35 |
" it's possible to specify parameter list along with command |
" it's possible to specify parameter list along with command |
36 |
36 |
" to be executed. URL is appended to this command after a |
" to be executed. URL is appended to this command after a |
37 |
37 |
" space. |
" space. |
38 |
|
" 4. Map command QHelpOnThis on some hotkey. |
|
39 |
|
" 5. Use QHelp from command-line for faster navigating through |
|
|
38 |
|
" 4. Optionally setup g:qthelp_tags variable with custom value |
|
39 |
|
" for the 'tags' option, which will be used to look for Qt |
|
40 |
|
" documentation tags. |
|
41 |
|
" 5. Map command QHelpOnThis on some hotkey. |
|
42 |
|
" 6. Use QHelp from command-line for faster navigating through |
40 |
43 |
" help (to escape manual searching of needed section). |
" help (to escape manual searching of needed section). |
41 |
44 |
" |
" |
42 |
45 |
" Limitation: I didn't found a way to determine inheritance hierarchy using |
" Limitation: I didn't found a way to determine inheritance hierarchy using |
|
67 |
70 |
" Windows (thanks to Dmitry Frank). |
" Windows (thanks to Dmitry Frank). |
68 |
71 |
" v1.1.5 (2013-05-15) - Don't escape g:qthelp_browser on |
" v1.1.5 (2013-05-15) - Don't escape g:qthelp_browser on |
69 |
72 |
" invocation (thanks to Dmitry Frank). |
" invocation (thanks to Dmitry Frank). |
|
73 |
|
" v1.1.6 (2013-05-15) - Add g:qthelp_tags option (thanks to |
|
74 |
|
" Dmitry Frank). |
70 |
75 |
|
|
71 |
76 |
if exists("g:loaded_qthelp") |
if exists("g:loaded_qthelp") |
72 |
77 |
finish |
finish |
|
... |
... |
command! -nargs=1 QHelp call QHHelp('<args>') |
110 |
115 |
" underneath the cursor |
" underneath the cursor |
111 |
116 |
function! QHHelp(query) |
function! QHHelp(query) |
112 |
117 |
call s:QHDebug('QHDBG: QHHelp(cword="'.a:query.'")') |
call s:QHDebug('QHDBG: QHHelp(cword="'.a:query.'")') |
|
118 |
|
|
|
119 |
|
let l:tags = &l:tags |
|
120 |
|
if exists('g:qthelp_tags') |
|
121 |
|
let &l:tags = g:qthelp_tags |
|
122 |
|
endif |
|
123 |
|
|
113 |
124 |
if empty(a:query) |
if empty(a:query) |
114 |
125 |
let l:lst = s:QHGetTagsListUC() |
let l:lst = s:QHGetTagsListUC() |
115 |
126 |
else |
else |
|
... |
... |
function! QHHelp(query) |
122 |
133 |
call s:QHDebug('QHDBG: QHHelp, filename="'.l:lst[0]['filename'].'"') |
call s:QHDebug('QHDBG: QHHelp, filename="'.l:lst[0]['filename'].'"') |
123 |
134 |
call <SID>QHOpenBrowser(l:lst[0]['filename']) |
call <SID>QHOpenBrowser(l:lst[0]['filename']) |
124 |
135 |
endif |
endif |
|
136 |
|
|
|
137 |
|
let &l:tags = l:tags |
125 |
138 |
endfunction |
endfunction |
126 |
139 |
|
|
127 |
140 |
" determines if a class name, a variable name or a class member name is |
" determines if a class name, a variable name or a class member name is |