-
Notifications
You must be signed in to change notification settings - Fork 8
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
Allow easy-kill to select content between pairs #14
Comments
Hi Tuhdo,
For strings it is a bit tricky. At the moment you can only reach the entire string by expanding from a Does this meet your needs? I have been thinking about how to make Thanks, |
Hi Leo, Thanks for the info and I tried on C/C++ modes. It works nicely except for strings. Is it possible to add string selection (whole string content between For text mode, it should be able to select anything between a separator and be able to add more if needed. For example, I have this sentence:
I can select any statement at point (a statement contains many words) by |
When inside a string and no enclosing list at point, treat the whole string as the list.
As the first step, I have made |
New change is nice, except that it should select the inner content of the string first, not the whole string including double quotes. Then, you can expand it to include double quotes by pressing |
Also, in an s-expr which contains a string, when the cursor is on the string, |
|
Although list-wise +/- is nice it is not as effective as directly get to the thing you need. So unlike Having said I plan to tweaks +/- so that it can stop at certain boundaries of interest i.e. the inner of strings or lists etc. |
I recently started using anchored-transpose and have this bound to "t": (put 'easy-kill-transpose 'easy-kill-exit t) Right now I'm using it like this:
I do miss the ability to select inside a list, so I can do
The second form is easier sometimes. What does it take to implement this? Does it require major rewrite? |
Hi @YangZhao11, Could you open a new issue on this? I had something similar quite a while ago when planning a small rewrite of easy-kill. Thanks, Leo. |
Hi - by "a new issue", do you mean the ability to select inside a list (which is slightly different from "between pairs"), or do add a transpose function? |
My bad. I thought this issue is closed. Leo |
It would be useful if easy-kill can select content in between a pair. The default pairs should be:
This should be extended for 'M-w l' (save list at point). Or it can have a different command and bound to 'M-w p' (save pair content at point).
Users should be able to add customized pairs as well.
The text was updated successfully, but these errors were encountered: