-
Notifications
You must be signed in to change notification settings - Fork 85
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
Buffer tabs appear in reverse order when opening multiple files with Neovim #31
Comments
@romgrk I noticed today that buffers still appear in reverse order when sourcing a saved session. To reproduce: " init.vim
call plug#begin('~/.vim/bundle')
Plug 'romgrk/barbar.nvim'
call plug#end()
|
Done |
Can't reproduce. I'll need more details. |
I just updated barbar.nvim to the latest commit 10df6f7.
The steps I used to reproduce the error: " init.vim
call plug#begin('~/.vim/bundle')
Plug 'romgrk/barbar.nvim'
call plug#end()
|
Still can't reproduce on my setup. I'll keep the issue open and might give it another look eventually but I have too much work to tell when I'll be able to get back to this. PR welcome if you want to try to fix it. |
@romgrk Btw, I noticed that when reproducing the steps above, but doing Also I'm getting the exact same issue on my Windows machine using the minimal |
@romgrk Below is the session file that Neovim generates after I run let SessionLoad = 1
let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1
let v:this_session=expand("<sfile>:p")
silent only
cd ~/
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
let s:wipebuf = bufnr('%')
endif
set shortmess=aoO
badd +1 foo
badd +0 bar
argglobal
%argdel
edit bar
set splitbelow splitright
set nosplitbelow
set nosplitright
wincmd t
set winminheight=0
set winheight=1
set winminwidth=0
set winwidth=1
argglobal
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 1 - ((0 * winheight(0) + 21) / 42)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
1
normal! 0
tabnext 1
if exists('s:wipebuf') && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
silent exe 'bwipe ' . s:wipebuf
endif
unlet! s:wipebuf
set winheight=1 winwidth=20 winminheight=1 winminwidth=1 shortmess=filnxtToOF
let s:sx = expand("<sfile>:p:r")."x.vim"
if filereadable(s:sx)
exe "source " . fnameescape(s:sx)
endif
let &g:so = s:so_save | let &g:siso = s:siso_save
doautoall SessionLoadPost
unlet SessionLoad
" vim: set ft=vim : |
Can't reproduce, I get "foo, bar". |
That's really odd that you can't reproduce it. What version of Neovim are you using? |
|
Any update on this thread? I came across this as well |
Still in my task list but I don't have enough bandwidth these days, and if I can't reproduce I can't debug. If anyone is interested in debugging further I can explain where to look. |
The the interim I've just remapped my buffer navigation to be backwards 😆 |
I take that back, that solution doesn't always work because it seems barbar is sorting my buffers 😵 💫 |
Also it seems to me like Ctrl-i and Ctrl-o navigation has been wonky since installing barbar 🤔 |
File a different issue for the ctrl-i/ctrl-o thing if you have more details. |
@melkster does this still happen? |
@Iron-E Yes 😕 |
im not even seeing buffer tabs 😢 |
Can you open a separate issue about this? Additional details like Nvim version, platform, barbar config, and/or minimal reproduction would be helpful |
For instance, when running
nvim foo bar baz
in the shell, the buffer tabs order, i.e.baz
,bar
,foo
.The text was updated successfully, but these errors were encountered: