Liu-Cheng Xu

Results 170 comments of Liu-Cheng Xu

`on_no_matches` is mentioned in https://github.com/liuchengxu/vim-clap/blob/master/PROVIDER.md#rpc-based, but it's also usable for the regular providers. The docs need update. #417 seems stalled. What's more, each builtin provider in the clap repo is...

>And would it be possible to add a boolean option to simply pass the argument even if it's not in the list? I can't understand this design. If you have...

What if I want to do another thing in `on_no_matches` which is different with what `sink` does? And you can simplify your example with lambda if you are not happy...

I can consider it if someone sends a good patch with a reasonable design. Each entry relates to the `sink` function by default, adding new entries means these also must...

Actually I don't understand what your request is.

这个想法挺好的,我有空看下。

要想显示 prefix 下层的按键可能不是那么简单,现在你可以用 `name` 属性进行优化,如果不存在 `name`, 才会显示默认的 `+prefix`, 参见 https://github.com/liuchengxu/space-vim/blob/d118bc7ff7/core/autoload/spacevim/map/leader.vim#L13 。

不用每次,合理的做法是定义按键的就考虑 mnemonic, `name` 展示的这个 group 的主要功能,比如 `b` 就是 buffer 相关,`t` 就是 tab 相关,详情参见 https://www.spacemacs.org/doc/DOCUMENTATION.html#mnemonic 。

It can be helpful if you bisect the commit that introduces this change.

`:Clap tags` and `:Clap proj_tags` works out of the box for me with Rust using the universal-ctags. You can extend the current `tags` provider by searching the tag files instead...