2 comments

  • anotherpaulg 324 days ago
    It’s interesting that you've added an HTTP UI to a command line tool. I've been building an open source CLI tool myself, and have been thinking about doing that. Do you find yourself using the HTTP interface much? Do your users like it?
    • eikenberry 324 days ago
      I plan on adding HTTP UI's using htmx to most of my long running applications in the future. I also mainly use Go and Go + htmx makes simple UIs super easy. It makes a great, fairly easy way to add a small GUI for cases where that is desirable.
      • sureglymop 324 days ago
        I just made a go tool and i liked his easy it was to embed a html frontend into the bibary! Kind of a cool feature.
      • boyter 323 days ago
        Add in HTMX is something I am seriously considering to add in to get an instant search over the webui.
    • boyter 323 days ago
      I find it useful from time to time. As for users... I am the main user of this tool. Its mostly built around what I want.
  • wnolens 324 days ago
    Pretty cool, thanks.

    Using the interactive mode, how can I open the selected file in vim instead of just outputting the filename to stdout?

    • arcanemachiner 324 days ago
      Haven't used this tool but here's how I do this with `ag` (silver searcher):

      `vim -p $(ag -l some_word)`

      The `-p` flag opens each item in a new tab. To open each item in the same tab but different windows*, you can the use `-O` or `-o` flags instead for vertical or horizontal splits, respectively.

      *I am not certain if I am using the term 'window' correctly as Vim uses it.

    • boyter 323 days ago
      I tend to do it with backticks, so

          vi `cs` 
      
      would do the trick.