# How to search for text in all files in a directory

**URL:** <https://discuss.kakoune.com/t/how-to-search-for-text-in-all-files-in-a-directory/785>\
**Category:** Recipes & Guides\
**Created:** [November 13, 2019, 7:15am UTC](https://discuss.kakoune.com/t/how-to-search-for-text-in-all-files-in-a-directory/785 "2019-11-13T07:15:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![andreyorst](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/andreyorst/32/29_2.png) [@andreyorst](https://discuss.kakoune.com/u/andreyorst)\
**Post date:** [November 13, 2019, 7:33am UTC](https://discuss.kakoune.com/t/how-to-search-for-text-in-all-files-in-a-directory/785/2 "2019-11-13T07:33:02Z")

</div>

Hi. There’s several options for you:

- builtin `grep` command.
- my variant of [flygrep](https://discuss.kakoune.com/t/flygrep-like-grepping-in-kakoune/662)
- fzf.kak supports interactive grepping inside file contents if [skim](https://github.com/lotabout/skim) is installed.

As for your fzf command, I’ve found it clever and added it to the plugin:

[https://github.com/andreyorst/fzf.kak/blob/master/rc/modules/fzf-grep.kak](https://github.com/andreyorst/fzf.kak/blob/master/rc/modules/fzf-grep.kak)

---

_[View the full topic](https://discuss.kakoune.com/t/how-to-search-for-text-in-all-files-in-a-directory/785)._
