doomemacs / doomemacs/core

Improve Evil selection: A way to select Ruby blocks on evil

Open
#2,831 3 comments 0 reactions 0 assignees View on GitHub
:editor evil :lang ruby is:feature
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

Vim have a nice feature, like `y i [` `y a [` to select inside and outside delimiters.

In Ruby Mode, we dony have a way to select inside \ outside vim blocks like:

Imagine that the cursor is on YAAY and i press `v i b` (visual inside block, for example):

It would be the expected result:

![image](https://user-images.githubusercontent.com/9551316/78577703-61048d00-7826-11ea-81e5-93de8a64ac25.png)

Another example:

If my cursor is on emacs and i press `v a b`, the result would be:
![image](https://user-images.githubusercontent.com/9551316/78577985-c8bad800-7826-11ea-8038-d3b23e2e3d67.png)

If cursor is on |text| the result would be:
![image](https://user-images.githubusercontent.com/9551316/78578041-da9c7b00-7826-11ea-984c-651101c738af.png)

Is possible to get a semelhant result with expand-region.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.