-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
[RFC] Replace UI #624
[RFC] Replace UI #624
Conversation
Please test the branch. |
After testing the branch with the colorscheme source, I get this error on Windows 10 with neovim 0.3.4:
It could be my fault because I recently switched to Dein as a plugin manager. |
I tried this branch. Just switched the branch. No changes to my config. No errors, but I do not understand what to do with it. Not able to get to insert mode to filter. Esc does not work to hide denite buffer. Enter does move cursor one line down. No nice input line. What to do? |
Please read the documentation. You need to define mappings like defx. " Define mappings
autocmd FileType denite call s:denite_my_settings()
function! s:denite_my_settings() abort
nnoremap <silent><buffer><expr> <CR>
\ denite#do_map('do_action')
nnoremap <silent><buffer><expr> d
\ denite#do_map('do_action', 'delete')
nnoremap <silent><buffer><expr> p
\ denite#do_map('do_action', 'preview')
nnoremap <silent><buffer><expr> q
\ denite#do_map('quit')
nnoremap <silent><buffer><expr> i
\ denite#do_map('open_filter_buffer')
nnoremap <silent><buffer><expr> <Space>
\ denite#do_map('toggle_select').'j'
endfunction |
I have tested but I don't reproduce the problem. |
After getting home and doing a little bit more testing, |
It is vim-airline's issue. I have checked vim-airline's code. It uses old statusline APIs. |
I met 2 problems on this.
But sorry, I didn't use .vimrc.mini yet. I will test those problems with |
I don't reproduce the error. So I will ignore your report.
Please upload the minimal vimrc. |
I did'nt reproduce with
This problems reproduce on my if has('vim_starting')
set encoding=utf-8
endif
scriptencoding utf-8
let dein = {}
let dein.dir = {}
let dein.dir.install = $XDG_CONFIG_HOME . '/dein.mini/repos/github.com/Shougo/dein.vim'
let dein.dir.plugins = $XDG_CONFIG_HOME . '/dein.mini'
if !isdirectory(dein.dir.install)
call mkdir(dein.dir.install, 'p')
call system(printf('git clone https://github.com/Shougo/dein.vim %s', shellescape(dein.dir.install)))
endif
let &runtimepath = &runtimepath . ',' . dein.dir.install
if dein#load_state(dein.dir.install)
call dein#begin(dein.dir.plugins)
call dein#add('Shougo/dein.vim')
call dein#add('Shougo/denite.nvim', { 'rev': 'ui' })
call dein#end()
endif
if dein#check_install()
call dein#install()
endif
filetype plugin indent on
syntax enable
augroup vimrc
autocmd!
augroup END
autocmd vimrc FileType denite call s:denite_setting()
function! s:denite_setting() abort
nnoremap <silent><buffer><expr>i denite#do_map('open_filter_buffer')
nnoremap <silent><buffer><expr>a denite#do_map('open_filter_buffer')
nnoremap <silent><buffer><expr>q denite#do_map('quit')
nnoremap <silent><buffer><expr><Esc> denite#do_map('quit')
nnoremap <silent><buffer><expr><Tab> denite#do_map('choose_action')
nnoremap <silent><buffer><expr><C-l> denite#do_map('redraw')
nnoremap <silent><buffer><expr><C-h> denite#do_map('restore_sources')
nnoremap <silent><buffer><expr><CR> denite#do_map('do_action')
nnoremap <silent><buffer><expr>v denite#do_map('do_action', 'vsplitswitch')
nnoremap <silent><buffer><expr>s denite#do_map('do_action', 'splitswitch')
nnoremap <silent><buffer><expr>@ denite#do_map('toggle_select')
endfunction
let s:menus = {}
let s:menus.vim = {'description': 'vim runtime.'}
let s:menus.vim.command_candidates = [
\ ['upgrade: dein:deps', 'call dein#update()']
\ ]
call denite#custom#var('menu', 'menus', s:menus) |
I have fixed menu error. |
I detect this problem's reason. It's my mistake. FYI: this problems will cause by this. " fix layout(sloppy code).
let s:current_winnr = tabpagewinnr(tabpagenr())
try
for s:ft in ['defx', 'deol', 'denite']
let s:winnrs = range(1, tabpagewinnr(tabpagenr(), '$'))
if len(s:winnrs) > 1
for s:winnr in s:winnrs
if s:ft ==# 'defx' && s:ft == getbufvar(winbufnr(s:winnr), '&filetype')
execute printf('silent noautocmd %swincmd w', s:winnr)
execute printf('silent noautocmd vertical resize %s', 35)
break
endif
if s:ft ==# 'deol' && s:ft == getbufvar(winbufnr(s:winnr), '&filetype')
execute printf('silent noautocmd %swincmd w', s:winnr)
execute printf('silent noautocmd wincmd K | silent noautocmd resize %s', 12)
break
endif
if s:ft ==# 'denite' && s:ft == getbufvar(winbufnr(s:winnr), '&filetype')
execute printf('silent noautocmd %swincmd w', s:winnr)
execute printf('silent noautocmd wincmd J | silent noautocmd resize %s', 12)
break
endif
endfor
endif
endfor
silent noautocmd execute printf('%swincmd w', s:current_winnr)
catch
endtry |
Previously, I had used the
Also, is it possible to replicate |
@orokasan I have fixed the error. Please use the latest version. |
You should check your candidates number. |
I have improved filter behavior. |
I have improved the timer. Please use the latest version. I don't want to use
I don't want to add the feature. |
I conformed all problems are fixed. Thanks ! |
I second that. I really like how you can stay in the same mode right with Denite right now.
If you don't want to add that feature it's ok, but would it even be possible? |
@Shougo thanks for help with configuration. I now see how it works. |
You can add it, but I don't accept the PR.
You can add another filter UI instead. |
I tried
I tested this.
minimal init.vimset runtimepath+=~/path/to/denite.nvim
augroup vimrc
autocmd!
augroup END
autocmd vimrc FileType denite call s:denite_my_settings()
function! s:denite_my_settings() abort
nnoremap <silent> <buffer> <expr> <CR> denite#do_map('do_action')
nnoremap <silent> <buffer> <expr> q denite#do_map('quit')
nnoremap <silent> <buffer> <expr> i denite#do_map('open_filter_buffer')
endfunction |
Reproduced. Please wait until fix.
I don't reproduce it. Please upload the reproduce instructions. |
I will remove old screenshots in README. |
Fixed. Please use the latest version. |
I will merge the feature later. |
Sorry for the rather long vimrc that follows but it's the shortest way I can reproduce this: set nocompatible
let $DOTVIM = expand('$HOME/.config/nvim')
if has('vim_starting')
execute 'set runtimepath+=' . expand(
\ '$DOTVIM/bundle/repos/github.com/Shougo/dein.vim')
endif
call dein#begin(expand('$DOTVIM/bundle/'))
call dein#add('vim-airline/vim-airline')
call dein#add('gioele/vim-autoswap')
call dein#add('junegunn/vim-easy-align')
call dein#add('jamessan/vim-gnupg')
call dein#add('machakann/vim-highlightedyank')
call dein#add('Yggdroot/indentLine')
call dein#add('simnalamburt/vim-mundo', {'on_cmd' : 'MundoToggle'})
call dein#add('neomake/neomake')
if exists(':tnoremap')
call dein#add('kassio/neoterm')
endif
call dein#add('scrooloose/nerdcommenter')
call dein#add('justinmk/vim-sneak')
call dein#add('majutsushi/tagbar', {'on_cmd' : 'TagbarOpen'})
call dein#add('SirVer/ultisnips')
call dein#add('dhruvasagar/vim-zoom')
call dein#add('petobens/colorish', {'frozen': 1})
call dein#add('tpope/vim-abolish')
call dein#add('tpope/vim-dispatch')
call dein#add('tpope/vim-repeat')
call dein#add('tpope/vim-rhubarb')
call dein#add('tpope/vim-surround')
call dein#add('airblade/vim-gitgutter')
call dein#add('junegunn/gv.vim')
call dein#add('tpope/vim-fugitive')
call dein#add('tommcdo/vim-fubitive')
call dein#add('shumphrey/fugitive-gitlab.vim')
call dein#add('rhysd/git-messenger.vim', {'on_cmd' : 'GitMessenger',
\ 'on_map' : '<Plug>(git-messenger)'})
call dein#add('lervag/vimtex', {'on_ft' : ['tex', 'bib']})
call dein#add('plasticboy/vim-markdown', {'on_ft' : 'markdown'})
call dein#add('davidhalter/jedi-vim', {'on_ft' : 'python'})
call dein#add('jeetsukumaran/vim-pythonsense', {'on_ft' : 'python'})
if has('nvim')
call dein#add('numirias/semshi', {'on_ft': 'python'})
endif
call dein#add('tmhedberg/SimpylFold', {'on_ft' : 'python'})
call dein#add('vim-python/python-syntax', {'on_ft' : 'python'})
call dein#add('petobens/vim-virtualenv') " won't work if loaded on_ft
call dein#add('jalvesaq/Nvim-R')
call dein#add('chrisbra/csv.vim', {'on_ft': 'csv'})
call dein#add('tpope/vim-dadbod')
call dein#add('cespare/vim-toml', {'on_ft': 'toml'})
call dein#add('Shougo/dein.vim')
call dein#add('Shougo/denite.nvim', {'rev': 'ui'})
call dein#add('neoclide/denite-extra')
call dein#add('raghur/fruzzy')
call dein#add('neoclide/denite-git')
call dein#add('Shougo/neomru.vim')
call dein#add('Shougo/neoyank.vim')
call dein#add('rafi/vim-denite-z')
call dein#add('kmnk/denite-dirmark')
call dein#add('Shougo/deoplete.nvim')
call dein#add('Shougo/context_filetype.vim')
call dein#add('Shougo/echodoc.vim')
call dein#add('deoplete-plugins/deoplete-docker')
if has('nvim')
call dein#add('deoplete-plugins/deoplete-jedi')
endif
call dein#add('Shougo/neco-vim', {'name' : 'neco-vim'})
call dein#add('Shougo/neco-syntax')
call dein#add('Shougo/neoinclude.vim')
call dein#add('tbodt/deoplete-tabnine', {'build': './install.sh'})
call dein#add('Shougo/defx.nvim')
call dein#add('kristijanhusak/defx-icons')
call dein#add('kristijanhusak/defx-git')
call dein#end()
filetype plugin indent on
let g:dein#install_log_filename = expand('$HOME/.cache/dein/dein.log')
let g:dein#install_max_processes = 16
function! s:dein_update()
call dein#update()
Denite -no-start-filter -post-action=open dein/log:!
endfunction
nnoremap ,bu :call <SID>dein_update()<CR>
call denite#custom#option('default', {
\ 'auto_resize': 1,
\ }) If I now press
|
I cannot fix the error. |
Merged. |
So I cannot use denite with dein source now? |
Yes. |
refs: github.com/Shougo/denite.nvim/pull/624
refs: github.com/Shougo/denite.nvim/pull/624
Apparently the problem is with Denite -no-start-filter -post-action=open dein/log:! with Denite -no-start-filter dein/log:! it seems to work. No idea if this is a bug or not |
It works for me. |
My change actually doesn't fix it. Is there a way to silence the error?
i.e catch the exception and avoid displaying the message. Or at least can you explain why this happens? It didn't use to... |
No. Because, Python seems crashed. Please read this:
|
You can trace the log.
|
At least, this is not denite.nvim's bug. |
OK. I get the reason. call denite#custom#option('default', {
\ 'auto_resize': 1,
\ }) If you enable |
I have disabled auto resize when asynchronous. |
Thank you! |
Mmm unfortunately I'm still seeing:
even with your auto resize asynchronous fix so the problem apparently was not related with the auto_resize feature... |
I don't reproduce the problem. |
Fix #509 #625