AmaiKinono / puni

Structured editing (soft deletion, expression navigating & manipulating) that supports many major modes out of the box.
GNU General Public License v3.0
401 stars 21 forks source link

feature request: puni-contract-region #58

Closed olnw closed 1 year ago

olnw commented 1 year ago

Hi, and thanks for your work on puni.

puni-expand-region is useful, but it's not quite a substitute for the expand-region package. Importantly, there is no puni-contract-region function.

expand-region achieves this by keeping track of the region in a variable called er/history. You can see their contract-region implementation here.