Skip to content
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

The prompt will be hidden. #7

Closed
nabezokodaikon opened this issue Feb 6, 2022 · 1 comment
Closed

The prompt will be hidden. #7

nabezokodaikon opened this issue Feb 6, 2022 · 1 comment

Comments

@nabezokodaikon
Copy link

nabezokodaikon commented Feb 6, 2022

Warning: I will close the issue without the minimal init.vim and the
reproduction instructions.

Problems summary

<C-j> hides the prompt.

Expected

<C-j> does not hide the prompt.

Environment Information

  • ddu.vim version (SHA1): 8a765f0

  • denops.vim version (SHA1): e2f17041495123e8ed9baa69098c947c5d7f6358

  • deno version(deno -V output): 1.18.2

  • OS: Mac

  • neovim/Vim :version output:

NVIM v0.7.0-dev+1017-g28d5face2
Build type: Release
LuaJIT 2.1.0-beta3
  • :checkhealth or :CheckHealth result(neovim only): OK

Provide a minimal init.vim/vimrc with less than 50 lines (Required!)

if &compatible
    set nocompatible
endif

let $CACHE = expand('~/.cache')

if !isdirectory(expand($CACHE))
    call mkdir(expand($CACHE), 'p')
endif

let s:dein_dir = expand('$CACHE/dein')
let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim'

if &runtimepath !~# '/dein.vim'
    if !isdirectory(s:dein_repo_dir)
        execute '!git clone https://github.com/Shougo/dein.vim' s:dein_repo_dir
    endif
    execute 'set runtimepath^=' . s:dein_repo_dir
endif

call dein#begin(s:dein_dir, expand('<sfile>'))

call dein#add('vim-denops/denops.vim')
call dein#add('Shougo/ddu.vim')
call dein#add('Shougo/ddu-commands.vim')
call dein#add('Shougo/ddu-ui-std')
call dein#add('Shougo/ddu-filter-matcher_substring')
call dein#add('Shougo/ddu-source-file_rec')
call dein#add('Shougo/ddu-kind-file')

call dein#end()
call dein#save_state()

call ddu#custom#patch_global({
    \   'ui': 'std',
    \   'sourceOptions': {
    \     '_': {
    \       'matchers': ['matcher_substring'],
    \     },
    \   },
    \   'uiParams': {
    \     'std': {
    \       'split': 'floating',
    \       'prompt': '>'
    \     },
    \   },
    \ })

autocmd FileType ddu-std call s:ddu_my_settings()
function! s:ddu_my_settings() abort
  nnoremap <buffer><silent> <CR>
  \ <Cmd>call ddu#ui#std#do_action('itemAction')<CR>
  nnoremap <buffer><silent> i
  \ <Cmd>call ddu#ui#std#do_action('openFilterWindow')<CR>
  nnoremap <buffer><silent> q
  \ <Cmd>call ddu#ui#std#do_action('quit')<CR>
endfunction

autocmd FileType ddu-std-filter call s:ddu_filter_my_settings()
function! s:ddu_filter_my_settings() abort
  inoremap <buffer><silent> <CR>
  \ <Esc><Cmd>close<CR>
  nnoremap <buffer><silent> <CR>
  \ <Cmd>close<CR>
endfunction

How to reproduce the problem from neovim/Vim startup (Required!)

  1. Start Neovim.
  2. Run call dein#update() commnad.
  3. Restart Neovim.
  4. Run call ddu#start({'sources': [{'name': 'file_rec'}]}) command.
  5. Type i (Open filter)
  6. Type <C-j>

Screenshot (if possible)

スクリーンショット 2022-02-06 20 16 05

@nabezokodaikon
Copy link
Author

I'm sorry. This was an issue of ddu-ui-std.

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

No branches or pull requests

1 participant