chore(commands): more commands for suggestions (#10)
## What's new - color completion message command green https://github.com/versenilvis/IRIS/pull/10/commits/6e141f5e6909fad1ec42725cce38d51729acf399 - new flat command folder structure https://github.com/versenilvis/IRIS/pull/10/commits/87026a854a529ec5d5baed967d5f7a7f0085a24b - fix some linter problems https://github.com/versenilvis/IRIS/pull/10/commits/536de790cefda912f50bf4022e40ce2b965db2e2 - fix some gemini fix suggestions
This commit is contained in:
@@ -107,6 +107,9 @@ func SearchHistory(query string) ([]HistResult, error) {
|
||||
allCmds = append(allCmds, cmd)
|
||||
}
|
||||
}
|
||||
if err := scanner.Err(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// build historyCache backwards so newest commands come first
|
||||
seen := make(map[string]bool)
|
||||
|
||||
@@ -99,7 +99,9 @@ func (o *Overlay) RenderGhostText(buffer string, userNavigated bool) string {
|
||||
if ghostText != "" || padLen > 0 {
|
||||
s.WriteString("\0337") // SAVE CURSOR at prompt
|
||||
if ghostText != "" {
|
||||
s.WriteString("\033[90m" + ghostText + "\033[0m")
|
||||
s.WriteString("\033[90m")
|
||||
s.WriteString(ghostText)
|
||||
s.WriteString("\033[0m")
|
||||
}
|
||||
if padLen > 0 {
|
||||
s.WriteString(strings.Repeat(" ", padLen))
|
||||
|
||||
Reference in New Issue
Block a user