Giter VIP home page Giter VIP logo

Comments (5)

Cthutu avatar Cthutu commented on August 21, 2024 1

Yes please, I can't stand using HJKL (the only thing about vim I don't like). This PR would be an excellent addition.

from helix.

itzmjauz avatar itzmjauz commented on August 21, 2024 1

@archseer I've been playing around with helix a bit more;
I've personally also added Home/End key bindings ( Similar mappings to ^ and $ )

Additionally these key bindings also allow movement while in insert mode ( primary reason I use them sometimes ).

If that sounds fine too I guess ill create 2 PR's, one for the extra key mapping one for the insert extension.

Edit:
Added PR's for all features separately.

from helix.

itzmjauz avatar itzmjauz commented on August 21, 2024 1

Unfortunately, the PR does not work for insert mode, only normal mode.

Hi, that is correct, the insert mode extension is in a separate pull request, but needs some more research because of underlying issues, I myself have not yet encountered these so I cannot give further detail.

Current arrow keymaps work for normal mode and extend mode.

You could opt to build helix yourself, and pull : https://github.com/itzmjauz/helix/tree/insert-mode-keymap-extension into the master branch before doing so. (You could also just copy keymap.rs: https://github.com/itzmjauz/helix/blob/insert-mode-keymap-extension/helix-term/src/keymap.rs over your own, edit: this will actually not work since recent updates)
This will give you arrow keys and home-end keys navigation in insert mode.

from helix.

archseer avatar archseer commented on August 21, 2024

Sounds reasonable, go ahead and make a PR!

from helix.

Cthutu avatar Cthutu commented on August 21, 2024

Unfortunately, the PR does not work for insert mode, only normal mode.

from helix.

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.