ilse

package module
Version: v0.0.0-...-ac40075 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

README

ilse

TUI grep tool respect for IntelliJ

Requirements

Features

  • support HeadMatch(FirstMatch), WordMatch, Regex, FuzzySearch
  • preview surrounding code
  • auto resize
  • You can open the hit in the editor

How to Work

ilse

How to Use

<Ctrl-W> switch to WordMatch
<Ctrl-E> switch to HeadMatch
<Ctrl-R> switch to Regex
<Ctrl-G> switch to ripgrep
<Ctrl-F> switch to fuzzy search
<Ctrl-T> Toggle case sensitive
<Ctrl-D> specify search target directory visually
<Ctrl-N> clear search target directory
<Ctrl-B> clear your input

Flag

ilse - ilse is TUI grep tool like IntelliJ

  Flags:
       --version              Displays the program version string.
    -h --help                 Displays help with available flag, subcommand, and positional value parameters.
    -m --max-search-results   Max number of search results (default: 100)
    -f --filter               select filter ('rg', 'fuzzy') (default: rg)
    -fm --filter-mode          select filter mode ('head', 'word', 'regex') (default: head)
    -t --preview-theme        select bat theme for preview (default: OneHalfDark)
    -c --case                 case sensitive

Caution

I intendedly ignore if only one letter. Because, it takes a lot of time, but it's of little value.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg *Config) error

func Run

func Run() error

Types

type Config

type Config struct {
	Theme string

	MaxSearchResults int
	SearchCommand    string
	SearchMode       string
	CaseSensitive    bool
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig() (*Config, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL