Comments (9)
As the error message implies, filetype wrproject
(I'm not sure what is this type) is not supported by ag
.
What CtrlSF does is passing your filetype parameter to backend only, the actual work is up to your backend, there is no magic here.
from ctrlsf.vim.
But I admit that error message is printed some what confusing, I have fixed this problem and will be released in v1.21
.
from ctrlsf.vim.
Well, basically, what I expect from the filetype feature is that is searches only files with specified extension. A way how to specify -G parameter to ag
. The wrproject
is extension I want CtrlSF to grep.
from ctrlsf.vim.
At the first time I want to use -G
option of Ag to get things done but I found this option is marked deprecated and removed in Ack2, so there is no straightforward solution here. I have considered:
- Use
-G
for Ag and pipe along with-x
for Ack2. - Apply filtering in CtrlSF.
from ctrlsf.vim.
I think, the 1 is better. Detect whether Ack or Ack2 are on system.
from ctrlsf.vim.
@tex I have implemented this feature in the latest v1.4
branch, and there is a bit of time before it will be merged into master
. If you will, please test it and feel free to report any issue, thx!
from ctrlsf.vim.
let g:ackprg = 'ag --nogroup --nocolor --column --cc --cpp --java'
ag --context=3 --smart-case --literal --noheading --nogroup --nocolor --nobreak 'Hello World'
确实没有起作用
from ctrlsf.vim.
I tested it and it works nice. I like it.
from ctrlsf.vim.
V1.4 has been merged into master. (sorry for this so late merge)
Thank you for your feature suggestion!
from ctrlsf.vim.
Related Issues (20)
- Question: about a hack in the source code HOT 1
- preview window positioning HOT 6
- Error in ctrlsf#fs#FindProjectRoot HOT 4
- Keymap to open file in a vertical split HOT 2
- Question: Can I map or default the compact style to use quickfix list? HOT 1
- 查找时提示winlayout未定义 HOT 5
- How to specify search path? HOT 3
- *.hpp can't be find as default HOT 2
- Which regex engine? HOT 1
- "free(): invalid pointer" when doing async searches with neovim HOT 2
- Make filename not editable HOT 2
- async chops off first character when editing many files HOT 1
- preview with mouse
- Is it possible to search sentences rather than just a single word? HOT 2
- ctrlsf_backend keeps miserror HOT 3
- Question: is it possible to customize search for a word?
- How can I replace all occurence of the searched keyword? HOT 3
- Sync CtrlSF compact window when navigating via quickfix HOT 4
- Error detected while processing - Invalid argument HOT 1
- Feature request/query: how to pass a list of files to grep through? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctrlsf.vim.