vgrep

a user-friendly pager for grep

GPL-3.0 License

Downloads
7
Stars
665
Committers
31
vgrep - Latest Release

Published by vrothberg 5 months ago

vgrep can now gracefully handle errors from *grep such as eperms.

Changelog:

  • handle *grep errors
  • add GitHub workflows
  • build(deps): bump golang.org/x/term from 0.19.0 to 0.20.0
  • update golangci-lint to v1.57.2
  • build(deps): bump golang.org/x/term from 0.18.0 to 0.19.0
  • build(deps): bump golang.org/x/term from 0.17.0 to 0.18.0
  • CI: update to fedora:39
  • update copyright date to 2024
  • bump go.mod to 1.21
  • update github.com/rivo/uniseg
  • build(deps): bump golang.org/x/term from 0.16.0 to 0.17.0
  • bump golangci-lint to 1.55.2
  • build(deps): bump golang.org/x/term from 0.15.0 to 0.16.0
  • build(deps): bump golang.org/x/term from 0.14.0 to 0.15.0
  • build(deps): bump golang.org/x/term from 0.13.0 to 0.14.0
vgrep - v2.7.0

Published by vrothberg about 1 year ago

vgrep now runs on OpenBSD 🥳

Changelog

  • 5abdd10aafff README: Include examples for fish shell
  • b62874251d51 README: document cache location
  • baae4f1846b7 Support OpenBSD
  • 46d4e22af39e build(deps): bump github.com/sirupsen/logrus from 1.9.0 to 1.9.2
  • 5bda867ea84f build(deps): bump github.com/sirupsen/logrus from 1.9.2 to 1.9.3
  • 9dfca5c3b8a2 build(deps): bump golang.org/x/term
  • 895c9610b404 build(deps): bump golang.org/x/term from 0.10.0 to 0.11.0
  • 2748652e7735 build(deps): bump golang.org/x/term from 0.11.0 to 0.12.0
  • 216ec13a8cc2 build(deps): bump golang.org/x/term from 0.12.0 to 0.13.0
  • e64be105be88 build(deps): bump golang.org/x/term from 0.5.0 to 0.6.0
  • c2ed1ebc5569 build(deps): bump golang.org/x/term from 0.6.0 to 0.7.0
  • e2e0962a87d1 build(deps): bump golang.org/x/term from 0.7.0 to 0.8.0
  • 4c662d02c886 build(deps): bump golang.org/x/term from 0.8.0 to 0.9.0
  • 315676f5164f build(deps): bump golang.org/x/term from 0.9.0 to 0.10.0
  • 62d22bd6a76a bump go mod to 1.19
  • 225e2ed433fa bump golangci-lint to v1.51.2
  • fc9035cfa0be bump to v2.6.2-dev
  • 3fb92b01003d go.mod: bump to go1.17
  • 6b4176a74db3 update dependencies
  • 0f165ab4c7e1 v2.7.0
vgrep - v2.6.1

Published by vrothberg about 2 years ago

  • delete/refine: fix adjusting indices
  • build(deps): bump github.com/sirupsen/logrus from 1.8.1 to 1.9.0
  • Add environment variable to switch the order of LINEFLAG and file
  • Add missing export for EDITOR
  • simplify test by removing parameter expansion
  • Add vendored dependency google/shlex
  • Tests for vgrep --show .. and various EDITOR values
  • Support opening file at line number in nano
  • Update dependencies
  • Allow passing command with options through the $EDITOR env variable
  • allow ripgrep to use configuration file
  • Dockerfile: use golang:latest
  • make .install.go-md2man: use go install
vgrep - v2.5.6

Published by vrothberg over 2 years ago

  • fix all selector
  • Fix 'git grep' color issue
vgrep - v2.6.0

Published by vrothberg almost 3 years ago

Features:

  • -l, --files-with-matches

Fixes:

  • Fix 'git grep' color issue
  • fix all selector
  • getGrepType: fix typo
vgrep - v2.5.5

Published by vrothberg almost 3 years ago

Including change log from v2.5.4:

  • throw an error for unknown grep types
  • make grep-type detection more robust
  • Fix RegEx for grep version type
  • getGrepType: fix typo
vgrep - v2.5.3

Published by vrothberg about 3 years ago

  • don't print help message twice
vgrep - v2.5.2

Published by vrothberg about 3 years ago

  • CI: use golang:1.17 container
  • performance: user faster json lib
  • log parsing errors
  • --memory-profile
  • bump dependencies
  • build(deps): bump github.com/mattn/go-shellwords from 1.0.11 to 1.0.12
  • build(deps): bump github.com/jessevdk/go-flags from 1.4.0 to 1.5.0
  • add dependabot.yml
  • build(deps): bump github.com/sirupsen/logrus from 1.8.0 to 1.8.1
  • Fix indentation
  • Fix fzf example
  • Modify fzf example; parse error due to typo
  • build(deps): bump github.com/sirupsen/logrus from 1.7.0 to 1.8.0
  • write to stdout if it's not a tty
  • bump golangci-lint v1.36.0
  • build(deps): bump github.com/mattn/go-shellwords from 1.0.10 to 1.0.11
  • Review feedback
  • Add fzf wrapper
  • build(deps): bump github.com/peterh/liner from 1.2.0 to 1.2.1
  • use switch table for dispatcher
vgrep - v2.5.1

Published by vrothberg almost 4 years ago

  • vgrep [no grep args]: print matches
  • Makefile: fix install targets
vgrep - v2.5.0

Published by vrothberg almost 4 years ago

  • New vgrep(1) man page
  • Support vgrep -{A,B,C}
  • Goland support
  • Smaller bug fixes

Thanks to all contributors and reporters!

vgrep - v2.4.0

Published by vrothberg about 4 years ago

  • selectors: add a "all" selector to process all results
  • splitMatch: fail gracefully on failure to parse output
  • (new) grep: add filename completion
  • (new) grep: add a command to trigger a new search from interactive shell
  • refine: add a command to refine match list based on a regular expression
  • keep: add a new command to keep selected indices
  • show: fix a typo ("douldn't" -> "couldn't")
  • colwriter: prevent panic on --no-header and no result found
  • interactive: close command-line editor on early os.Exit()
  • interactive: switch from bufio Scanner to (readline-like) liner
  • delete: fix index update for multi-line deletions
  • git grep: Run 'git rev-parse' only if not selecting ripgrep
  • grep output: expect no more than 2 substrings when splitting on NUL-byte
  • grep output: force printing filename for grep/ripgrep
  • grep commands: Do not pass '.' as an argument to grep/ripgrep
  • README: mention Homebrew package on Mac OS

Thanks to all contributors, with a special thanks to @Qeole for adding many new features and improvements.

vgrep - v2.3.3

Published by vrothberg over 4 years ago

When using emacs, also make sure to account for emacs in daemon mode and
check for emacsclient as an editor.

vgrep - v2.3.2

Published by vrothberg over 4 years ago

  • emacs support
  • Add link to Fedora package
  • add link to gentoo package
  • remove requirement to load cache from the same dir

Thanks to all contributors!

vgrep - v2.3.1

Published by vrothberg over 4 years ago

A number of fixes and maintenance changes.

Thanks to all contributors and reporters!

Changelog

  • README: clarify search/show
  • README: add install instructions
  • replace string literals with constants
  • remove redundant flags
  • gnu uses different format than bsd and git grep
  • linter error fix for regex
  • fix #79, define a new greptype bsd to select : seperator
  • use golangci-lint v1.26.0
  • CI: use golang:1.14
  • update dependencies
  • build(deps): bump github.com/sirupsen/logrus from 1.5.0 to 1.6.0
  • Update chmod command
  • Cross-platform make install
vgrep - v2.3.0

Published by vrothberg over 4 years ago

A couple of clean ups and minor bug fixes along with Windows and ripgrep support. Also note that the -i short flag has been dropped to fix a conflict with (git) grep flags.

Thanks to all contributors!

Changelog

  • pin golangci-lint version
  • Use a standard variable for setting the installation path
  • Ripgrep support
  • Cache file mode 0644
  • drop interactive -i short flag
  • Enable basic functionality on windows
  • build(deps): bump github.com/sirupsen/logrus from 1.4.2 to 1.5.0
  • resolve symlinks in cache
vgrep - v2.2.0

Published by vrothberg almost 5 years ago

User-visible changes

  • Changed yellow to magenta to improve readability on light color schemes
    (e.g., tango).
  • Auto-detect VSCode terminal and print line column in a clickable format
    for easy browing.
  • Vgrep has a logo.

Miscellaneous and janitorial changes

  • update x/sys to latest commit
  • check all errors
  • Dockerfile: pin to golang:1.13
  • update dependencies
  • enable Cirrus CI
  • Makefile: go and tools clean ups
  • Travis: bump go to 1.13.x
  • support vscode
  • change email address
  • add a simple logo
  • Makefile: use go proxy
  • update dependencies
  • Travis: use go 1.12.x instead of tip
  • build(deps): bump github.com/sirupsen/logrus from 1.4.0 to 1.4.2
  • regex: fix escpaces
  • add make .install.tools to install dependencies for CI
  • make check: add golangci-lint
  • regex: use raw strings
  • switch to go mod for dependency management
vgrep - v2.1.0

Published by vrothberg over 5 years ago

Changes since v2.0.2:

  • colwriter: panic on cmd execution
  • Travis: check vendor
  • add hack/tree_status.sh to check the tree status
  • README: spell checks, minor rewording
  • fix regression of vgrep -s $SELECTORS
  • update integration-test
  • fix interactive regression
  • fix regression for empty input
  • interactive: print help on empty input
  • append additional args to show command
  • make output/logs consistent
  • embed cli args into vgrep type
  • move state into a vgrep type
  • remove Log variable in favor logrus API
  • Fix some spelling mistakes in comments
  • Add missing return for 'show' command
  • Avoid race conditions when reading/writing cache file
  • Makefile: refactor container build targets
  • move ansi & colwriter to ./internal
  • update vendored libraries
  • Makefile: add vendor target
  • bump Travis to go 1.11.x
  • don't error out if cache file doesn't exist
  • fix travis
  • add integration tests
  • README: remove notes about 2.0.0 release
  • logging: use string instead of *os.File
  • Update vendor/
  • README: add Travis CI build status
  • add Travis CI
vgrep - v2.0.2

Published by vrothberg almost 7 years ago

Changes since v2.0.1:

vgrep -

Published by vrothberg almost 7 years ago

d8c289a fixes a bug where parsing vgrep commands broke due to using a raw string for the regex.

vgrep - golang

Published by vrothberg almost 7 years ago