Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[RDY] Man and Help TOC #5169
@nhooyr I have another potential PR after this one is merged:
That would allow the man page to reload if you run
@tweekmonster Great idea!
autocmd BufEnter man://* \ if exists('b:manwidth') && line('$') == 1 && getline(1) ==# '' | \ unlet b:manwidth | \ silent execute 'Man' matchstr(expand('<amatch>'), 'man://\zs.*') | \ endif
Instead of checking if
I think it is sufficient for
I always use
Actually, sanity is the same reason for the
If it works for you without any issues for you, you should include the autocmd in your general fixes PR. I tested
referenced this pull request
Aug 5, 2016
Oh for sure! I feel bad that I forgot about it. You should be able to pull from my fork to continue it, but it might be easier to start over since this is way outdated now. Is there something I should do besides closing this PR?
Just a suggestion: Something I've been toying with recently is altering the quickfix buffer to condense the location list. The filename is irrelevant and simply using syntax to conceal it is annoying because it still affects cursor movement. The TOC might be a good place to do something like this.
added a commit
this pull request
Mar 1, 2017
Dammit! I actually started on a
Re "global concept", I mean having the concept be something that's provided differently in different filetypes. TOC is the particular application of "outline mode" for man and help buffers, but probably not for code files (I would guess tags/LSP/etc. would be used there instead).
So the "concept" is exposed as a mapping, I guess