Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Alberto Fanjul
@albfan
--hidden
sunzhusz
@sunzhusz
i means the directory in the .gitignore been ignored,but i want didn't ignore by the .agignore
Alberto Fanjul
@albfan
This is for ag.vim plugin but feel free to ask quedtions about ag itself
sunzhusz
@sunzhusz
i know --hidden
can you solve it ?than you @albfan
Alberto Fanjul
@albfan
Better to expose a use case
.agignore is an addition of other ignore files
Cannot revoke other ignore rules
sunzhusz
@sunzhusz
i got it,but now i hope not change .gitignore file and cancel to ignore someone file
what should i do?
Alberto Fanjul
@albfan
My english is very bad but yours is worse! Hahaha. Try to explai it with a real example: I have this file and this dir and I want ag to find this with these contents on .gitignore and these other in .agignore
sunzhusz
@sunzhusz
my english is so poor
this picture is the directory in the .gitignore
now i don't fix the .gitignore
change
Alberto Fanjul
@albfan
.gitignore is a file not a directory
sunzhusz
@sunzhusz
i know
Alberto Fanjul
@albfan
So that are the contents on .gitignore right?
sunzhusz
@sunzhusz
yes
Alberto Fanjul
@albfan
Ok
sunzhusz
@sunzhusz
so sorry
Alberto Fanjul
@albfan
No problem continue
sunzhusz
@sunzhusz
i don't want to change the .gitignore contents
Alberto Fanjul
@albfan
Ok. But what you want?
sunzhusz
@sunzhusz
but i still want ag find the directory
the directory in the .gitignore
Alberto Fanjul
@albfan
Then use ag --hidden as I told you before
sunzhusz
@sunzhusz
--hidden means find hidden files
Alberto Fanjul
@albfan
Hidden means search in hidden files
sunzhusz
@sunzhusz
so not work
Alberto Fanjul
@albfan
By default ag ignore hidden files
What file you want ag to return to you?
build_77/mysupercoolfile?
sunzhusz
@sunzhusz
yes
the directory is the contents in the .gitignore
Alberto Fanjul
@albfan
What pattern are you searching for? Maybe those files do not contain the regex you are using
sunzhusz
@sunzhusz
i use ag in the ctrlp of vim
Alberto Fanjul
@albfan
ag--hidden hello will search on build_*/ but if no files has hello inside it you will not get results
sunzhusz
@sunzhusz
ag default ignore the contents in the .gitignore
Alberto Fanjul
@albfan
Hahaha. That's another history. Ask on ctrlp forum. There's configuration involved there
You need to tweak .vimrc
sunzhusz
@sunzhusz
this is the config in the vimrc
Alberto Fanjul
@albfan
Ask on ctrlp forum or start using ag.vim. I'm not maintainer of ctrlp
sunzhusz
@sunzhusz
all right ,thank you all the same
Alberto Fanjul
@albfan
You are welcome
Wang Shidong
@wsdjeg
@sunzhusz can you add my qq, I think I know what you want.
But I can not use English
My qq is 279834419