Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Nov 16, 2023
2 parents 02931a1 + d0d321d commit bb228f3
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 1,154 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ Continue from the last response or a given title or SHA1.

Lists all saved conversations.

#### Show last

`-S`, `--show-last`

Show the previous conversation.

#### Show

`-s`, `--show`
Expand Down
4 changes: 3 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ var help = map[string]string{
"title": "Saves the current conversation with the given title.",
"list": "Lists saved conversations.",
"delete": "Deletes a saved conversation with the given title or ID.",
"show": "Show a saved conversation with the given title or ID",
"show": "Show a saved conversation with the given title or ID.",
"show-last": "Show a the last saved conversation.",
}

// Model represents the LLM model used in the API call.
Expand Down Expand Up @@ -115,6 +116,7 @@ type Config struct {
ContinueLast bool
Continue string
Title string
ShowLast bool
Show string
List bool
Delete string
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ require (
github.com/charmbracelet/bubbles v0.16.1
github.com/charmbracelet/bubbletea v0.24.3-0.20230906172442-d55cfec13eae
github.com/charmbracelet/glamour v0.6.0
github.com/charmbracelet/glow v1.5.1
github.com/charmbracelet/lipgloss v0.9.1
github.com/charmbracelet/x/editor v0.0.0-20231116172829-450eedbca1ab
github.com/charmbracelet/x/exp/ordered v0.0.0-20231010190216-1cb11efc897d
github.com/jmoiron/sqlx v1.3.5
github.com/lucasb-eyer/go-colorful v1.2.0
Expand All @@ -37,6 +37,7 @@ require (
github.com/gorilla/css v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/kr/pretty v0.3.0 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/microcosm-cc/bluemonday v1.0.25 // indirect
Expand All @@ -55,6 +56,7 @@ require (
golang.org/x/sys v0.13.0 // indirect
golang.org/x/text v0.11.0 // indirect
golang.org/x/tools v0.6.0 // indirect
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
lukechampine.com/uint128 v1.2.0 // indirect
modernc.org/cc/v3 v3.40.0 // indirect
modernc.org/ccgo/v3 v3.16.13 // indirect
Expand Down
Loading

0 comments on commit bb228f3

Please sign in to comment.