Git Product home page Git Product logo

Comments (8)

Somelauw avatar Somelauw commented on September 16, 2024 1

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.

Somelauw avatar Somelauw commented on September 16, 2024

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.

Ambrevar avatar Ambrevar commented on September 16, 2024

Sure, my point was whether we could make this either an option, or the default for the shift theme.

from evil-org-mode.

Somelauw avatar Somelauw commented on September 16, 2024

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.

Ambrevar avatar Ambrevar commented on September 16, 2024

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.

Ambrevar avatar Ambrevar commented on September 16, 2024

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.

Somelauw avatar Somelauw commented on September 16, 2024

I think I found a satisfiable way to do this:
1e64669

from evil-org-mode.

Ambrevar avatar Ambrevar commented on September 16, 2024

Looks good to me, thanks!

from evil-org-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.