Skip to content

mattia72/DRipGrepper

Repository files navigation

DRipGrepper

Yet another ripgrep GUI, written in Delphi Pascal with the goal to integrate in the Delphi IDE as an extension.

Screenshot

Features and Todos

Main Window

  • search text, parse rg output
    • --vimgrep parser
    • error parser: if a line couldn't be parsed, then it is put in the first column
    • --pretty parser matching lines with colorized match position
    • --vimgrep --context NUM (or -A=NUM -B=NUM) parser
    • --invert-match parser
    • --stats parser eg. msgbox on end with search statistics
    • no match parser, if nothing found
  • toolbar buttons to
    • expand / collapse tree
    • show/hide icons
    • full/relative path
    • alternate row colors
  • copy rg command line into clipboard
  • sorting by path
  • sorting by row
  • sorting by col
  • sorting by tex
  • grouping by path
  • sorting groups by row / col / text
  • file handling (eg. open in explorer, copy, rename, delete)
  • replace text in files --replace=TEXT

🔍 Search Dialog

  • help parametrizing rg in search dialog
    • filter help texts: can't be selected
    • expert mode set in DripGrepper.ini makes rg options visible
      • appropriate parameters will be filtered
    • quick buttons for
      • --ignore-case
      • --case-sensitive
      • --word-regexp
      • --fixed-strings
    • --glob settings as separate editbox

🚀 Open with...

  • show configured editors to open matching file on matching position
    • on double click
    • with menu / toolbar
  • separate editor for distinct extensions

Configure Open with...

Screenshot

Configuration

  • configuration is stored in ini file (DripGrepper.ini for standalone and DripExtension*.ini for the extension)
    • search text history saved
    • search paths history saved
    • rg parameter history saved
    • view settings saved
      • ShowFileIcon
      • ShowRelativePath
      • AlternateRowColors
      • IndentLines
      • ExpandNodes
    • configurable length of history
    • Open with... settings saved
  • configuration dialog

Delphi Extension #1

  • dockable window
  • high DPI Scaling
  • menu item in Tools (shortcut configurable in DripExtension*.ini)
  • Default shortcut Shift+Alt+R
  • click on matching file, opens file in the editor on position
    • expand collapsed code in {$REGION}-s
  • popup menu
  • save window position
  • search word on cursor
  • search only in opened files/project files/project group
  • delphi extension release

Misc

Installation

If you want to be up to date with the latest versions. Install Scoop, and then you can install and update dripgrepper from the official bucket 🆒

scoop bucket add dripgrepper-bucket https://github.com/mattia72/scoop
scoop install dripgrepper

Thanks

About

Ripgrep GUI, written in Delphi, with the goal to integrate in the Delphi IDE as an extension.

Topics

Resources

License

Stars

Watchers

Forks