# Problem when creating grep like command

**URL:** <https://discuss.kakoune.com/t/problem-when-creating-grep-like-command/1839>\
**Category:** Help\
**Created:** [August 15, 2021, 7:37pm UTC](https://discuss.kakoune.com/t/problem-when-creating-grep-like-command/1839 "2021-08-15T19:37:58Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Screwtapello](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/screwtapello/32/12_2.png) [@Screwtapello](https://discuss.kakoune.com/u/Screwtapello)\
**Post date:** [August 16, 2021, 9:59am UTC](https://discuss.kakoune.com/t/problem-when-creating-grep-like-command/1839/9 "2021-08-16T09:59:54Z")

</div>

> [@TuM0xA-S](#):
>
> context can be: ???

I haven’t found a concise definition of what a context is, but I wrote an introduction to them in another comment a while ago:

> [@Pipe \`buffer-next\` to kakoune session](https://discuss.kakoune.com/t/pipe-buffer-next-to-kakoune-session/1067/2):
>
> If you start up Kakoune, you can run :buffer-next and it will switch buffers. If you run :new, you get a new client running in a new window, and if you run :buffer-next there, the first window doesn’t switch buffers - :buffer-next must be run in the context of a particular client, and it only affects that client. Likewise, you can run :eval -draft %{ buffer-next }, and nothing happens. The documentation for :eval says that the -draft option “runs the commands in a draft context”; Kakoune creat…

---

_[View the full topic](https://discuss.kakoune.com/t/problem-when-creating-grep-like-command/1839)._
