Comments (4)
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.
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.
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.
Awesome. Thank you so much for the help!
from vim-ags.
Related Issues (20)
- What's the difference between this plugin and CtrlSF HOT 1
- How can I return back to SearchView from Edit Mode HOT 1
- Why can't I add lines to the edit view? HOT 1
- Lightline integration on readme HOT 2
- replace breaks format
- [Neovim] add async support? HOT 5
- reuse last window behavior HOT 4
- default mapping for next/prev result HOT 2
- Searching from git root HOT 10
- Regression for searches with spaces? HOT 2
- Open a file in a new tab HOT 5
- Optionally populate location/quickfix list HOT 3
- Edit mode HOT 3
- [Question] Mapping :Ags HOT 1
- Can't cancel long searches HOT 1
- Can't open files from search results
- Add folding markers
- Search results on new MacBook includes color encodings HOT 1
- file name encoding problem HOT 1
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 vim-ags.