Comments (8)
I'm thinking of adding an option to make HJKL context-sensitive anyway but doing it in a flexible way and making it optional.
from evil-org-mode.
You can already customize it like that by adding hooks to the org-shift-commands.
See http://orgmode.org/manual/Conflicts.html
from evil-org-mode.
Sure, my point was whether we could make this either an option, or the default for the shift
theme.
from evil-org-mode.
I see, I think it's not a bad idea to have this in your local config because it lets you keep most of the standard behaviour of these keys and the org ones, but I don't think it should be the default, because:
- Using final hooks is easy to do in a config file.
- The current approach is more flexible. You can make H, L, J, K use whatever function as a fallback you want. For example, you may want yo use H and L to go to beginning or end of line, to increment and decrement numbers or to swap lines.
- Having a shift and shift2 theme would complicate matters.
I do think your idea can be put in [doc/example_config.el] as a suggestion for local configuration.
from evil-org-mode.
I'm happy to add it to the documentation, however I don't see [doc/example_config.el] available when the package is installed from MELPA?
Or is it referenced? I'm asking since I did not know it existed.
What about moving the documentation to an .info file (like EMMS does) or to the wiki on GitHub?
from evil-org-mode.
Here is the code I've been using for a few weeks, works great for me so far.
(defun evil-org-meta-return ()
"Like `org-meta-return' but switch to insert mode."
(interactive)
(evil-insert 1)
(org-meta-return))
(defun evil-org-shiftleft ()
(interactive)
;; TODO: Use `org-at-heading-or-item-p' instead?
(if (or (org-on-heading-p) (org-at-planning-p))
(org-shiftleft)
(evil-window-top)))
; Repeat for right/up/down.
from evil-org-mode.
I think I found a satisfiable way to do this:
1e64669
from evil-org-mode.
Looks good to me, thanks!
from evil-org-mode.
Related Issues (20)
- Common issues wording
- Tag new version HOT 1
- FR make `org-link-insert` default description be the current selection HOT 1
- Wrong regions of text objects
- How to open agenda window?
- the example setup configuration cannot work in org-agenda (org-agenda won't become motion state)
- `evil-org->` and `evil-org-<` require `count` argument
- Incorrect `evil-org-delete` behaviour when using the `f<SPC>` suffix HOT 2
- `M-(h, j, k, l, H, J, K, L)` not registering in org-mode buffers HOT 1
- Support for gx to use org-open-at-point HOT 3
- `z' was not bound to tweak display in org-agenda anymore HOT 5
- function org-agenda-bulk-remove-all-marks does not exist
- `org-agenda-later` and `org-agenda-earlier` keybindings no longer work HOT 7
- Feature request: unset scheduled and deadline HOT 2
- org-agenda-later (next week) is bind to ']]', not ']' as in the README
- Delete and yank commands with a 0 in the count argument are parsed incorrectly HOT 1
- `evil-redirect-digit-argument` removed from evil HOT 7
- evil-org fails after upgrade HOT 2
- M-RET HOT 1
- Invalid function: evill-redirect-digit-argument HOT 1
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-org-mode.