brow

Get Browser History in terminal.

Building

git clone "https://github.com/aditya-K2/brow" && cd brow && CGO_ENABLED=1 GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" go build -v

Usage

  -a    See All Available Options that can be used to query the Subsystem.
  -ascending
        Get Results in ascending order. Default is Descending Order
  -c    Copy the Browser Database. Ignored if path is provided. Use this Flag in case Browser is Open as it locks the database.
  -f string
        Specify the Field Separator which will be used in the Output. (default "|")
  -n int
        Specify Number of Results to be Displayed (default -1)
  -p string
        Specify Custom Path for History (default "/home/aditya/.config/BraveSoftware/Brave-Browser/Default/History")
  -q value
        Query for the current Subsystem (default [*])
  -s string
        Specify Subsystem. Either history(urls)/downloads (default "urls")
  • Tested on Brave (Should Work for Most of the Chromium based Browsers)
  • Check the scripts for examples to use it in a script

Examples

dmenu

dmenu.mp4

fzf

fzf.mp4

Note

When the browser is opened the database is locked. Use -c flag to search the copy of the database.

GitHub

View Github