vim-quickui icon indicating copy to clipboard operation
vim-quickui copied to clipboard

can not use Capital character to be hotkey

Open Freed-Wu opened this issue 4 years ago • 4 comments

let content = [  [' &A', 'echo 100' ],  [' &2', 'echo 200' ],  [' &3', 'echo 300' ],  [' &4' ],  [' &5', 'echo 500' ], ]
let opts = {'title': 'select one'}
call quickui#listbox#open(content, opts)

press A will not work.

and can user use as hotkeys?

Freed-Wu avatar Apr 04 '20 06:04 Freed-Wu

It is case insensitive.

skywind3000 avatar Apr 04 '20 06:04 skywind3000

我遇到类似问题。当 & 在第一位时热键无效,我在 & 前面加上空格就可以使用热键了。只是 listbox 里发现此问题。虽然与此问题不同,但也不另开 issue 了,毕竟前面加个空格就可以解决。韦大有空看看是不是字符串分割的函数有疑似 bug。

Johnleegy avatar Apr 13 '20 02:04 Johnleegy

我遇到类似问题。当 & 在第一位时热键无效,我在 & 前面加上空格就可以使用热键了。只是 listbox 里发现此问题。虽然与此问题不同,但也不另开 issue 了,毕竟前面加个空格就可以解决。韦大有空看看是不是字符串分割的函数有疑似 bug。

Is it https://github.com/skywind3000/vim-quickui/issues/23?

Freed-Wu avatar May 17 '20 12:05 Freed-Wu

It is case insensitive.

if it is case insensitive, the upper charater and lower character must have the same result. In fact, only lower charater can work. i dare to think if it can support <S-x>,<C-x>,<M-x> and other special characters, the plugin will be better!

Freed-Wu avatar May 17 '20 12:05 Freed-Wu