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

Add g:qthelp_tags option
Optionally contains custom value for the 'tags' option, which will
be used to look for Qt documentation tags.

Thanks to Dmitry Frank.
Author: xaizek
Author date (UTC): 2013-06-10 19:26
Committer name: xaizek
Committer date (UTC): 2013-06-10 19:26
Parent(s): 8d8c5cfb133389749323594f37902d0d8059bb6d
Signing key:
Tree: 5d18e9a3469d067b7823bea3b36fb1f39f6f107c
File Lines added Lines deleted
plugin/qthelp.vim 16 3
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
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