goto-chg

By emacs-evil

Goto-chg Alternatives

Similar projects and alternatives to goto-chg

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better goto-chg alternative or higher similarity.

goto-chg reviews and mentions

Posts with mentions or reviews of goto-chg. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-28.
  • Emacs Modernization: Simple Changes Emacs Should Adopt
    6 projects | news.ycombinator.com | 28 Aug 2021
    Regarding 3. Ability to scroll without bringing point along.

    You can duplicate the buffer side by side with the original buffer and in each window point will be at a different location. This is fundamentally just better than such a peek mode as you can see two different segments of the same file side by side. If you do want to peek and return you can use goto-last-change to return to where you were last typing. In evil this is bound to g; no idea about a binding in plain emacs but nothing is stopping you from using and binding such a thing.

    https://github.com/emacs-evil/goto-chg/blob/master/goto-chg....

    You can also use marks in evil m[a-z] to set a mark '[a-z] to go back to that mark. so for example ma 'a to go back.

    Consider the alternative. Since you don't want scroll to always leave point behind you must have a special binding to enter peek mode and thereafter you scroll as normal. Then one of two things has to happen. Either you decide point really ought to be here now and you have to hit a key combo bound to end-peek-at-current-location or another key bound to end-peek-return-to-point. I would suggest escape/q for end-peek-return-to-point and return for end-peek-at-current-location. You can also do end-peek-return-to-point if you just start typing obviating the need for an additional binding but I think this would be a little weird because there would be a slight hitch while it pops back to prior location.

    The biggest defect with this compared to goto-last-change is that it is ironically given the alternative being part of evil modal. You have to decide to use peek ahead of time and then you have to remember you are in that mode and do something to get out of it should you decide you actually want to do something different like exit with point at the new location. With goto-last-change you don't have to decide ahead of time you can simply decide to go back after the fact without needing to attend to any state in between.

    Multiple windows on the same file and marks require attention ahead of time but are far more general and powerful than peeking.

    Sometimes what people want and what is most useful are different things. Fortunately Emacs is simple enough and powerful enough for you to implement peek mode trivially if you like but I don't think it would be worth using compared to the alternatives. Logically you could implement it by remembering present point and making local bindings to go back to prior point example esc to go back enter to remove local binding to esc.

Stats

Basic goto-chg repo stats
1
33
0.0
28 days ago

emacs-evil/goto-chg is an open source project licensed under GNU General Public License v3.0 only which is an OSI approved license.

The primary programming language of goto-chg is Emacs Lisp.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com