Skip to content

Consider kakoune/helix editing model #281

Open

Description

@matklad

At the risk of starting a flame war, please consider focusing on kakoune’s object-verb model instead of vim’s verb-object :)

See https://kakoune.org/why-kakoune/why-kakoune.html for a an explanation of the idea.

Now, I don’t really have a stake in the game here, as I use neither vim nor kakoune regularly. However, I am fairly certain that kakoune model is superior, if we ignore “human backward comparability”, and I would say that a brand-new editor has a chance to do just that.

Activity

  1. Cody-Duncan commented on Mar 29, 2022

    @Cody-Duncan

    I'd argue the model works better with multi-cursor editing, too. Multi-cursor editing is a foundational feature of what made SublimeText and vscode popular editors.

  2. dzhou121 commented on Mar 29, 2022

    @dzhou121
    Collaborator

    Am I right to think kak is kind of visual mode by default? Maybe we can support kak mode as a config as well.

    Personally as vim user, if I need to copy or delete something, I always change to visual mode first, to have the visual confirmation that I’m doing the action on the right area. So I can see kak’s point. But at the same time, I don’t want a selection when I’m just navigating around so I still need a normal mode.

    So a config to toggle between the two is a sensible way, just like we offered choice between modal and non modal.

  3. Cody-Duncan commented on Mar 31, 2022

    @Cody-Duncan

    +1 for kak, vim, and non-modal toggle setting

  4. added
    question
    A-editor
    on Apr 3, 2022
  5. konstantinkopka commented on Jun 26, 2022

    @konstantinkopka

    I have always struggled sticking with vim and recently landed on the Helix Editor, a brilliant project that's also written in Rust and has a fantastic vision: It's inspired by neovim and kakoune, though its modal editing paradigm is mostly based on kakoune (with some differences).

    Would be great to have a future option to support helix-style editing in here as well.
    The community is growing at a rapid pace and while I see myself using helix as my main editor, I'd really like to use Lapce as a VSCode replacement in the future without having to switch modal inputs.

    So, +1 from me for adding multiple modal inputs: vim, helix and kakoune. Would be a killer feature!

  6. DakshG07 commented on Jul 14, 2022

    @DakshG07

    Both Helix and Kakoune have great object-verb settings. I believe we don’t need both, and that sticking with Helix-style editing is better for the long run, as it’s documented pretty thoroughly(not to mention Helix is also written in Rust).

  7. wojpawlik commented on Sep 14, 2022

    @wojpawlik

    Kakoune already has client-server architecture, Helix is moving in that direction: helix-editor/helix#39

  8. DakshG07 commented on Sep 17, 2022

    @DakshG07

    Which is important!
    Kind of like how VS Code has a Neovim extensions with embedded Neovim, you could have an embedded Kakoune.

    This is much more effective than just emulating the layout.

  9. luccahuguet commented on Sep 28, 2022

    @luccahuguet

    The future I envision is one where I can jump from helix to lapce and vice versa, both written in rust, similar workflow, and each with some advantages over the other.

    For this to come true, a helix-like keybindings config/preset is needed, and even better as default!

  10. wsippel commented on Oct 19, 2022

    @wsippel

    I've tried to get into VIM for years, but it never clicked with me. Learned about Helix a few days ago, tried it for a few minutes, and immediately made it my default editor on everything. Object -> verb seems just so much more sensible for an editor (to me, at least), and I also love the selection model. I believe Kakoune and Helix essentially work the same, and mostly differ in a few keybinds? If that's the case, having a Kakoune-like modal mode in Lapce (in terms of the selection model and command order), with the option to switch between Kakoune and Helix keymaps, seems like the perfect solution. I absolutely love Lapce's Code Lens for example, it feels so natural (amazing work there, by the way!), and that's just something you can't really do in a terminal based editor.

  11. hh9527 commented on Dec 8, 2022

    @hh9527

    I am big fan of helix, but I do think that the there should be a key-mapper-plugin to translate user input to any supported command. and by support vim/helix-mode by vim-mode.key-mapper.wasm and helix-mode.key-mapper.wasm.

    Some mechanism to support any number of models defined by xxx.key-mapper.wasm may be a nessasary feature.

    See what wezterm did in its keymap: https://wezfurlong.org/wezterm/config/key-tables.html

  12. DakshG07 commented on Dec 17, 2022

    @DakshG07

    Even better, just expose a whole interface. This way, we can make it how we want. Also, an embedded Helix would be very nice.

  13. goyalyashpal commented on Dec 31, 2022

    @goyalyashpal

    my 2 cents:

    rather than providing individual and particular clients, the better approach would be to provide support for their philosophies, and a default keybind, and providing option to put a custom keybind at will. so, smth like:

    image

    Current (for reference):

    image

  14. goyalyashpal commented on Dec 31, 2022

    @goyalyashpal
  15. 9 remaining items

  16. panekj commented on Aug 1, 2023

    @panekj
    Collaborator
    • which would allow it to be used directly inside other editors like lapce

    this won't happen, multiple frontends/backends model works terribly and we are not interested in such implementation

  17. nyabinary commented on Aug 1, 2023

    @nyabinary

    Hopefully we can get some Helix/Lapce integration

  18. goyalyashpal commented on Aug 1, 2023

    @goyalyashpal
  19. PotatoesFall commented on Aug 1, 2023

    @PotatoesFall

    @panekj what kind of implementation would be better? Taking some helix source code and adapting it to be built as part of lapce?

  20. SomeGuyNamedMay commented on Aug 1, 2023

    @SomeGuyNamedMay

    perhaps exposing stuff for keybindings in the lapce plugin system for defining model keybinding "schemes" as well as an easy way to switch between said "schemes" would work here?

  21. nyabinary commented on Aug 1, 2023

    @nyabinary

    Terminal model editing, maybe?

  22. goyalyashpal commented on Aug 2, 2023

    @goyalyashpal

    Terminal model editing

    can u explain a bit more on that?

  23. goyalyashpal commented on Aug 2, 2023

    @goyalyashpal

    ohwkay. nice. but won't implementing it for terminal be a different beast altogether...
    also considering the existing different modes (emacs, vs vi) in the bash shell atleast....

  24. nyabinary commented on Sep 13, 2023

    @nyabinary

    Any status on this?

  25. panekj commented on Sep 13, 2023

    @panekj
    Collaborator

    Any status on this?

    There would be a comment or issue status change if there was.

  26. j-dominguez9 commented on Mar 11, 2024

    @j-dominguez9

    Is there something we can do in assisting with getting this feature? I want to use Lapce, but this is the only thing preventing me from doing so.

  27. MinusGix commented on Mar 11, 2024

    @MinusGix
    Member

    It is mostly limited by someone who wants to modify the cursor logic / etc. to have an extra setting to behave like kakoune/helix, and knows/can-learn how it should work.
    The floem crate has the editor-core + editor, which has movement/cursor logic and other tidbits (though modal mode isn't hooked up for display as a default for the core editor view, the functionality is still there).

  28. go2null commented on Oct 24, 2024

    @go2null

    Came across the Ki-Editor, another terminal modal editor in Rust, but with a model which dramatically reduces the key combinations for routine work.

  29. heyakyra commented on Sep 4, 2025

    @heyakyra

    https://ki-editor.github.io/ki-editor/docs/comparisons

    Looks promising, but notably missing from that comparison is the major innovation Lapce carried forward from Xi-editor—CRDT/Rope Science. There's no mention of that in any discussions or filed issues, and its probably too late to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-editorquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions