Skip to content

ignu/glancr-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glancr 🔍

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.

CleanShot 2024-11-24 at 09 12 55@2x

Features

  • 🔎 Fuzzy file search
  • 📄 Content search with regex support
  • 📄 Syntax-highlighted file previews
  • ⌨️ Keyboard navigation
  • 🎨 Terminal UI powered by ratatui
  • 🚀 Fast and lightweight
  • 📁 Respects .gitignore

Installation

From source

bash
git clone https://github.com/ignu/glancr-rs.git
cd glancr
cargo install --path .

Keyboard Controls

  • Type to search files
  • / to navigate through results
  • F1 or Ctrl+h for help
  • Enter to open selected file in editor defined in ~/.glancr.yml
  • Ctrl+f for grepping all files
  • Ctrl+d to toggle searching dirty files
  • Ctrl+b to toggle files changed from default branch
  • Ctrl+n for searching file names
  • PageUp/PageDwn scroll preview
  • Esc to exit

Configuration

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages