mclear-tools / tabspaces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Searching files in a workspace

zetashift opened this issue · comments

Hi! Thank you for the great plugin. It's exactly the simplicity I was looking for.
I'm only missing one thing, and that is a command/function that searches through the current project(starting from the defined root and N folders deep), while respecting .gitignore.

I don't think this needs to be a function for tabspaces, but I'm new in Emacs-land and I was wondering what would be the best way.

I think the most straightforward option is to use project-find-file. That's a built in function. If you need to search within files use grep or ripgrep, perhaps via consult-grep/ripgrep if you use consult. Deadgrep is a nice library that might be useful to you as well.

I think the most straightforward option is to use project-find-file. That's a built in function. If you need to search within files use grep or ripgrep, perhaps via consult-grep/ripgrep if you use consult.

There is also project-find-regexp. I also find it useful you can get help in the middle of typing a prefix for something like the project prefix C-x p by adding C-h. So in full that is C-x p C-h, but in practice it's usually typing C-x p and thinking "what was that binding again?" then typing C-h.

With consult it even provides a selection menu!

I absolutely had no idea about those project specific built-in commands!

Thank you that is awesome :D