Comments (7)
Hey there! You're right, this isn't ideal and I've certainly neglected non-QWERTY layouts. I'll look into this (and this-command-keys
) this week and see if I can cook something up that's flexible yet backward compatible.
from evil-snipe.
It's been almost a year. I've looked into this a number of times and couldn't come up with anything clever, so I think I'll go with the simple solution: a evil-snipe-style
switch variable that defaults to 'qwerty
and accepts 'colemak
(or set to nil
and left to the user to define their own -- evil-snipe-def
is no longer a private macro).
That said, I'd like to include a reasonable default for colemak users, but I'm not familiar with the layout, so I'm hoping you can offer some advice: are t, T, j and J good colemak alternatives, or are they simply your personal preference? Could you also offer alternatives for s
and S
as well?
from evil-snipe.
vim layouts on colemak are plenty, my own evil-colemak-basics obviously the best among them 😉.
using evil-snipe-def
is the most flexible way i would say. this is what evil-colemak-basics
already does:
(evil-snipe-def 1 inclusive "t" "T")
(evil-snipe-def 1 exclusive "j" "J")
(https://github.com/wbolster/evil-colemak-basics/blob/master/evil-colemak-basics.el#L111-L114)
no opinion on s
and S
since i have those disabled (i use avy
/ evil-easy-motion
).
from evil-snipe.
using evil-snipe-def
overwrites the old commands/functions though, perhaps the macro could take an argument so that it can create unique names, but i do not have a strong opinion on that since i only use colemak and never switch between layouts (my brain would melt if i were to try).
from evil-snipe.
Hi, dvorak user here. I've been getting into evil-snipe more and the ;
is tuff to hit for me many times a day.
I'll post back if i come up with something better for myself.
from evil-snipe.
@joefromct have you tried my evil-snipe-def approach? it works fine actually. see above or consult my dotfiles
from evil-snipe.
I actually realized i had a different ailment regarding my evil-snipe-needs as i dug into it... i think this does the trick for me but curious if this would be the correct way.. i haven't tinkered with emacs lisp too much.
My root issue was ;
isn't dvorak-accessible for forward-key
that i believe is hard-coded for the macro generation?
With the above commit and something like this:
(map! :nv "<SPC>" 'evil-snipe-f
:nv "S-<SPC>" 'evil-snipe-s)
my sore hands seem to be much happier for the past 1hr...
Also, I now realize that my issue was different than yours? Let me know if that's the case and I'll make myself a new issue, and apologies for hi-jacking the thread.
from evil-snipe.
Related Issues (20)
- Search in both directions HOT 2
- evil-snipe-f can't find the last character of a link description in org-mode
- t movement broken (inconsistent with vim and/or vanilla evil) HOT 1
- t/T with evil-snipe-override-mode does not behave correctly
- Evil snipe in the minibuffer? HOT 2
- No highlight if a target has two following spaces or is at the end of a line
- Error: Symbol's Value as variable is void: count HOT 1
- Highlight targets for f, F, t and T keys HOT 5
- Missing evil-snipe-auto-disable-substitute variable?
- evil-snipe-scope 'buffer not respected HOT 1
- `evil-snipe-override-mode` causes delete/change/yank (`d`/`c`/`y`) commands forward (`f`) to space to not include space HOT 2
- `evil-snipe-override-evil` in doc but not in code
- How to repeat searches after rebinding f to evil-snipe-s HOT 1
- invalid-function when calling `evil-snipe-...` HOT 4
- evil-snipe-repeat(-reverse) misbehavior when remapped/swapped
- Add option for making jumps not skip over invisible characters
- evil-snipe-skip-leading-whitespace inconsistency
- evilem-define/evilem-create's `:bind` does not work as expected
- the cursor moves right if search fails
- Possibility to restrict highlights to first 2 or last 2 characters in word
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-snipe.