Skip to content

request - change cursor to commit pane to view patch #768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 of 11 tasks
cbcoutinho opened this issue Jun 18, 2018 · 4 comments
Closed
3 of 11 tasks

request - change cursor to commit pane to view patch #768

cbcoutinho opened this issue Jun 18, 2018 · 4 comments

Comments

@cbcoutinho
Copy link

After running PlugUpdate and viewing all changes with D, I sometimes inspect the changes that were made to various plugins. Currently, selecting a commit opens a new pane below the tree of commits, but doesn't move the cursor - I think it makes sense to move the cursor to the new pane when selected instead of doing so manually.


NVIM v0.3.1-45-g66a39fce6
  • Type:
    • Bug
    • Enhancement
    • Feature Request
    • Question
  • OS:
    • All/Other
    • Linux
    • OS X
    • Windows
  • Vim:
    • Terminal Vim
    • GVim
    • Neovim
@nfischer
Copy link
Contributor

Fugitive moves the cursor focus into the new pane (I'm thinking of the o mapping in Gblame and Gstatus). I think this would be a nice feature (or, an optional snippet in the wiki pages).

@nfischer
Copy link
Contributor

Actually, are the o or <CR> mappings documented anywhere? I couldn't find them on the README (would expect it in this section).

@junegunn
Copy link
Owner

Related #749. I would like to find a way to allow remapping of o or <enter> without introducing a new plug map, though I'm not sure if it's possible, I'll look into it.

are the o or mappings documented anywhere?

No, they're not, I probably thought they were too obvious.

junegunn added a commit that referenced this issue Jun 19, 2018
junegunn added a commit that referenced this issue Jun 19, 2018
This allows you to override the default behavior of `o' or `<cr>'
binding in PlugDiff window.

e.g.
    " Move to preview window
    autocmd! FileType vim-plug nmap <buffer> o <plug>(plug-preview)<c-w>P

Close #749
Close #768
@junegunn
Copy link
Owner

See #769

junegunn added a commit that referenced this issue Jun 20, 2018
This allows you to override the default behavior of `o' or `<cr>'
binding in PlugDiff window.

e.g.
    " Move to preview window
    autocmd! FileType vim-plug nmap <buffer> o <plug>(plug-preview)<c-w>P

Close #749
Close #768
junegunn added a commit that referenced this issue Jun 20, 2018
This allows you to override the default behavior of `o' or `<cr>'
binding in PlugDiff window.

e.g.
    " Move to preview window
    autocmd! FileType vim-plug nmap <buffer> o <plug>(plug-preview)<c-w>P

Close #749
Close #768
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants