# Rtfm 0.6.0

**URL:** <https://forum.crystal-lang.org/t/rtfm-0-6-0/7410>\
**Category:** News\
**Tags:** release\
**Created:** [November 14, 2024, 6:35pm UTC](https://forum.crystal-lang.org/t/rtfm-0-6-0/7410 "2024-11-14T18:35:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hugopl](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/hugopl/32/970_2.png) [@hugopl](https://forum.crystal-lang.org/u/hugopl)\
**Post date:** [November 14, 2024, 6:35pm UTC](https://forum.crystal-lang.org/t/rtfm-0-6-0/7410/1 "2024-11-14T18:35:33Z")

</div>

Hi,

RTFM is a Linux (Gnome) docset reader written in Crystal and GTK4.

I just released a new version with improved fuzzy search, so you can type things like `St.dca` and it will find all methods that fuzzy matches with `dca` from all types that fuzzy matches with `St`.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/crystal_lang/original/2X/9/9252e4aad6ef355fb4b7c9bf285f8341365cf7ce.png)

Docset download is still missing 😢 , maybe I’ll do it next time I touch this project.

> **[GitHub - hugopl/rtfm: Gnome dash docset documentation reader written in...](https://github.com/hugopl/rtfm/)**
>
> Gnome dash docset documentation reader written in Crystal

---

<div class="post-metadata">

**Author:** ![nobodywasishere](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/nobodywasishere/32/1983_2.png) [@nobodywasishere](https://forum.crystal-lang.org/u/nobodywasishere)\
**Post date:** [November 14, 2024, 9:54pm UTC](https://forum.crystal-lang.org/t/rtfm-0-6-0/7410/2 "2024-11-14T21:54:09Z")

</div>

For downloading docsets, how beneficial would it be to have them available for download on crystaldoc.info? I could build them as part of the documentation generation and serve them as static files, with maybe an endpoint for searching for them.

---

<div class="post-metadata">

**Author:** ![hugopl](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/hugopl/32/970_2.png) [@hugopl](https://forum.crystal-lang.org/u/hugopl)\
**Post date:** [November 14, 2024, 11:16pm UTC](https://forum.crystal-lang.org/t/rtfm-0-6-0/7410/3 "2024-11-14T23:16:54Z")

</div>

This is an awesome ideia, I already have the code to generate the needed SQLite database from the JSON file.

I didn’t the UI to download docsets yet because:

- I don’t want to write the network code using glib, so I need to integrate glib main loop with Crystal main loop, @ysbaddaden already show a working demo on how to do it, so it’s not blocked anymore.
- I don’t really need this feature for myself despite of it being a blocker for the general public 😅
- I am a dad now, so I don’t have much free time for pet projects nowadays.

Once I write the code for docset download I ping you, then do the download from crystaldoc.info will be easy.

---

<div class="post-metadata">

**Author:** ![nobodywasishere](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/nobodywasishere/32/1983_2.png) [@nobodywasishere](https://forum.crystal-lang.org/u/nobodywasishere)\
**Post date:** [November 15, 2024, 1:43am UTC](https://forum.crystal-lang.org/t/rtfm-0-6-0/7410/4 "2024-11-15T01:43:28Z")

</div>

Congrats on parenthood!

It’s not a feature I personally need either (I just use crystaldoc.info), but could be useful for others. No rush if you don’t get around to it for a while.

The JSON files are currently already served at `https://crystaldoc.info/:service/:username/:project/:version/index.json` (example: [https://crystaldoc.info/github/crystal-lang/crystal/1.14.0/index.json](https://crystaldoc.info/github/crystal-lang/crystal/1.14.0/index.json)). Setting the version to `latest` will redirect to the latest `index.json` as well.

There is also a “search” endpoint that exists currently, though it’s designed for use by the FE.

```sh
> curl -X POST "https://crystaldoc.info/search" -d "q=crystal-db"

```

```html
<ul class="repo-list">
  <li>
    <a href="/github/oprypin/crystal-dbus">oprypin/crystal-dbus</a>
    <div class="pill-box">
      <span class="pill">12 &#x2B50;</span>
      <span class="pill">
        <a href="https://github.com/oprypin/crystal-dbus" aria-label="Link to source code on github">
          <i class="fa fa-github" aria-hidden="true"></i>
        </a>
      </span>
    </div>
  </li>

  <li>
    <a href="/github/Nicolab/crystal-dbx">Nicolab/crystal-dbx</a>
    <div class="pill-box">
      <span class="pill">15 &#x2B50;</span>
      <span class="pill">
        <a href="https://github.com/Nicolab/crystal-dbx" aria-label="Link to source code on github">
          <i class="fa fa-github" aria-hidden="true"></i>
        </a>
      </span>
    </div>
  </li>

  <!-- more -->
</ul>

```

If you need more than that, shouldn’t be too hard to add a JSON endpoint that returns more information about each of the repositories when searching.

---

<div class="post-metadata">

**Author:** ![zw963](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/zw963/32/1623_2.png) [@zw963](https://forum.crystal-lang.org/u/zw963)\
**Post date:** [November 23, 2024, 5:36pm UTC](https://forum.crystal-lang.org/t/rtfm-0-6-0/7410/5 "2024-11-23T17:36:58Z")

</div>

the search panel is too small on my 4K monitor.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/crystal_lang/original/2X/1/19c41488af91319fbb7e0f1d7504b58e3d357858.png)

---

<div class="post-metadata">

**Author:** ![hugopl](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/hugopl/32/970_2.png) [@hugopl](https://forum.crystal-lang.org/u/hugopl)\
**Post date:** [November 24, 2024, 9:47pm UTC](https://forum.crystal-lang.org/t/rtfm-0-6-0/7410/6 "2024-11-24T21:47:17Z")

</div>

Hmmm, I also use a 4k monitor, however the UI is set to scale 200%.

I can just set a minimal size for the search panel and let the size be proportional to the space available, however this won’t change the controls size, to change this you need to change the scale settings in gnome or whatever desktop environment you use.

Could you file a bug report? Otherwise for sure I’ll forget about this.

And thanks for trying it out and report issues.
