put cursor on found text in less or vi?

Paul Smith paul at mad-scientist.net
Wed Sep 25 21:10:42 UTC 2024


On Wed, 2024-09-25 at 15:53 -0400, Little Girl wrote:
> > And of course, there is no Git integration anywhere in any editor
> > that comes close to Emacs Magit :).
> 
> I wouldn't know, because I run screaming from Emacs, Vi, and Vim
> because their interfaces and the way to interact with them is so
> alien to me, so I haven't become familiar with any of them.

Huh.  I understand that reaction WRT vi, which is a modal editor and so
extremely different from a "typical" editor.

But Emacs and its interaction is largely the same as with any other
editor, at a superficial level: you get a graphical window with menus,
you use your mouse or keyboard to move around and select stuff, and
when you type the text is inserted wherever the cursor is.

The major up-front difference between Emacs and "other" editors is
that, since it predates Windows and its C-c/C-x/C-v copy/cut/paste
model, Emacs uses those keys for something else.  You can rebind them
(you can rebind anything in Emacs) but it's annoying for sure: C-c and
C-x in particular are "command prefixes" in Emacs which means they are
used EVERYWHERE.

Of course at the next level down there are large differences but that's
true for any editor.

However, I have no interest in convincing people to change editors as
they are the quintessential "personal opinion" topic :D

> Geany has a git-changebar plug-in that might be of interest:
> 
> https://plugins.geany.org/git-changebar.html

Hmm...  :)

> I haven't tried it, because I do all of my git work either on the
> command-line or on GitHub, depending on my mood or the task at hand.

Any Git operation you do at the command line, and a lot you probably
don't even know how to do (at least not without consulting the manual
every time), is much simpler using Magit.

I know people who don't use Emacs, but they do use Magit: they start up
an Emacs instance with a simple setup file that drops into Magit
automatically, and use it as a kind of "Git interface stand-alone app".

If you want to know more, see:

https://emacsair.me/2017/09/01/magit-walk-through/

or if you prefer videos:

https://magit.vc/screencasts

The thing I don't like about these videos is they all start with "how
to install and configure" which is always frustrating to me: what I'd
love is just a video showing all the cool stuff you can do without
worrying about gnarly low-level details of setup, discussing
exceptions, keybindings, etc.  Save all that for some other video
people can watch once you've convinced them it's worth it.  Sigh.



More information about the ubuntu-users mailing list