Comments (6)
Could you try below each commands while committia windows are shown?
:nmap <C-h>
:nmap <C-j>
:nmap <C-k>
:nmap <C-l>
What was shown in messages area for each commands?
from committia.vim.
I got this:
n <C-H> * :TmuxNavigateLeft<CR>
n <NL> * :TmuxNavigateDown<CR>
n <C-K> * :TmuxNavigateUp<CR>
n <C-L> * :TmuxNavigateRight<CR>
I have the plugin Plug 'christoomey/vim-tmux-navigator'
that allows for navigation between tmux and vim panes. This might be the reason why it's failing...
from committia.vim.
Yeah, I think disabling the plugin temporarily would solve this problem. I don't know what actually the plugin does. But I think overwriting mappings only in committia windows as following may solve this problem.
" In .vimrc
function! s:setup_win_move(info)
nnoremap <buffer><C-h> <C-w>h
nnoremap <buffer><C-j> <C-w>j
nnoremap <buffer><C-k> <C-w>k
nnoremap <buffer><C-l> <C-w>l
endfunction
let g:committia_hooks = {}
let g:committia_hooks.edit_open = function('s:setup_win_move')
let g:committia_hooks.diff_open = function('s:setup_win_move')
let g:committia_hooks.status_open = function('s:setup_win_move')
from committia.vim.
Unfortunately, this didn't work. The issue only surfaces when I am inside a tmux session. I think the issue is in my ~/.tmux.conf
I have the following settings:
# Smart pane switching with awareness of vim splits
# recommended by vim-tmux-navigator
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"'
bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
When I remove this, the quick window navigation works inside committia while inside a tmux session. The downside is that I can't use the mappings to navigate tmux panes...
from committia.vim.
I see. From .vimrc
, there is no way to modify tmux config safely. The tmux config captures input sequence from you before Vim receives. Then I think you need to find other mappings like <Space>h
, <Space>j
, ...
from committia.vim.
Thanks.
from committia.vim.
Related Issues (20)
- proper handling of "git commit --amend" HOT 5
- Does not work for vcsh or fake bare git technique HOT 10
- All files are shown as deleted HOT 5
- Git commit templete is removed HOT 2
- Initial merge message is dropped HOT 2
- invalid range error HOT 3
- How to complete from the diff window? HOT 1
- Configure diff tool? HOT 1
- git commit -a not working properly for diff view HOT 10
- How to enable this feature during the rebase [edit, reword] HOT 2
- Add the ability to customize left window width
- Definitions for <Plug>(committia-scroll-diff-down) / up seem to be wrong
- Does not work with amend HOT 4
- Does not work with filetype.nvim HOT 3
- Pictures on the readme are not legible
- work with neogit HOT 6
- Error when amending commit
- How to trigger the committia HOT 1
- Another window with (configurable) git log HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from committia.vim.