Giter Site home page Giter Site logo

hammerspoon-vim-bindings's Introduction

hammerspoon-vim-bindings

modal keybindings to give vim-like navigation for anything with a cursor

how to install

  • download hammerspoon
  • clone this repo
  • place the vim_bindings.lua file in your ~/.hammerspoon dir which is created when you first run hammerspoon
  • if you already have an init.lua file you've customized:
    • take a look at the supplied init.lua file to see how to initialize vim keybindings
  • if you don't
    • copy the one in this repo into your ~/.hammerspoon dir

intructions on how to use

  • use option + escape to enter vim-mode
  • try out some basic navigation keys
  • please see this blog post for some of the more advanced features and a list of what is not implemented

contributions

This software is likely very buggy, so use at your own risk!! If you'd like to improve upon the design please feel free to help out! This was a quick side-project so the architecture of implementation is likely flawed as well :).

hammerspoon-vim-bindings's People

Contributors

wingillis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

darlal labie fqj102

hammerspoon-vim-bindings's Issues

THIS IS DOPE. Some feature requests:

In order in which they came up:

shift ^ = start of line
ctrl r = redo
ctrl b = up
ctrl f = down
/ = search
would be nice if it says "normal mode" when you get back into it
(advanced) q, @ = record, replay

I might jump in and add some of those too. Awesome work bruh

Normal mode bug for key '['

hs.eventtap callback error: /Users/wgillis/.hammerspoon/vim_bindings.lua:153: malformed pattern (missing ']')

It's assuming a regular expression - needs fixing

remapping

In vim I have remapped hjkl to jkl; (actually, to jklč, because I am using a foreign keyboard) to be able to retain the index finger on the J.

It would be nice to be able to remap keys in your application, too.

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.