-
Notifications
You must be signed in to change notification settings - Fork 85
Clap grep2 ++query=something
doesn't work
#711
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
Comments
Works well for me. Can you provide a sample repo to reproduce? |
It's very weird because
Does there any special Python module related is needed? I didn't install the modules listed in
|
Please try this patch and then recompile the binary locally via diff --git a/crates/maple_cli/src/commands/grep.rs b/crates/maple_cli/src/commands/grep.rs
index 69683c0..d0627a3 100644
--- a/crates/maple_cli/src/commands/grep.rs
+++ b/crates/maple_cli/src/commands/grep.rs
@@ -29,10 +29,10 @@ const RG_ARGS: [&str; 7] = [
];
// Ref https://github.com/liuchengxu/vim-clap/issues/533
-#[cfg(windows)]
+// #[cfg(windows)]
const RG_EXEC_CMD: &str = "rg --column --line-number --no-heading --color=never --smart-case '' .";
-#[cfg(not(windows))]
-const RG_EXEC_CMD: &str = "rg --column --line-number --no-heading --color=never --smart-case ''";
+// #[cfg(not(windows))]
+// const RG_EXEC_CMD: &str = "rg --column --line-number --no-heading --color=never --smart-case ''";
#[derive(StructOpt, Debug, Clone)]
pub struct Grep { |
This comment has been minimized.
This comment has been minimized.
Have you recompiled the Rust binary? Try running I'm also using macOS with rg 13.0.0. The patch just fixes |
The patch works! I did |
@liuchengxu sorry to boring you, do you still work on this neoclide/coc.nvim#1732 (comment)? |
Actually, I already have a basic working version but haven't found another time to polish and release it. Furthermore, since there are several LSP UI plugins already, plus I use it rarely in fact(I use |
Thank you for your reply. I did a test with Update: found #659, will try it more |
@fannheyward |
Instructions: Replace the template text and remove irrelevant text (including this line)
Warning: if you don't fill this issue template and provide the reproducible steps the issue could be closed directly.
Environment (please complete the following information):
Describe the bug
:Clap grep2 ++query=something
will show the window, but can't start to search with the input.Clap debug
To Reproduce
Steps to reproduce the behavior:
min.vim
:Start (neo)vim with command:
vim -u min.vim
Type
:Clap grep2 ++query=something
clap window shows, but didn't start to search
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: