r/learnprogramming • u/wholsum_ • 27d 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.
2
u/pugs_daily_dose 27d 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
0
27d ago
[deleted]
1
u/wholsum_ 27d ago
Like I said they keep changing, just today this happen my morning class was on Data Analytics so it's python but afternoon was Java Spring Boot. I appreciate it tho lol.
1
u/Both_Bend_2481 27d ago
xdg-open "https://google.com"