Giter Club home page Giter Club logo

Comments (9)

dyng avatar dyng commented on July 19, 2024

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.

dyng avatar dyng commented on July 19, 2024

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.

tex avatar tex commented on July 19, 2024

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.

dyng avatar dyng commented on July 19, 2024

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:

  1. Use -G for Ag and pipe along with -x for Ack2.
  2. Apply filtering in CtrlSF.

from ctrlsf.vim.

tex avatar tex commented on July 19, 2024

I think, the 1 is better. Detect whether Ack or Ack2 are on system.

from ctrlsf.vim.

dyng avatar dyng commented on July 19, 2024

@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.

wuxinxinggg avatar wuxinxinggg commented on July 19, 2024

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.

tex avatar tex commented on July 19, 2024

I tested it and it works nice. I like it.

from ctrlsf.vim.

dyng avatar dyng commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.