Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
blink-1.5.1-exe.zip | 2021-09-10 | 21.4 MB | |
README.md | 2020-08-29 | 4.8 kB | |
Blink-x86_64.AppImage | 2020-08-29 | 31.5 MB | |
Totals: 3 Items | 52.9 MB | 0 |
Blink code search
Instant code search, source files locator. Index management for multiple projects.
Replace in files for searched symbol.
Screenshots
Features
- Search without delay using prebuilt index, comparing to ack or ripgrep
- Very small index size compared to trigram
- Queries support autocomplete
- Switch multiple projects easily with individual index
- Support drag and drop for filename
- Replaces in files for searched symbol
- Cross platform and requires no installation
Download, Install
Windows and Linux binaries are available at https://github.com/ychclone/blink/releases
File listing
Code search
Replace in files
Usage
- Drop the folder (e.g. from file explorer, nautilus) into the window below
project tab.
- A new project dialog will appears. Type the file extensions that you want to index.
- Right click on the project name
- Click "Rebuild Symbol"
- Double click the project name to make it the active project. Or right click and select "Load"
- Start file filtering and code search on the file and symbol tab
- After symbol search in symbol tab or select files in file tab, it can show replace in files tool in menu->tool
Advanced Usage
For symbol queries, advanced options can be entered: There is no spacing in between e.g. /a10, /n3, /xinclude
- /a NumberOfLinesAfter
- /b NumberOfLinesBefore
- /n NumberOfLinesBeforeAndAFter
- /f FileNameToMatch
- /x PatternToExclude
In addition, regular expression can be entered for the queries: e.g. .*mainWindows, (_clicked|_Pressed) It will match all ("and" condition) if multiple symbols are entered for queries.
Configuration
The text editor when double clicking the filename in file tab could be set in configuration. The filename could be dropped to other editor. Option->Setting->Main->Default Editor
Compilation (Linux)
-
Download Qt Open Source offline installer: https://www.qt.io/offline-installers
-
Install Qt
- qmake
- make
cp ./blink build/
cd build
./blink
AppImage
-
Download linuxdeployqt-7-x86_64.AppImage: https://github.com/probonopd/linuxdeployqt/releases
-
chmod u+x linuxdeployqt-7-x86_64.AppImage
- ./linuxdeployqt-7-x86_64.AppImage blinkAppImage/usr/share/applications/blink.desktop -verbose=2 -appimage
Tips
Display result lines before and after
In the text field for symbol, "/n3" could be used to display 3 lines before and after
Match for multiple symbol
Multiple symbols (and condition) could be input for symbol queries.
e.g. Multiple match are input "CMainWindow", "_on" as queries.
Show multiple project
Regular expression could be used to filter the project name and source filename name.
e.g. "Or" condition for project name using the pipe "|" regular expression.
Troubleshooting
/usr/bin/ld: cannot find -lGL; collect2: error: ld returned 1 exit status
Sol: sudo apt install libgl1-mesa-dev
Qt version not match
sudo rm /usr/bin/qmake
sudo ln -s /home/ychclone/Qt5.13.2/5.13.2/gcc_64/bin/qmake /usr/bin/qmake
Segmentation fault (core dumped) when start
Please cp ./blink to build directory. Please make sure the following config files existed in build directory: - blink.ini - qtag.conf - qt.conf - record.xml
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
Error message: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Sol:
export QT_QPA_PLATFORM_PLUGIN_PATH=/home/ychclone/Qt5.13.2/5.13.2/gcc_64/plugins/platforms