Warning: I will close the issue without the minimal init.vim and the
reproduction instructions.
Problems summary
SSIA
Expected
it is worked as well as not using chooseAction.
Environment Information
ddu-ui-ff version (SHA1):
592ac41
denops.vim version (SHA1):
68f607d
deno version(deno -V output):
deno 1.33.2
OS:
WSL2 Ubuntu 22.04
neovim/Vim :version output:
NVIM v0.10.0-dev-1052+g82150ca51-dirty
Build type: RelWithDebInfo
LuaJIT 2.1.1693350652
Run ":verbose version" for more info
Provide a minimal init.vim/vimrc without plugin managers (Required!)
set rtp+=~/.cache/dein/nvim/repos/github.com/vim-denops/denops.vim
set rtp+=~/.cache/dein/nvim/repos/github.com/Shougo/ddu.vim
set rtp+=~/.cache/dein/nvim/repos/github.com/Shougo/ddu-ui-ff
set rtp+=~/.cache/dein/nvim/repos/github.com/Shougo/ddu-source-file
set rtp+=~/.cache/dein/nvim/repos/github.com/Shougo/ddu-source-action
set rtp+=~/.cache/dein/nvim/repos/github.com/Shougo/ddu-kind-file
set rtp+=~/.cache/dein/nvim/repos/github.com/Shougo/ddu-source-line
let s:ddu_config_json =<< trim MARK
{
"uiParams": {
"ff": {
"startFilter": true
}
},
"kindOptions": {
"action": {
"defaultAction": "do"
}
}
}
MARK
let s:ddu_config_json = s:ddu_config_json->join('')->json_decode()
call ddu#custom#patch_global(s:ddu_config_json)
function s:unko(args)
let hoge = input('piyo: ')
return 0
endfunction
call ddu#custom#action('kind', 'file', 'unko', function('s:unko'))
nnoremap [ddu] <Nop>
nmap <Space>u [ddu]
nmap <silent> [ddu]f <Cmd>call ddu#start({
\ 'ui': 'ff',
\ 'sources': [{'name': 'file', 'params': {}}],
\ })<CR>
autocmd FileType ddu-ff call s:ddu_my_settings()
function! s:ddu_my_settings() abort
nnoremap <buffer> <CR>
\ <ESC><Cmd>call ddu#ui#do_action('itemAction')<CR>
nnoremap <buffer> a
\ <Cmd>call ddu#ui#do_action('chooseAction')<CR>
endfunction
autocmd FileType ddu-ff-filter call s:ddu_filter_my_settings()
function! s:ddu_filter_my_settings() abort
inoremap <buffer> <C-l>
\ <ESC><Cmd>call ddu#ui#ff#do_action('leaveFilterWindow')<CR>
endfunction
How to reproduce the problem from neovim/Vim startup (Required!)
type <Space>uf to start ddu
type <C-l> to leave filter window
type a to fire chooseAction
move cursor to unko and type <CR> to fire the action
the input window's text is now piyo: i not piyo:
Notes
after the No.5, type <CR> and the ui is not quit.
function ref to unko return 0. so it is expected to quit ui after type <CR>.
Screenshot (if possible)
Upload the log messages by :redir and :message (if errored)
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
Problems summary
SSIA
Expected
it is worked as well as not using chooseAction.
Environment Information
deno -V
output): deno 1.33.2:version
output: NVIM v0.10.0-dev-1052+g82150ca51-dirty Build type: RelWithDebInfo LuaJIT 2.1.1693350652 Run ":verbose version" for more infoProvide a minimal init.vim/vimrc without plugin managers (Required!)
How to reproduce the problem from neovim/Vim startup (Required!)
<Space>
u
f
to start ddu<C-l>
to leave filter windowa
to fire chooseActionunko
and type<CR>
to fire the actionpiyo: i
notpiyo:
Notes
after the No.5, type
<CR>
and the ui is not quit. function ref to unko return0
. so it is expected to quit ui after type<CR>
.Screenshot (if possible)
Upload the log messages by
:redir
and:message
(if errored)