puppylinux-woof-CE / woof-CE

woof - the Puppy builder
GNU General Public License v2.0
396 stars 282 forks source link

Man page reading #1894

Open sc0ttj opened 3 years ago

sc0ttj commented 3 years ago

Puppy doesn't make it very easy to read man pages.. The problem is pman:

  1. If running X, as far as I can tell, it forces you to view the desired man in a browser.
  2. It also makes you give the section in order to get straight to the man page (so ffmpeg.1, not just ffmpeg)
  3. It searches only a handful of sites
  4. It often returns outdated manpages, not for the actual packages versions you have installed
  5. It doesn't save the man pages you've already viewed (by default, at least)
  6. does pman even work without X? I'm not sure it would..

I have written w3m-man (https://github.com/sc0ttj/w3m-man), which has the following features:

I mention all this cos I have finally got a nice man page reader in the terminal, that can show me man pages of things, even if not installed, and always shows the right man page for the version of any program I do have installed.

Sooo.. I went and added a pkg man <pkgname> command:

Admittedly, the pkg man <pkgname> command is a bit useless without w3m-man, it would open the man pages in a browser (using pman) and take you away form the terminal, where you're using pkg...

However, if you do have a nice terminal reader of man pages (w3m-man or anything else), then the pkg man <pkgname> command is really nice... It helps you find the man pages for the command and their rc files too (often in Section 5, or elsewhere, with weird names)..

...So all that being said:

I'm not proposing we put w3m-man in Puppy, but I do think we should have a man page reader which returns the right man pages for the packages you actually have installed, and lets you easily read man pages in the terminal (if wanted).

gyrog commented 3 years ago

Back in the day, Puppy went to great lengths to have the release iso file < 100MiB. One way of helping to do this was to not install any man pages, and get the 'man' command to display them from the Internet, hence the 'man' script that is still part of Puppy. All 'man' pages are equally available, (not just those of installed packages), and virtually no space used.

sc0ttj commented 3 years ago

I know all this... I'm not proposing we add actual man pages into the puppy SFS ... I'm proposing we make the man command better at finding the right man pages, and better at showing them in a terminal.

..so pman could be updated? ...but I wanna check the "issues" I have with it are indeed correct (and I'm not using it wrong or something)