fix: correct nightly tag, fix tmux startup, full-word suggestions only, and keep current dir on reload (#8)
- correct nightly release tag name 989b61eefb212c18ca04b2121b382f19f86e39c2 - iris not start in tmux 0fef95430b6a1877810e3a4ffd8aa658f75c542c - suggestions only show on full word typing f29cbfd74a2d90371f8f369e6f8e7419f979da38 - keep current dir on reload instead of return home dir a923e78f52a95e06587aff6856a6a81319b38e84
This commit is contained in:
@@ -145,8 +145,10 @@ func SearchHistory(query string) ([]HistResult, error) {
|
||||
// when query has a clear first word, only keep history entries that share the same first word
|
||||
// this prevents e.g. curl commands from showing up when typing "git ..."
|
||||
queryFirstWord := ""
|
||||
if fields := strings.Fields(query); len(fields) > 0 {
|
||||
queryFirstWord = strings.ToLower(fields[0])
|
||||
if strings.IndexByte(query, ' ') != -1 {
|
||||
if fields := strings.Fields(query); len(fields) > 0 {
|
||||
queryFirstWord = strings.ToLower(fields[0])
|
||||
}
|
||||
}
|
||||
|
||||
var results []HistResult
|
||||
|
||||
Reference in New Issue
Block a user