---
title: "hrs§docsim.el #노트 검색 비교 정보이론 #이맥스 도구"
url: "https://notes.junghanacs.com/notes/20250214T135928"
author: "Junghan Kim"
date: "2025-02-14T13:59:00+09:00"
lastmod: "2025-04-05T00:00:00+09:00"
tags: ["bib","emacs","tools"]
description: "hrs의 docsim과 docsim.el을 노트 검색과 비교 도구로 살펴보는 노트이다."
---

> [!abstract] 이 노트에 대하여
> 
> 정보이론 기반으로 문서를 비교하고 검색하는 docsim과 Emacs용 docsim.el의 가능성을 살핀다. 디노트와 시맨틱 검색 사이의 다른 길을 찾는 탐색 메모다.

## BIBLIOGRAPHY

- “Hrs/Docsim.” 2024. <https://github.com/hrs/docsim>.
- “Hrs/Docsim.El an Emacs Tool for Searching and Comparing Notes.” 2024. <https://github.com/hrs/docsim.el>.

## 히스토리

-   [2024-12-28 Sat 16:16] 디노트 Docsim - 영어로 안써 - 정보이론 검색
-   [2025-02-14 Fri 13:59]
-   [contacts::Robin Schwartz - hrs](https://notes.junghanacs.com/meta/20230303T030300#h-3e9224f6-7d98-4b22-94c4-2fc0728d3def)

[#디노트](https://notes.junghanacs.com/meta/20231005T141500), [#시맨틱검색](https://notes.junghanacs.com/meta/20250212T130000)

## hrs/docsim

([“Hrs/Docsim” 2024](https://notes.junghanacs.com/notes/20250214T135928#citeproc_bib_item_1))

-   Schwartz, Robin
-   A simple, fast command-line tool for searching and comparing text documents.
-   



```shell
go install github.com/hrs/docsim@latest
```

## hrs/docsim.el An Emacs tool for searching and comparing notes.

([“Hrs/Docsim.El an Emacs Tool for Searching and Comparing Notes.” 2024](https://notes.junghanacs.com/notes/20250214T135928#citeproc_bib_item_2))

-   Schwartz, Robin
-   An Emacs tool for searching and comparing notes.

## Searching notes

I wrote [docsim.el](https://github.com/hrs/docsim.el) to provide richer search functionality in my notes. I'm biased, but I think it works pretty well.

Calling `docsim-search-buffer` opens a buffer of links to nodes that are (1) textually similar to this note, and (2) not yet linked from it.

```emacs-lisp
(use-package docsim
  :ensure t
  :ensure-system-package ((go . golang)
                          (docsim . "go install github.org/hrs/docsim/docsim@latest"))

  :commands (docsim-search docsim-search-buffer)
  :bind (("C-c n s" . docsim-search)
         ("C-c n d" . docsim-search-buffer))

  :custom
  (docsim-search-paths `(,denote-directory
                         "~/documents/journal/entries"
                         "~/documents/logistics"
                         "~/documents/blog/_drafts"
                         "~/documents/blog/_posts"))
  (docsim-omit-denote-links t)

  :init
  (evil-define-key '(insert normal) docsim-mode-map (kbd "RET") 'docsim--visit-link)
  (evil-define-key '(insert normal) docsim-mode-map (kbd "q") 'docsim--quit-sidebuffer))
```

## 관련노트

-   [@스테판버처 @찰스클라크 #검색엔진 정보 검색: 이론과 실제](https://notes.junghanacs.com/bib/20240620T204105)
-   [#LLM: #이맥스 #퍼지 검색 affe fzf](https://notes.junghanacs.com/notes/20241226T220559)
