Genivia / ugrep

NEW ugrep 7.1: a more powerful, ultra fast, user-friendly, compatible grep. Includes a TUI, Google-like Boolean search with AND/OR/NOT, fuzzy search, hexdumps, searches (nested) archives (zip, 7z, tar, pax, cpio), compressed files (gz, Z, bz2, lzma, xz, lz4, zstd, brotli), pdfs, docs, and more
https://ugrep.com
BSD 3-Clause "New" or "Revised" License
2.66k stars 111 forks source link

ugrep --hyperlink unconditionally prepends CWD to hyperlinks of absolute paths #412

Closed stephentalley closed 3 months ago

stephentalley commented 3 months ago

Running ugrep 6.2.

  1. ugrep a matching pattern in any absolute path:
cd /tmp; ugrep --hyperlink -H a /etc/passwd /dev/null
  1. Clicking /etc/passwd in the terminal launches a viewer for /tmp//etc/passwd. It appears that the hyperlinking code is assuming the file names are relative and appending the CWD, rather than leaving them as-is.
genivia-inc commented 3 months ago

Ah, that's easy to fix. Will be updated in 6.3.