sachac / subed

subed is a subtitle editor for Emacs
179 stars 16 forks source link

Wishlist: Increase, decrease all times within region #11

Closed hackerb9 closed 5 years ago

hackerb9 commented 5 years ago

If a bunch of subtitles (or the entire file) are all off by the same amount, it could be handy if we could shift them simultaneously. I could see activating this if the Transient Mark is active or if the user typed C-u followed by a subed-shift-* command. (Similar to how C-u C-/ performs undo only in the current region).

rndusr commented 5 years ago

C-M-p/n should already move the active region.

See C-h subed-move-subtitle-forward/backward.

hackerb9 commented 5 years ago

Thanks!

hackerb9 commented 5 years ago

I figured out why it wasn't working for me. I have transient-mark-mode turned off by default. (I find the highlighting annoying). This is a bug in subed since regions are supposed to work whether or not transient-marks are set.

rndusr commented 5 years ago

I think I fixed this by using mark-active' instead ofuse-region-p'.