beginend icon indicating copy to clipboard operation
beginend copied to clipboard

Alway go to end|begin of line?

Open TLINDEN opened this issue 5 years ago • 3 comments

Hi,

I use this function now for about 20 years and today stumbled on your mode. My version just jumps to end-of-line => end-of-window => end-of-buffer, it's not mode agnoistic, so I'd like to replace it with your mode.

However, I'm so used to jumping to end of line first that I can't just give it up :) So, my question is, would this be possible using your mode? Like if you are editing an elisp file - first key hit: jump to end of current sexp, next: jump to end of line, next: jump to end of defun (or if not visible in the current window: end of window first!), next: end of buffer.

Thanks in advance, Tom

TLINDEN avatar Aug 31 '18 18:08 TLINDEN

Hi Tom.

The beginend package goes back to its previous location when the same key is typed again. This seems to conflict a bit with your idea of multiple ends the cursor could visit in turn.

What about adding a separate set of commands that would work the way you suggest and reuse the definitions for mode-specific limits? I'm ok to merge a PR containing such a feature into beginend if you also take care of explaining the new feature in the README.

DamienCassou avatar Sep 03 '18 07:09 DamienCassou

I've just found that which might be related: https://github.com/Boruch-Baum/emacs-home-end.

DamienCassou avatar Sep 04 '18 13:09 DamienCassou

This is what I have now, although I wrote it myself.

TLINDEN avatar Sep 04 '18 14:09 TLINDEN

I'm closing this. Feel free to reopen if there is anything new.

DamienCassou avatar Aug 23 '23 18:08 DamienCassou