Comments (4)
Thank you.
-
I agree that
~/tmp/for-code-reading
is a bad choice I made. But to allow it to be customized also cause me uneasiness, so maybe I can use another less obtrusive hardcoded value such as the ~/.cache/for-code-reading? What do you think? I checked my ~/.cache directory, seems a lot open source projects are using it already, so maybe it is part of FHS recommendation? -
Do you mean you have a subfolder which is a symlink in your main source folder, and beagrep will show nothing about code in that symlinked subfolder? In this case it is by design of the underlying beagle search engine, it will ignore symlinks.
-
I agree with you. But please note that when you use it in Emacs, displaying the shortened filename may cause it unable to find the file, because the default directory could be not the same as the top indexed project directory. That's why I made this decision. Aslo, the absolute path make it easily for scripting in other programs.
So I will add a -s|--short option, what do you think?
You may have to add the make(1)'s
Entering directory '/media/sunway/...'
and tweak Emacs's grep-mode to behave like its parent compilation-mode to not ignore thoseEntering directory
marks:(add-hook 'grep-mode-hook (lambda () (setq compilation-directory-matcher (default-value 'compilation-directory-matcher))))
from beagrep.
"Do you mean you have a subfolder which is a symlink in your main source folder ....
Nop, for example, my code is located at /media/sunway/android
, while /media/sunway
is symbolic linked to /home/sunway/source
, then if I run mkbeagrepidx
in /media/sunway/android
, the index file will be put into ~/tmp/for-code-reading/media/sunway/android
, right? but when I run beagrep -e xxx
in /home/sunway/source/android
later, it will try to locate the index file in ~/tmp/for-code-reading/home/sunway/source/android
, which does not exist. btw, it doesn't work even I build the index in /home/sunway/source/android
, because the index file is still put into ~/tmp/for-code-reading/media/sunway/android
...
from beagrep.
I see, it is a bug and I have fixed it for the master branch. The 1. and 3. still not fixed yet.
Thanks.
from beagrep.
- and 3. are also fixed in master, please have a try.
Thanks!
Almost forgot: cd ~/tmp; mkdir -p ~/.cache; mv for-code-reading/ ~/.cache/
This will save you from rebuilding the index.
from beagrep.
Related Issues (12)
- Can't locate String/ShellQuote.pm in @INC (you may need to install the String::ShellQuote module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/local/bin/beagrep line 6. BEGIN failed--compilation aborted at /usr/local/bin/beagrep line 6. HOT 1
- xargs: grep: terminated by signal 13 HOT 1
- is there any change for ubuntu18.04? HOT 1
- where is the `pn` command? HOT 2
- ag also workds faster at second times; HOT 3
- 请问archlinux下如何编译这个项目? HOT 1
- 原始的代码目录改名后如何快速更新索引? HOT 1
- 使用最新的代码无法匹配文件名? HOT 3
- Question: comparing to ripgrep HOT 1
- ubuntu16.04上使用beagrep HOT 1
- 在cygwin下执行报错 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 beagrep.