# Ability to select current view?

**URL:** <https://discuss.kakoune.com/t/ability-to-select-current-view/603>\
**Category:** Help\
**Created:** [May 26, 2019, 8:24am UTC](https://discuss.kakoune.com/t/ability-to-select-current-view/603 "2019-05-26T08:24:15Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [May 26, 2019, 8:24am UTC](https://discuss.kakoune.com/t/ability-to-select-current-view/603/1 "2019-05-26T08:24:15Z")

</div>

I’m thinking about any way to limit selection to only current part of the buffer that is visible. I often want to change text that is visible on screen by it’s not easilly accessible with Alt+i or other selection methods, so usually I press % but it moves my cursor to the end of the buffer, and I don’t see what I’m going to select anymore unless I start typing. It would be good if there were g motions to go to view top and bottom, much like the v t and v b but to actually move the cursor.

---

<div class="post-metadata">

**Author:** ![cipharius](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/cipharius/32/184_2.png) [@cipharius](https://discuss.kakoune.com/u/cipharius)\
**Post date:** [May 26, 2019, 9:00am UTC](https://discuss.kakoune.com/t/ability-to-select-current-view/603/2 "2019-05-26T09:00:41Z")

</div>

It is actually possible, the commands are referred to as “window” commands under go to binding. So to select whole visible part of buffer you use `gtGbGl`.

EDIT: In fact, I found out about these commands from the mentioned Delapouite’s plugin, so credits to him.

---

<div class="post-metadata">

**Author:** ![Delapouite](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/delapouite/32/10_2.png) [@Delapouite](https://discuss.kakoune.com/u/Delapouite)\
**Post date:** [May 26, 2019, 9:45am UTC](https://discuss.kakoune.com/t/ability-to-select-current-view/603/3 "2019-05-26T09:45:25Z")

</div>

> **[GitHub - Delapouite/kakoune-select-view: Select the visible part of a buffer](https://github.com/Delapouite/kakoune-select-view)**
>
> Select the visible part of a buffer. Contribute to Delapouite/kakoune-select-view development by creating an account on GitHub.

---

<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:** [May 27, 2019, 5:09am UTC](https://discuss.kakoune.com/t/ability-to-select-current-view/603/4 "2019-05-27T05:09:10Z")

</div>

the thing is that I have remapped these keys from the start and didn’t knew they existed… Thanks for sharing!
