r/learnprogramming • • 29d ago

Resource Programming Documentation utility for terminal

Is there a utility for referring programming documentation within the terminal. Currently I use ddgr + w3m in my terminal for referring documentation without leaving the terminal. But this flow isn't serving me well I often see myself opening a browser tab and going from there cause the page can't be opened or something (I know I can do this way but I don't wanna leave the terminal).

I'm still learning so my frameworks, libraries and languages change with time hence I'm not looking for specialized utility I'm looking for a general one, nonetheless specialized once are equally appreciated.

4 Upvotes

9 comments sorted by

View all comments

2

u/pugs_daily_dose 29d ago

For the Python part, `python -m pydoc pathlib` (or a module you have installed) gives you its local docstrings in the terminal, without relying on a site's JavaScript. You can also use `python -m pydoc -k searchterm` to search module summaries. It won't be a universal replacement for framework guides, but it can be a handy offline reference alongside them.