# hamonikr-ff (fzf and bat features)

## hamonikr-ff란?

[`hamonikr-ff`](https://github.com/hamonikr/hamonikr-ff)는 터미널에 익숙하지 않은 사용자를 위하여,

터미널 화면 오른쪽에 파일의 내용을 보고 편집할 수 있도록 지원하는 프로그램입니다.

## hamonikr-ff 실행

터미널에서 `ff` 명령 실행

`$ff 또는 $ ff <디렉토리>`

디렉토리 안의 파일을 검색하려면,

아래 이미지와 같이 검색할 파일명 일부를 입력하시면 빠르게 검색 가능합니다.

<figure><img src="/files/03UkRc7vvwz0LEW854sN" alt=""><figcaption></figcaption></figure>

#### 주요 기능

* 키보드의 방향키로 파일을 탐색하고 편집 가능
* 향상된 파일 검색 기능 제공 (syntax highlighting)
* `F1` : 미리보기 화면의 파일 내용을 클립보드에 복사
* `F2` 또는 `Alt+v` : 미리보기 화면의 파일을 수정
* `Alt+p` , `Alt+n` : 미리보기 창 상하 스크롤 이동
* `?` : 미리보기 창 보이기, 숨기기 전환
* `Alt+w` : 미리보기 창 자동 줄 넘김 전환 (wrap)

## hamonikr-ff 설정&#x20;

#### HamoniKR 사용자의 경우

터미널을 열고(Ctrl+Alt+T) 아래 명령어를 입력하세요.

```
sudo apt update
sudo apt install hamonikr-ff
```

#### Ubuntu, LinuxMint 등 다른 배포판 사용자의 경우

터미널을 열고(Ctrl+Alt+T) 아래 명령어를 입력하세요.

```
# 하모니카 APT 저장소 추가 (우분투 22.04 이상)
wget -qO- https://repo.hamonikr.org/hamonikr-app.apt | sudo -E bash -

# 하모니카 APT 저장소 추가 (우분투 21.04 이하)
curl -sL https://pkg.hamonikr.org/add-hamonikr.apt | sudo -E bash -
```

```
# 프로그램 설치
sudo apt install hamonikr-ff
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hamonikr.org/hamonikr-6.0/tips/cli-tools/hamonikr-ff-fzf-and-bat-features.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
