rdoc icon indicating copy to clipboard operation
rdoc copied to clipboard

ri Should Support Searching by Filename

Open rue opened this issue 13 years ago • 0 comments

Some libraries like io/console and e.g. the extra methods in date are hard to search for because they don't define their own namespace, and aren't distributed as separate libraries. To assist in finding functionality, ri (and other tools?) should allow the user to search documentation using the file name (which is often the "common name" for the unit of functionality). So, for example:

$ ri io/console   # Maybe a specific switch to force filename lookup?
Located in path/to/io/console

IO
IO#getch
…

The info is already available in the data for the most part (e.g. with ack -u "io/console" $(ri --list-doc-dirs) works for this particular case), just needs to be presentable.

rue avatar Mar 16 '12 22:03 rue