Skip to content

Commit

Permalink
Added notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h committed Sep 10, 2020
1 parent a9a93b9 commit d65d6b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion browse/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func NewConfig() (c *Config, err error) {
c = &Config{
Home: "gemini://gus.guru",
Width: 80,
MaximumHistory: 5, //TODO: Increase after testing.
MaximumHistory: 128,
HostCertificates: map[string]string{},
ClientCertPrefixes: map[clientCertPrefix]struct{}{},
}
Expand Down Expand Up @@ -236,6 +236,7 @@ func Run(ctx context.Context, state *State) {
var u *url.URL
for {
if action == ActionAskForURL {
//TODO: Add history into here.
state.URL, ok = NewInput(state.Screen, "Enter URL:", state.URL).Focus()
if !ok {
return
Expand Down Expand Up @@ -1013,6 +1014,7 @@ func (h *History) Forward() {
}

func (h *History) Add(b *Browser) {
//TODO: Save the history to disk as a Gemini file, so we can open it up in the Browser display? Or do something custom?
if len(h.browsers) == h.max && h.max > 0 {
h.browsers = h.browsers[1:]
}
Expand Down

0 comments on commit d65d6b6

Please sign in to comment.