|
From: | Max Nikulin |
Subject: | Re: man integration with tramp |
Date: | Sat, 7 Oct 2023 23:37:17 +0700 |
User-agent: | Mozilla Thunderbird |
On 07/10/2023 19:00, Michael Albinus wrote:
Max Nikulin writes:man -l - </usr/share/man/man1/man.1.gzHowever, this will be the second choice only for showing remote man pages, because the local man command could not handle references well I fear. And completion candidates for other man pages won't work for remote hosts either with this approach.
I suggested it for Tramp methods which do not support remote processes.However if a man page is opened through path to the file (instead of just page name) then neighbor files and directories should be considered before standard MANPATH when another man page is opened from this buffer. It does not matter if it is a remote or a local file. Likely the current page is from another set that is e.g. newer or older than system pages.
WoMan has code that travels through directories to build completion list. However I do not like that WoMan does not allow to specify section as man(7) and requires additional step to choose appropriate section. Perhaps a part of related code may be reused.
[Prev in Thread] | Current Thread | [Next in Thread] |