Cleans up the docs
This commit is contained in:
parent
604b1f6e55
commit
619c2b1e7b
|
@ -139,7 +139,7 @@ netclient can be configured in a number of different ways.
|
|||
|
||||
let g:netclient_web_search = "https://duckduckgo.com/html/?q=%s"
|
||||
let g:netclient_web_search = "gemini://rawtext.club:1965/~sloum/cgi/weather?%s"
|
||||
let g:netclient_gopher_search = "gopher://some.gopherhole.com/7/input my input
|
||||
let g:netclient_gopher_search = "gopher://some.gopherhole.com/7/input %s"
|
||||
|
||||
Note that gopher, rather than using a query string, places
|
||||
a tab character at the end of the line and then adds the
|
||||
|
|
|
@ -56,12 +56,17 @@ function NetclientClearBuffer()
|
|||
call deletebufline(bufname(), 1, line("$"))
|
||||
endfunction
|
||||
|
||||
" TODO update this to take an actual URL passed here
|
||||
function NetclientFindURL(num)
|
||||
let l:url = ""
|
||||
if NetclientIsUrlSimple(a:num)
|
||||
return a:num
|
||||
elseif a:num
|
||||
" The later part of this should verify that there is at
|
||||
" least a :// in the link, rather than just being text.
|
||||
" Otherwise there is a risk of it getting an ordered list
|
||||
" item instead of the link. In theory, that is still possible
|
||||
" if an ordered list item has nothing but a URL in it...
|
||||
" Think on this
|
||||
let l:exp = "^\\s\\+". a:num . "\\.\\s*\\(\\S\\+\\)"
|
||||
let l:line = getline(search(l:exp, "cnwb"))
|
||||
if l:line == ""
|
||||
|
|
Loading…
Reference in New Issue