A terminal-based file preview and search tool inspired by Telescope.nvim, built in Rust. Glancr provides fast file searching with fuzzy finding capabilities and syntax-highlighted previews right in your terminal.
- 🔎 Fuzzy file search
- 📄 Content search with regex support
- 📄 Syntax-highlighted file previews
- ⌨️ Keyboard navigation
- 🎨 Terminal UI powered by ratatui
- 🚀 Fast and lightweight
- 📁 Respects .gitignore
bash
git clone https://github.com/ignu/glancr-rs.git
cd glancr
cargo install --path .
- Type to search files
↑
/↓
to navigate through resultsF1
orCtrl+h
for helpEnter
to open selected file in editor defined in~/.glancr.yml
Ctrl+f
for grepping all filesCtrl+d
to toggle searching dirty filesCtrl+b
to toggle files changed from default branchCtrl+n
for searching file namesPageUp/PageDwn
scroll previewEsc
to exit
Glancr can be configured through ~/.glancr.yml
:
# Command used to open files (default: 'code')
open_command: 'cursor'
ignored_dirs:
- .git
- node_modules
- target
- dist
- build
ignored_patterns:
- .lock
- .log
- .map
- .cache
All configuration options are optional and will fall back to sensible defaults if omitted. For a complete list of default patterns and configuration options, see config.rs.