Giter Site home page Giter Site logo

Comments (1)

tomdl89 avatar tomdl89 commented on June 9, 2024

Hi @sahlte thanks for the issue. As a rule of thumb, we'll only add features to evil which exist in vim or neovim, or which address an issue related to the interplay between emacs and evil. There are probably some exceptions to this, and if, for example, this issue got a deluge of upvotes in a short period of time, I'm sure we could make an exception.

However, to address each of your points:

  1. Bringing back the selection after it's unhighlighted is so quick and easy that I don't think hacks like your suggestion are really necessary. Simply hitting gv will restore the selection. For most users, being put back in normal mode is more often what you'd want than what you don't, and for the times when that's not the case, you're just two keypresses away from getting the selection back.
  2. Returning the cursor to where it was before acting on a region is also quick and easy with
`]

or

`>

(assuming the cursor was at the end of the region)
So again, I don't think it's enough of an inconvenience to add an option to change the default.
3. In vim, you can (I think always) get back to roughly where you were before an undo with

``

I admit that evil doesn't seem to emulate this very well, so I would be happy to consider this for improvement. But again, actually adding a setting to not move the cursor does seem unnecessary.

My hunch is that your requests are rare enough, and emacs is extensible enough, that your above solution is sufficient. It's always difficult to balance the addition of settings against a focus on keeping the codebase simple, but in this case I think I'd err in the latter direction.

from evil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.