Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ep/expand-region中,不能正确的扩展区域 #994

Open
moxuetianya opened this issue Aug 8, 2022 · 3 comments
Open

ep/expand-region中,不能正确的扩展区域 #994

moxuetianya opened this issue Aug 8, 2022 · 3 comments

Comments

@moxuetianya
Copy link

2022-08-08 16-22-16 的屏幕截图
当光标所在位置,位于343行的大括号}位置时,按 vv 键盘正常应该选中为整个大括号中的内容,
但是扩展后的区域如下图所示:

2022-08-08 16-23-03 的屏幕截图

可以复现:
项目为开源代码
git clone https://github.com/google/syzkaller
emacs syzkaller/executor/executor.cc

emacs :
GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0) of 2022-07-05, unofficial emacs-snapshot build: http://emacs.ganneff.de/, git commit 83f059793af0d7191529582ce674f0af349cd1b7
应该与emacs版本没有关系, 用其他版本时也会出现这个现象;

@redguardtoo
Copy link
Owner

redguardtoo commented Aug 8, 2022

It's not my setup. You need raise a ticket to https://github.com/magnars/expand-region.el

If you know evil text object, you could use vi{ to select region between {}. In my setup, you can also use vig

@moxuetianya
Copy link
Author

moxuetianya commented Aug 10, 2022

https://github.com/magnars/expand-region.el
这个项目好像只有pr没有issues,
学会elisp再提吧,不紧急:)

@redguardtoo
Copy link
Owner

https://github.com/magnars/expand-region.el 这个项目好像只有pr没有issues, 学会elisp再提吧,不紧急:)

你可以在cc-mode-hook里改er/try-expand-list,只留下最基本的选项。

不过我主要用evil-mode,较大的region操作都用定制的evil text object, expand-region就是用来快速地选变量名。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants