r/learnprogramming • u/wholsum_ • 23d 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.
1
u/Both_Bend_2481 22d ago
xdg-open "https://google.com"
2
u/pugs_daily_dose 23d 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.
1
u/[deleted] 23d ago
[removed] — view removed comment
0
u/[deleted] 23d ago
[deleted] — view deleted comment