Skip to content

Fast, brutalist UI on top of RipGrep

License

Notifications You must be signed in to change notification settings

rychlym/RoughGrep

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RoughGrep

Build Status

Fast, brutalist UI on top of RipGrep

"You RipGrep, so why not RoughGrep?" -Anon, 2018

Screenshot

Installation

Grab it from Releases and unzip somewhere. Works best when you can launch it from command line.

If you want to install RoughGrep for Explorer right click context menu, run "rgg --install" as administator.

You can also install with Scoop:

# install scoop
$ iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

# install scoop extras
$ scoop bucket add extras

# finally, install roughgrep
$ scoop install roughgrep

Requirements

  • RipGrep (rg.exe) on PATH. "choco install ripgrep"
  • Microsoft Windows (R)
  • .NET Framework 4.7.2 (because Windows Forms font rendering is broken on the old ones)
  • VSCode launcher ("code") on PATH

Usage

  • Go to the directory you want to search from in prompt of your choice.

  • Run rgg.exe. You may also add ripgrep command line arguments, e.g. rgg -g *.fs to restrict the search to glob pattern

  • Enter the search string in the box and press enter.

  • Navigate the results. When you find interesting result you can:

    • Press space to open the file at line in preview window
    • Press ENTER to open it in VSCode
    • Press p to open the parent project DIRECTORY in vscode. RoughGrep takes the best guess on what that might be (e.g. finds .csproj).
    • Press n to create a note from current line (and file) to scratchpad window. If there is selection, it's appended instead of just the line.
    • Press g to view git history for the file in gitk.
    • Press d to open containing folder in Windows file explorer.
  • You can modify RipGrep command line arguments after launch by using the ComboBox from the Status Bar.

  • If you want to find file names instead of finding contents, use the --files command line argument. Then, the "text to search for" inputs becomes the list of glob patterns instead.

  • Configurable in Scheme! Undocumented, but you get the idea.

Acknowledgements

Credit for the blazing fast UI performance goes to ScintillaNet editor component.

License

MIT

About

Fast, brutalist UI on top of RipGrep

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 96.9%
  • Python 1.9%
  • Scheme 1.2%