5 Commits

Author SHA1 Message Date
97648433c0 remove defaultHistoryProvider 2021-08-08 11:29:18 +02:00
2450accc96 Fork customized liner into own repo 2021-08-08 11:16:32 +02:00
e5c1beb937 refactor search function. rename -being and -end to -after and -before 2021-06-05 22:41:34 +02:00
a2c4c99af4 WIP: implement reverse search 2021-06-05 19:59:47 +02:00
e292b4ce74 Liner WIP 2021-06-05 17:41:58 +02:00

View File

@ -12,10 +12,6 @@ type history struct {
}
func (h *history) GetHistoryByPrefix(prefix string) (ph []string) {
/* Hack for performance reasons */
if len(prefix) < 2 {
return
}
opts := searchopts{}
opts.order = "DESC"
cmdqry := prefix + "%"
@ -31,10 +27,6 @@ func (h *history) GetHistoryByPrefix(prefix string) (ph []string) {
return
}
func (h *history) GetHistoryByPattern(pattern string) (ph []string, pos []int) {
/* Hack for performance reasons */
if len(pattern) < 2 {
return
}
opts := searchopts{}
opts.order = "DESC"
cmdqry := "%" + pattern + "%"