mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-24 14:01:46 +02:00
Make control-r faster by not blocking on processing pending deletion requests. Fixed #22
This commit is contained in:
parent
36ff3d362c
commit
94722941cf
@ -406,6 +406,12 @@ func TuiQuery(ctx *context.Context, gitCommit, initialQuery string) error {
|
|||||||
}
|
}
|
||||||
p.Send(doneDownloadingMsg{})
|
p.Send(doneDownloadingMsg{})
|
||||||
}()
|
}()
|
||||||
|
go func() {
|
||||||
|
err := ProcessDeletionRequests(ctx)
|
||||||
|
if err != nil {
|
||||||
|
p.Send(err)
|
||||||
|
}
|
||||||
|
}()
|
||||||
go func() {
|
go func() {
|
||||||
banner, err := GetBanner(ctx, gitCommit)
|
banner, err := GetBanner(ctx, gitCommit)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -35,7 +35,6 @@ func main() {
|
|||||||
query(ctx, strings.Join(os.Args[2:], " "))
|
query(ctx, strings.Join(os.Args[2:], " "))
|
||||||
case "tquery":
|
case "tquery":
|
||||||
ctx := hctx.MakeContext()
|
ctx := hctx.MakeContext()
|
||||||
lib.CheckFatalError(lib.ProcessDeletionRequests(ctx))
|
|
||||||
lib.CheckFatalError(lib.TuiQuery(ctx, GitCommit, strings.Join(os.Args[2:], " ")))
|
lib.CheckFatalError(lib.TuiQuery(ctx, GitCommit, strings.Join(os.Args[2:], " ")))
|
||||||
case "export":
|
case "export":
|
||||||
ctx := hctx.MakeContext()
|
ctx := hctx.MakeContext()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user