• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

vim-mode-plus-keymaps-for-git

Provides keymaps for vim-like navigation and control of git functionality in atom
  • #github
  • #keymaps
  • #vim-mode-plus
  • #fugitive
ryanolsonx
0.0.1 517
0
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

vim-mode-plus-keymaps-for-git

This is an atom package that provides keymaps for the git tab when you're using vim-mode-plus. This could technically be used without vim-mode-plus, but if you want vim bindings anyway, you'll probably have vim-mode-plus installed.

My goal is to provide similar mappings to the vim plugin fugitive. However, currently, I don't plan to write any custom commands to accomplish this. The scope of this package is to solely provide keymaps for existing commands. So the available fugitive provided keymappings will be limited (though, I believe, useful).

:rotating_light: This package provides keymaps only.

Provides the following keymaps in the git tab:

Keystroke Description Area
j Move down Staging Area
k Move up Staging Area
- Stage / Unstage selected item Staging Area
c c Commit or move to commit message entry Staging Area
enter Open file Staging Area
U Discard changes Unstaged changes area
U Unstage selected item Staged changes area

Recommended keymap.cson additions

'.workspace':
  ', g f': 'github:toggle-git-tab-focus'
  ', g g': 'github:toggle-git-tab'
  ', g r': 'github:fetch'
  ', g p': 'github:pull'
  ', g P': 'github:push'
  ', g c': 'github:commit'

I didn't include this in this package because everyone has different preferences for (in vim-speak). You might want to use 'space g' or '\ g'. It's up to you. Personally, I enjoy using ',' as my leader.

LICENSE

GPLv3. See LICENSE for more details.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by