No need for a package, this is a great chance to learn some elisp. To get you started:
(let ((cur (current-indentation)))
(push-mark nil t t)
(while (and (not (eobp)) (= (current-indentation) cur))
(forward-line 1)))
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
No need for a package, this is a great chance to learn some elisp. To get you started:
(let ((cur (current-indentation)))
(push-mark nil t t)
(while (and (not (eobp)) (= (current-indentation) cur))
(forward-line 1)))
Nice. I think mark-defun is going to work out per other comments here but this is interesting.
Related question... I've not done a ton of elisp hacking but can I ask how you found uot about these functions? I've never heard of the two key ones: eobp and current-indentation.
Start with the Elisp intro; it’s great. M-x shortdoc buffer gives a nice overview of buffer commands. I love consult-info for general searching of the Elisp (and other) info files. But M-x apropos-function is builtin and useful too.
In org mode, you can select the entire heading when point is somewhere in the middle with:
C-c p to move to the headline
M-h to mark the "paragraph", which in org marks the entire entry.
Likely not quite what you want, but it seems worth mentioning.
Thanks. In this case I'm not only working with Org Mode but I can at least dive into that function and see how it is accomplishing the task for Org.