Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 15:01

    liuchengxu on MatchingTextKind-refactoring

    IgnoreFilePath => GrepLine Remove unnecessary lifetime (compare)

  • 14:10

    liuchengxu on MatchingTextKind-refactoring

    matching_kind_enum => match_sco… MatchingTextKind => MatchScope (compare)

  • May 16 21:09

    dependabot[bot] on cargo

    (compare)

  • May 16 21:08
    dependabot[bot] closed #824
  • May 16 21:08
    dependabot[bot] commented #824
  • May 16 21:08
    dependabot[bot] labeled #830
  • May 16 21:08
    dependabot[bot] opened #830
  • May 16 21:08

    dependabot[bot] on cargo

    Bump pyo3 from 0.15.1 to 0.16.5… (compare)

  • May 16 09:26
    liuchengxu labeled #829
  • May 16 09:26
    liuchengxu unlabeled #829
  • May 16 09:26
    liuchengxu closed #829
  • May 16 09:26
    liuchengxu commented #829
  • May 10 09:12
    cgxxv labeled #829
  • May 10 09:12
    cgxxv opened #829
  • May 10 01:58

    liuchengxu on try-fix-clap-tags

    (compare)

  • May 10 01:58

    liuchengxu on master

    Seperate the vista impl for tag… (compare)

  • May 10 01:58
    liuchengxu closed #827
  • May 10 01:51
    liuchengxu edited #827
  • May 10 01:50
    liuchengxu synchronize #827
  • May 10 01:50

    liuchengxu on try-fix-clap-tags

    Update CHANGELOG.md (compare)

LinArcX
@LinArcX
Yeah seems OK with small projects.
Thanks.
Igor Pnev
@exdeniz
Hello. How to use Clap files with wildignore?
Liu-Cheng Xu
@liuchengxu
:h :Clap-files to pass any executable and opts.
Andrey Kuznetsov
@onsails

hey @liuchengxu want to let you know that I’ve figured out how to distribute vim-clap in nixpkgs with maple binary, just waiting for PR to be accepted: https://github.com/NixOS/nixpkgs/pull/91894/files#diff-ec28784e46f2816ab862cd62c191904cR763

Excellent plugin, kudos to your work!

Liu-Cheng Xu
@liuchengxu
@onsails Very nice! :thumbsup: I'm not familiar with nixos, let mt know if there are some messages for the nix users that are good to be included in clap README once it get merged.
Andrey Kuznetsov
@onsails
Yep, after PR is accepted I’ll PR to vim-clap with instructions
CJ Lazell
@cj
evening .... in filer, how do you expand a folder?
CJ Lazell
@cj
the docs say tab should open the directory in insert mode, but it only seems to work in normal mode
Liu-Cheng Xu
@liuchengxu
Tab works for me both in insert and normal mode.
Tab is to expand the directory.
LinArcX
@LinArcX
Hi. I updated vim-clap 10 minutes ago and nothing works. I mean none of these keybindings:
https://github.com/liuchengxu/vim-clap#keybindings
EoE
@ErrEoE
In Clap files command, how to set ignore directory and files?
EoE
@ErrEoE
I use 'Clap files ++finder=' . 'rg --files --follow --hidden -g "!.git/*"', it's show nothing.
Markel Tuzynskyi
@mtuzinskiy
Hi, I just wanted to say a huge THANK YOU!
I've just switched back on Vim from Emacs (been using it for 2+ years), and I feel myself at home.
Let me dare to say that neither FZF nor CoC fuzzy finding doesn't give this "Ivy" experience
Adrian
@adrianpkr_gitlab
vim-clap relies on external providers like fzf for fuzzy matching, right?
Julian Ospald
@hasufell
awesome project
Liu-Cheng Xu
@liuchengxu

vim-clap relies on external providers like fzf for fuzzy matching, right?

Nope, vim-clap can use the external finders like fzf, skim, but it itself also supports the same features of them. If you uses the Rust binary of clap, then you don't have to rely on fzf/skim, etc.

Adrian
@adrianpkr_gitlab
I see, that's great and what I had hoped for!
M.
@mklllr
Hi. I was wondering if I can filter :Clap buffers by bufnr or its part. Would be great to be able to enter something like @8 and be able to see buffers 8, 18, ..., 80-89, 800-899, etc.
Julian Ospald
@hasufell
Is there a way to add a hotkey in the buffer list to close/delete a buffer?
Liu-Cheng Xu
@liuchengxu

Is there a way to add a hotkey in the buffer list to close/delete a buffer?

You can invoke the action dialog, see <Shift-Tab>in https://github.com/liuchengxu/vim-clap#keybindings.

Hi. I was wondering if I can filter :Clap buffers by bufnr or its part. Would be great to be able to enter something like @8 and be able to see buffers 8, 18, ..., 80-89, 800-899, etc.

I think you have to create your own buffers provider then, specifically write a new on_typed impl instead of using the default one, see https://github.com/liuchengxu/vim-clap/blob/master/PROVIDER.md how to write a clap provider, you can basically do anything you want to.

Markel Tuzynskyi
@mtuzinskiy
Hi guys! Is it possible to keep the currently opened file selected when filer opens? Now selection goes to the first file in folder
Adrian
@adrianpkr_gitlab
Is there an advantage to building the binary locally vs downloading it?
Adrian
@adrianpkr_gitlab
↑ I mean, performance wise. Aside from that consideration, I can only see upsides to downloading instead of building locally.
Adrian
@adrianpkr_gitlab
Using :Clap files, pressing ENTER just clears the input but does not open the suggested file (nor close the popup). Normally it should open the file, right? Pressing e.g. Ctrl-t does open the file.
Liu-Cheng Xu
@liuchengxu

↑ I mean, performance wise. Aside from that consideration, I can only see upsides to downloading instead of building locally.

No, if you only talk about the performance. The drawback of downloading is they are released now and then, then you can't get some fixes of the binary in time.

Using :Clap files, pressing ENTER just clears the input but does not open the suggested file (nor close the popup). Normally it should open the file, right? Pressing e.g. Ctrl-t does open the file | Yes, works for me, file an issue if you can reproduce with a minimal vimrc.
Lucy
@lucypero
hello
Is there a way to customize default providers? I just wanted to add the arg --no-ignore to rg --files when using :Clap files but I had to create a new custom provider just for that
or for example for :Clap buffers.. it'd be nice to be able to customize the output of it
Lucy
@lucypero
i guess i could copy https://github.com/liuchengxu/vim-clap/blob/master/autoload/clap/provider/buffers.vim , then modify it and change the name..
Dave Miller
@mildavw_gitlab
Is there a way to enable Clap files to do fuzzy matching? Or do I need to create a new provider that uses fzf or something?
lluar
@lluar:matrix.org
[m]
Hello, I have written a custom provider for asynctasks.vim. This works when I call it with ": Clap tasks", unfortunately the provider is not in the provider list when I call "Clap". How can I change this?
function! TaskListSource()
          let rows = asynctasks#source(&columns * 48 / 100)
          let source = []
          for row in rows
                   let name = row[0]
                  let source += [name . '  ' . row[1] . '  : ' . row[2]]
          endfor
          return source
  endfunction

function! TaskListSink(selected)
let task = split(a:selected)[0]
execute 'AsyncTask '.task
endfunction

let g:clap_provider_tasks = {
          \ 'source': function('TaskListSource'),
          \ 'sink': function('TaskListSink')
          \ }
Liu-Cheng Xu
@liuchengxu
@lluar:matrix.org , for now you need to put this snippet into a script at autoload/clap/provider/tasks.vim so that it can be found when you call :Clap.
Liu-Cheng Xu
@liuchengxu
@lluar:matrix.org Just add description in g:clap_provider_tasks, see liuchengxu/vim-clap#605.
ttys3
@ttys3
image.png
bcommits get error when a file not belong to git or never commited
just updated to the latest version ,seens problem resolved
Herald
@uosl
Hello! When doing :Clap grep (or grep2) there's a box with a question mark between the >> and filename. How do I override this? I've looked through clap.txt but could only find char overrides for other elements.
Liu-Cheng Xu
@liuchengxu
That might be the icon. You can either disable the icon via let g:clap_enable_icon = 0 or use a nerd font to display the icon properly. Post a picture if the problem still persists.
Herald
@uosl
Thanks for answering. I did try that, and tried it again now, but no difference. I will see how to upload a screenshot here...
I tried a different terminal which I think displays the unicode in the box? https://a.uguu.se/xUCZZLBW.png
Herald
@uosl
ahh, I see now. I installed nerd fonts (I was worried they were graphical which causes my terminal to crash) and they're logos for the programming language of the file. Is there a setting to disable them? let g:clap_enable_icon = 0 doesn't seem to do it.
nl
@nldev
not quite sure how to get previews working. i see the preview window, but there's no text.
nl
@nldev
with any command, :Clap files :Clap buffers etc