Giter Club home page Giter Club logo

Comments (4)

gabesoft avatar gabesoft commented on July 20, 2024

After running :Ags --follow pattern try running :AgsShowLastCommand to see the actual ag command that was run. Then try that in a terminal and see what results you get. If the results are different that would be a bug.

from vim-ags.

raddevon avatar raddevon commented on July 20, 2024

This was not the problem I thought. I was searching in my dotfiles. All the files were being ignored by Ag by default since they were hidden files. Got that fixed. Thank you for the debugging tip.

Can you address how to add new default args? I would like hidden files to be searched by default, so I will need to add --hidden to the default arguments for the search. How can I do this since let g:ags_agargs['--hidden'] = ['',''] causes vim to complain?

from vim-ags.

gabesoft avatar gabesoft commented on July 20, 2024

You'd have to define g:ags_agargs in your vimrc. Something like below

let g:ags_agargs = {
            \ '--break'             : [ '', '' ],
            \ '--color'             : [ '', '' ],
            \ '--hidden'            : [ '', '' ],
            \ '--color-line-number' : [ '"1;30"', '' ],
            \ '--color-match'       : [ '"32;40"', '' ],
            \ '--color-path'        : [ '"1;31"', '' ],
            \ '--column'            : [ '', '' ],
            \ '--context'           : [ 'g:ags_agcontext', '-C' ],
            \ '--filename'          : [ '', '' ],
            \ '--group'             : [ '', '' ],
            \ '--heading'           : [ '', '-H' ],
            \ '--max-count'         : [ 'g:ags_agmaxcount', '-m' ],
            \ '--numbers'           : [ '', '' ]
            \ }

Or you may be able to do it the way you had it but put it in a place that runs after the plugins are loaded. For example with pathogen you'd put it in an after directory.

from vim-ags.

raddevon avatar raddevon commented on July 20, 2024

Awesome. Thank you so much for the help!

from vim-ags.

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.