xaizek / vim-qthelp (License: Unspecified) (since 2018-12-07)
This plugin opens Qt help pages in browser from C++ source code.
Commit 1b5d2a8172b83adf1e66c45f65c82bb9ac1e4f6e

Fix support of tags files without apple_refs
For the :QHelp command, which wasn't updated to handle such help files.

Thanks to Dmitry Frank.
Author: xaizek
Author date (UTC): 2013-03-09 14:44
Committer name: xaizek
Committer date (UTC): 2013-06-10 18:21
Parent(s): 917f6232b52453db71d16a25e429d9aaacf1ae87
Signing key:
Tree: c48bcd48119c1d197fd37d7e96ccc85c50dd9c24
File Lines added Lines deleted
plugin/qthelp.vim 6 11
File plugin/qthelp.vim changed (mode: 100644) (index 6b2322a..7684259)
1 1 " Name: qthelp " Name: qthelp
2 2 " Author: xaizek (xaizek@gmail.com) " Author: xaizek (xaizek@gmail.com)
3 " Version: 1.1.1
3 " Version: 1.1.2
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
 
55 55 " v1.0.1 (2013-03-09) - Fixed multiple load guard " v1.0.1 (2013-03-09) - Fixed multiple load guard
56 56 " v1.1.1 (2013-03-09) - Added support for latest versions of Qt " v1.1.1 (2013-03-09) - Added support for latest versions of Qt
57 57 " (thanks to Dmitry Frank). " (thanks to Dmitry Frank).
58 " v1.1.2 (2013-05-14) - Fixed support for latest versions of Qt
59 " by the :QHelp command (thanks to Dmitry
60 " Frank).
58 61
59 62 if exists("g:loaded_qthelp") if exists("g:loaded_qthelp")
60 63 finish finish
 
... ... function! s:QHGetTagsList(query)
201 204
202 205 let l:regex = '\('.s:idregex.'\)::\('.s:idregex.'\)' let l:regex = '\('.s:idregex.'\)::\('.s:idregex.'\)'
203 206 if empty(matchstr(a:query, l:regex)) if empty(matchstr(a:query, l:regex))
204 let l:lst = taglist('//apple_ref/cpp/cl//'.a:query.'$')
207 let l:lst = s:QHTryFindClass(a:query)
205 208 let b:membername = '' let b:membername = ''
206 209 else else
207 210 let l:class = substitute(a:query, l:regex, '\1', '') let l:class = substitute(a:query, l:regex, '\1', '')
208 211 call s:QHDebug('QHDBG: QHGetTagsList, class="'.l:class.'"') call s:QHDebug('QHDBG: QHGetTagsList, class="'.l:class.'"')
209 212 let l:member = substitute(a:query, l:regex, '\2', '') let l:member = substitute(a:query, l:regex, '\2', '')
210 213 call s:QHDebug('QHDBG: QHGetTagsList, member="'.l:member.'"') call s:QHDebug('QHDBG: QHGetTagsList, member="'.l:member.'"')
211 let l:lst = taglist('//apple_ref/cpp/clm/'.l:class.'/'.l:member.'$')
212 if empty(l:lst)
213 let l:lst = taglist('//apple_ref/cpp/instm/'
214 \.l:class.'/'.l:member.'$')
215 endif
216 if empty(l:lst)
217 let l:lst = taglist('//apple_ref/cpp/tag/'
218 \.l:class.'/'.l:member.'$')
219 endif
214 let l:lst = s:QHGetTagsListOnMember(l:class, l:member)
220 215 let b:membername = l:member let b:membername = l:member
221 216 endif endif
222 217
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vim-qthelp

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vim-qthelp

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master