Re: [go-nuts] Re: need a package to read/write shell history flat file database

2024-02-12 Thread Marcello H
This package (FZF) is also using the history file, perhaps there's something usable inside. https://github.com/junegunn/fzf Op zondag 11 februari 2024 om 06:41:11 UTC+1 schreef Kurtis Rader: > Thanks, but that requires me to implement the code I would rather not have > to reinvent given that sh

Re: [go-nuts] Re: need a package to read/write shell history flat file database

2024-02-10 Thread Kurtis Rader
Thanks, but that requires me to implement the code I would rather not have to reinvent given that shells like Bash, Ksh, and Fish already have code to do what I need. The problem is that those solutions are written in C and C++ respectively rather than Go. While I consider myself an expert in C (ha

Re: [go-nuts] Re: need a package to read/write shell history flat file database

2024-02-10 Thread 'Dan Kortschak' via golang-nuts
On Sat, 2024-02-10 at 21:01 -0800, Kurtis Rader wrote: > The only solution I can find that gets close to my requirements is > https://github.com/ergochat/readline, but AFAICT it does not handle > updates to the on-disk history file by concurrently executing > processes. There is also https://pkg.g

[go-nuts] Re: need a package to read/write shell history flat file database

2024-02-10 Thread Kurtis Rader
The only solution I can find that gets close to my requirements is https://github.com/ergochat/readline, but AFAICT it does not handle updates to the on-disk history file by concurrently executing processes. On Sat, Feb 10, 2024 at 6:55 PM Kurtis Rader wrote: > I'm looking for a package that wil