Coder Social home page Coder Social logo

ag's People

Contributors

bergman avatar blueyed avatar davidcelis avatar ervandew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ag's Issues

Option for ag command / options (--smart-case)

I would like to use the --smart-case option by default, and it would be useful if the ag plugin had an option for this.

Maybe it's even a good idea to enable this option by default?

setqftitle: documentation/reference; maybe include the patch in a contrib dir?

There is the following code in plugin/ag.vim:

if exists('*setqftitle')
  call setqftitle('ag' . args)
endif

I wondered where it might come from, and then found a mailing list thread about it:
https://groups.google.com/d/msg/eclim-dev/_FGmSoZ24ak/Bl1Jc1eFI1QJ

It still applies (except for the syntax hunk).

Is this still the latest patch?
Have you proposed it for inclusion in Vim?

btw, there's a warning when building:

eval.c: In function ‘f_getqftitle’:
eval.c:11784:26: warning: assignment makes pointer from integer without a cast [enabled by default]
     rettv->vval.v_string = get_errortitle(wp);
                          ^

Be consistent about search term quoting

:Ag 'foo' should behave like :Ag foo.

The current logic appears to be that quotes are taking literally, if there is not space in them.

Is this on purpose?

Merging of ack.vim/ag.vim and ervandew/ag ?

There is ack.vim [1], which can be easily used with "ag", too.
There is ag.vim [2], a fork of ack.vim, defaulting to "ag".

And there is "ag", which I just discovered.

ack.vim/ag.vim provides a lot of mappings for the quickfix window for handling the results (https://github.com/rking/ag.vim#keyboard-shortcuts) and provides different commands to manipulate the quickfix list (https://github.com/rking/ag.vim/blob/master/plugin/ag.vim).

While evandew/ag appears to be more sophisticated related to the invocation of "ag" (file filter, option completion, argument parsing, escaping, ...).

I am a long-time user of ack.vim, with ag as ackprg/grepprg, and primarily want to get opinions about merging features/functionality of both.

/cc @rking @mileszs

1: https://github.com/mileszs/ack.vim
2: https://github.com/rking/ag.vim
3: rking/ag.vim@mileszs:master...master

(Optionally) set @/ (search register)

It would be useful if the plugin would set the search register (@/) automatically after searching.

What do you think?
There should probably be an option for this (off by default)?

Optionally use location list instead of quickfix list

That would probably only require to use lexpr instead of cexpr and the same for copen/lopen etc.

There might be a global var to control this, and additional commands Agl and Agc/Agq to call a specific variant.

Compatibility with tplugin / autoload

I am testing out tplugin, which allows to lazily load Vim plugins.

From the issue I reported:
Please consider to move the Complete function to autoload/ag.vim as ag#Complete, which would facilitate the use with tplugin.

I would be happy to create a PR for this - just let me know.

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.