evil-org-mode icon indicating copy to clipboard operation
evil-org-mode copied to clipboard

Bindings of t, T, o, O

Open jxy opened this issue 9 years ago • 6 comments

The keys, t, T, o, O, behave rather unexpected, considering they have rather standard usage in vi/vim. Perhaps you want to leave them to evil-leader, or at least let people choose whether to enable them or not.

jxy avatar Oct 10 '14 21:10 jxy

My two cents: o and O seem fairly natural. They're not exactly the same behavior as Vim, but close. t and T are nothing like Vim but I think they work, at least for me, since the "todo" concept is occurring to so often.

kalafut avatar Dec 13 '14 07:12 kalafut

Trying out evil-org-mode, I was also confused by the behavior of O. In vim, O inserts a line before the current line. The new behavior inserts a line after the current line, so it's the opposite of what you'd expect.

Fortunately I don't use t much, but I imagine people who use it will be confused by this change as well.

pesterhazy avatar Jan 10 '15 11:01 pesterhazy

I added these as a matter of convenience for my work flow, but perhaps they should be redone.

edwtjo avatar May 13 '15 23:05 edwtjo

I actually like o, but I agree with O being strange. It's the only binding I've removed.

sooheon avatar Jun 10 '15 03:06 sooheon

The only thing preventing me for using this mode is these binding. No kidding those are 2 things I use massively in vi-mode. Would it be possible to add an option tu use alternate bindings as suggested @jxy?

casimir avatar Dec 01 '15 09:12 casimir

I use the following work-around:

(evil-define-key 'normal evil-org-mode-map
    (kbd "t") 'evil-find-char-to
    (kbd "T") 'evil-find-char-to-backward
    (kbd "C-t") 'org-todo
    (kbd "O") 'evil-open-above
    (kbd "H") 'org-shiftleft
    (kbd "L") 'org-shiftright)

Somelauw avatar Dec 24 '16 01:12 Somelauw