4 ms·
Show HN: Codespelunker – A command line search tool with TUI and HTTP modes
- anotherpaulg 3y agoIt’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 3y agoI 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 3y agoI 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 3y agoAdd in HTMX is something I am seriously considering to add in to get an instant search over the webui.
- boyter 3y agoI 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 3y agoPretty cool, thanks. Using the interactive mode, how can I open the selected file in vim instead of just outputting the filename to stdout?
- arcanemachiner 3y agoHaven'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 3y agoI tend to do it with backticks, so vi `cs` would do the trick.