项目作者: mosmeh

项目描述 :
A locate alternative with incremental search
高级语言: Rust
项目地址: git://github.com/mosmeh/indexa.git
创建时间: 2020-06-02T08:56:05Z
项目社区:https://github.com/mosmeh/indexa

开源协议:MIT License

下载


indexa

build

A locate alternative with incremental search

Installation

  1. cargo install --git https://github.com/mosmeh/indexa

Usage

  1. # view and search files & directories
  2. ix
  3. # choose which file to open in vi
  4. vi $(ix)
  5. # use regex
  6. ix -r
  7. # match full path
  8. ix -p

On the first launch, indexa will ask you if you want to create a database with a default configuration.

To update the database, run:

  1. ix -u

Configuration

indexa’s behavior and appearance can be customized by editing a config file.

The config file is located at ~/.config/indexa/config.toml on Unix and %APPDATA%\indexa\config.toml on Windows.

Key bindings

  • Enter to select current line and quit
  • ESC / Ctrl+C / Ctrl+G to abort
  • Up / Ctrl+P, Down / Ctrl+N, Page Up, and Page Down to move cursor up/down
  • Ctrl+Home / Shift+Home and Ctrl+End / Shift+End to scroll to top/bottom of the list
  • Ctrl+A / Home and Ctrl+E / End to move cursor to beginning/end of query
  • Ctrl+U to clear the query

Command-line options

  1. USAGE:
  2. ix [FLAGS] [OPTIONS]
  3. FLAGS:
  4. -s, --case-sensitive Search case-sensitively
  5. -i, --ignore-case Search case-insensitively
  6. -r, --regex Enable regex
  7. -u, --update Update database and exit
  8. -h, --help Prints help information
  9. -V, --version Prints version information
  10. OPTIONS:
  11. -q, --query <query> Initial query
  12. -p, --match-path <when> Match path
  13. -t, --threads <threads> Number of threads to use
  14. -C, --config <config> Location of a config file