Giter Site home page Giter Site logo

ack.vim's People

Contributors

aharris88 avatar airblade avatar axelson avatar bitboxer avatar blueyed avatar brianpeiris avatar c9s avatar carlosgaldino avatar ches avatar ciupicri avatar gnap avatar happy-dude avatar ilyakatz avatar jefflund avatar jeremyckahn avatar juanpabloaj avatar kassio avatar ku1ik avatar linuus avatar mileszs avatar mmontu avatar nugend avatar pope avatar rakeshbala avatar rizzatti avatar technicalpickles avatar thebinarypenguin avatar tpope avatar troydm avatar unceus 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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  avatar  avatar  avatar

ack.vim's Issues

Search in .git repository

It would be great if this had a feature similar to ctrl-p, where you can somehow signal to ack.vim to find the first git/svn repository that the current working directory is in, and then search from that root.

Don't block GUI when searching

It would be nice if the search process would not block the complete interaction with vim
so that I can edit code while searching for stuff.

Using Ack to search javascript projects shows no results

When using Ack to search a Javascript project tree (Node.js), the new window shows no results or if shown sometimes, it clears the results when I choose any result.

When I use the ack from windows command prompt, it displays perfectly all results found.

Using gVim on Windows XP with ack-standalone.pl.

~/.ackrc ignored

Searching with :Ack pattern takes ages compared to searching from the terminal $ ack pattern

How can I make ack-vim ignore the files and directories I´ve specified in my ~/.ackrc ?

Cheers,
martins

Hitting enter on a file doesn't open it

Hi, great plugin. I'm using Snow Leopard, and in both the latest MacVim and vim 7.2 hitting return after searching doesn't open the file. It's highlighted, but nothing happens.

Feature request: Don't open first result

When I use :Ack I would like to see search results but choose which result to open. Oftentimes, I don't want to open the first search result but instead continuing editing the buffer I'm editing.

:make supports this with the alternate :make! command. Hopefully something similar is possible for Vim's external grep command functionality?

Quick overview of how to use the split window

Your docs assume that the reader knows how to use the split-window grep thing. I didn't, and so had to hit #vim because the docs themselves weren't very clear.

Maybe a crash course in using this functionality, or pointers to an explanation, would be helpful to the newbies like me.

Search results leak into terminal

When I run vim from OS X's (10.6.7) Terminal or iTerm apps and use the Ack command it works as expected, but upon closing vim all of the search results have been printed in the terminal window.

This does not occur when using MacVim even if it is launched via the mvim command.

Option to make Ack not replace current buffer with first matched file

When I'm acking for something it is VERY rare that I want to lose my current place in my open tab, I just want to see the usages of some word or phrase. By default Ack will overwrite your buffer with the first match and I can't seem to find a way to turn this off. It's very annoying frankly, if I forget to open a new tab before acking I lose my place and have to go buffer hunting.

Open all files from ack result

Is there any way to open all files return from the ack results into the buffers? It's easy to open each file individually, but I would like to open all of the files that are returned.

Tags or Branches for Stable Releases?

It would be awesome if y'all would tag and/or branch stable releases. Apart from the benefits it would have for developers working on ack.vim (like, being able to easily check out the code that people are ostensibly using on their machines, for instance), it would also be a boon to those of us using pathogen to manage vim plugins. We could submodule the "stable" branch (or whatever you want to call it) and then just always have the latest stable branch. Right now the choice is between manually managing it with the .tar.gz from vim.org or getting potentially unstable code.

Errors pops up when using the plugin

Since the lastest deploy on master, my ack.vim has been acting weirdly

Everytime I ack for a term, say controller, an error like this gets spat out

Note, I'm using the_silver_searcher as my ack command,

let g:ackprg = 'ag -S --nogroup --nocolor --column'

It even behaves the same way with the default ack command.
And yes, I have both the_silver_searcher and Ack instalelled and working.

Option to auto-preview file

I've modified the plugin by adding my own mappings so that when I move up and down (j and k) in the quickfix window the selected file is previewed (equivalent to typing "go"). My question is this: "Could this be made into a configuration option so I could set it from my .vimrc instead of having to modify the plugin source?".

Use a different command

Hi,

I would like to type :ack instead of :Ack! when searching. Is there a simple way to setup an alias or something to do this?

The ! is passed as an extra argument from looking at the code.

Would you recommend I just fork the project and change the code, or is there an easier way?

Can't use keyboard shortcuts in quickfix window

I'm trying to use the "o" keyboard shortcut to open a file from the quickfix window but I get:

Cannot make changes, 'modifiable' is off

It seems to be trying to do "insert newline below" so it's failing. This is normal VIM behavior isn't it? What am I missing?

Can't search for text with "#" symbol in it

I'm using HAML + JS, so I need to search for ids i.e. "#message". However, when the following search returns nothing in vim:

:Ack "#message" -Q --haml

I read all the options for the ack command so I think I'm using ack properly (I could be wrong). So is this me misunderstanding the '#' symbol in the context of vim, or is this issue from elsewhere?

STDERR is not properly ignored/dealt with (e.g. permission denied)

Hi,

small problem when searching a directory containing non accessible files (e.g. cache files that were created by a daemon's user). Those error messages are interpreted as matches from ack-grep and displayed accordingly. Since ack-grep seems to properly send these errors to STDERR, a quick fix would be to make the system call using "2>/dev/null".

Detecting and properly showing these messages as error-messages would be even better.

thanks,
Tobias

Fast close

Is it possible to close the split window with a simple keystroke ? e.g. esc ?

Searches with "#" blow up

I often need to search for strings that begin with "#" when finding id divs in haml/css

However Ack.vim explodes when using:

:Ack -Q "#something"

error:

E194: No alternate file name to substitute for "#"

ack -Q "#something" works fine from the command line so something in ack.vim is screwing it up

Unknown option: column and quick search does not works

Added as recommended for Debian / Ubuntu:
let g:ackprg="ack-grep -H --nocolor --nogroup --column"

but getting "Unknown option: column"

Partially works without column, i.e. displays result in quick search, but not opening in a split when I hit [Enter]

Option to not auto-open first match

Hi there,

Is it possible to configure Ack.vim so that it does not auto-open the first file which matches the search term?

Cheers,
Alastair

Quickfix window behaviour

I can see the result of :Ack something in a hsplit below. But the behavior of quickfix window is weird o instead of opening the file tries to open a line and give error modifiable is off. Nothing else seems to be working like v, t, h, q...Am i the only one facing this?

Only open buffers are included

Have been struggling with this one for a while. It's not a bug but more my ignorance of ack I suppose, sorry about that.

I would like to find a way to search in all the files of a 'project', meaning the current directory and subdirectories, while honoring my .ackrc file.

:Ack somestring

This finds all the occurrences of somestring in the open buffers. That's fine but not what I want, I want to find a way to include the files that aren't opened yet as well.

:Ack -u somestring

This comes a little closer to the solution. It now finds all occurrences of somestring, even if the file isn't opened yet. Problem is this also includes my log files (in one of the subdirectories) and my .git directory, meaning the search doesn't only takes ages but also finds a lot of useless matches.

The log and .git directories are excluded in my .ackrc file but I think adding the -u parameter tells ack to ignore that file. Is this correct?

So, is there a way to get all occurrences of somestring in the current directory and subdirectories while following the rules in the .ackrc file?

Thanks!

How to search word under cursor?

Is posible to search words by Ack like this?

  • cursor position

Ad.with_*some_scope(:params[:scope]) and press something like <leader>vv to search :Ack with_some_scope

Feature request: Similar item open functionality as NERDTree

NERDTree has some really slick commands for file node mappings. These could translate really well to ack.vim.

o = open (same as enter)
go = preview file (open but maintain focus on ack.vim results)
t = open in new tab
T = open in new tab silently

also some nice ones to open in split mode.

plz implement. thanks!! :-))

Add completion to :Ack (and other commands.)

I can never remember all of the flags for Ack, especially when I need to do something like search only file names, etc.

I would like :Ack and others to have completion so that I can fill in possible flags.

ag (the_silver_searcher) support?

What do you think about preferring ag if it is installed?

(Or, perhaps we could add an :Ag command?)

I profiled it and it's a bazillion times faster.

Search with "|" blows up

:Ack "hello|wello"

gives me

Searching ...
Error detected while processing function <SNR>20_Ack:
line   16:
E40: Can't open errorfile /var/folders/If/IfZlMN-8G3OpvJi2H-YbLk+++TI/-Tmp-/v56w6f0/5  

Whereas

ack hello|wello

on the command line works fine.

Search for selection

Hey
sometimes it would be really nice to be able to search for the current selection.

:Ack! '<,'>

At the moment this returns some errors:

 Error detected while processing function <SNR>19_Ack:
 E40: Can't open errorfile /var/folders/l8/1p3_btjs0y7bcw5k7df81czm0000gn/T/v9uVjcT/1

Maybe I am missing something here and this is already possible with some mapping.
Just let me know then.

No results shown when filetype is haskell (with haskellmode-vim)

I use haskellmode-vim and when I have a buffer open which is has the haskell filetype, invoking :Ack! always gives an empty quickfix window, even though the same query returns results when run from the shell prompt.

Here is a diff on ":set all" output between a plain buffer (where :Ack works as expected) and a buffer with the haskell filetype: https://gist.github.com/1688263

Sorry for filing this as an issue, I'm just out of ideas on how to debug it and could use some help with that. My whole vim config is available at https://github.com/arnar/vim-config

Search Freezes

Sometimes the search freezes and freezes the complete macvim window. Sadly I can't reproduce it but I think it has something to do with the NerdTree. Everytime the search freezes, NerdTree was open.

search in multiple directories

is there any way to search in multiple directories ?

it will be a great feature to have a configurable list of directories in vimrc in addition of current directory.
usefull to find patterns in external library

In MacVim, the recent version of Ack.vim with the ! option doesn't work at all

I cloned the latest Ack.vim and had it installed using Pathogen (amazing plugin if you haven't tried it). When I went to use the bang option to prevent opening the first result (thanks for adding this feature, btw!), I would get:

|| /bin/bash: ack -H --nocolor --nogroup: command not found

as my error message in the quickfix window. This seemed symptomatic of the ack script not being in my $PATH or something like that, but ack worked fine from my shell prompt. As it also did with all the flags passed to it (-H --nocolor --nogroup --column) in the Ack.vim script.

Eventually after much poking, I saw the following line was in a "if !exists("g:ackprg") block in the script. Even when I added the commented out line to let g:ackprg.... to my .vimrc, the plugin still didn't work.

So finally I just removed the if !exists block and left the blow line in the script:

let g:ackprg="ack -H --nocolor --nogroup --column"

Now it works great!

So..maybe reconsider the need of that if block??

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.