Comments (1)
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:
- 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. - 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)
- `company-complete` results in `(evil-repeat-post-hook): (wrong-type-argument number-or-marker-p nil)`
- Missing Visual Mode command: v_g_CTRL-A HOT 3
- evil-visual-char is not inclusive when using goto-char? HOT 2
- `describe-char` doesn't work outside of evail unless `(ad-deactivate #'describe-char)` is evaluated HOT 5
- the global ex command (:g) doesn't take a count HOT 1
- provide vim-like indication of mode in statusline HOT 3
- completion-in-region-mode keybindings don't override, breaking minibuffer-visible-completions
- evil + prettify
- Visual states should set region-extract-function
- `Vkko` does nothing under cua-selection-mode
- How to reliably check if at the beginning of the line in Evil visual state? HOT 3
- visual selection + prettify
- `vip` select wrong region in org-mode HOT 3
- Help overriding only certain postfixs to "m" HOT 2
- $ followed by g j moves point at the beginning of next line HOT 4
- Move `evil-test-helpers.el` to its own repo? HOT 6
- `evil-redo` won't redo `evil-undo`, unless the latter was called in "normal mode" HOT 6
- Can't exit Visual-Block Mode with keyboard-escape-quit HOT 1
- Copy/paste in + register doesn't work when evil is run in Emacs terminal HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evil.