Replace hash binding
<m-h> is handy, but I still have to think so much! Couldn't there be a binding to replace a motion with a corresponding hash? e.g. if I <Leader>Hi", and there's a sha256-... there, I want a sha256 prefixed replacement and so on. Appropriate lengths could be chosen, as well.
Related, it's likely nicer to expose the mappings as plug mappings, with defaults so that setting the "don't map keys" config doesn't mean I can't remap how I'd like.
is handy, but I still have to think so much! Couldn't there be a binding to replace a motion with a corresponding hash? e.g. if I <Leader>Hi", and there's a sha256-... there, I want a sha256 prefixed replacement and so on. Appropriate lengths could be chosen, as well.
could you elaborate on your use case?
I only see two:
- writing a hash from scratch, and I think m-h does it well
- invalidating a hash, and then r0 is shorter
Regarding plug mappings, could you point me to doc? I'm not very familiar with them.
I added plug bindings on master.