whole-line-or-region
In Emacs, operate on current line if no region is active (by purcell)
thing-edit
Copy and paste anything under cursor. (by manateelazycat)
whole-line-or-region | thing-edit | |
---|---|---|
3 | 2 | |
112 | 49 | |
- | - | |
5.0 | 0.0 | |
6 months ago | over 2 years ago | |
Emacs Lisp | Emacs Lisp | |
- | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
whole-line-or-region
Posts with mentions or reviews of whole-line-or-region.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-12.
-
I can't be the only one
I use whole-line-or-region for exactly this. If there's no active region then pressing M-w just copies the current line
-
It's just me or is really weird that Emacs doesn't have something like the whole-line-or-region package built in?
I did try this package in september of last year. I liked it, but not as much as vanilla Emacs, so I stopped using it.
thing-edit
Posts with mentions or reviews of thing-edit.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-12.
- thing-edit: Copy and paste anything under cursor.
-
It's just me or is really weird that Emacs doesn't have something like the whole-line-or-region package built in?
However, if you find it handy, which you probably do, that is just a sign that you really need structure editing, but out of habit use lines. Besides paredit, thing-at-point is another thing to look at. It already has built-in regexes to give you a sentence, paragraph, email, sexp, and other stuff in a more structured manner than copying lines and then editing them (line too :)). There is a library, thing-edit that I once contributed too that does a lot of that stuff. I don't use it myself, haven't been using it for a few years now, but you may like it.
What are some alternatives?
When comparing whole-line-or-region and thing-edit you can also consider the following projects:
expand-region.el - Emacs extension to increase selected region by semantic units.
easy-kill - Kill & Mark Things Easily in Emacs