Skip to content

Commit

Permalink
style: Fix a bunch of typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ja-he committed Jul 1, 2024
1 parent 638016a commit 6fce717
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions internal/control/cli/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func NewController(
editorHeight := 20

scrollableZoomableInputMap := map[input.Keyspec]action.Action{
"<c-u>": action.NewSimple(func() string { return "scoll up" }, func() { controller.ScrollUp(10) }),
"<c-u>": action.NewSimple(func() string { return "scroll up" }, func() { controller.ScrollUp(10) }),
"<c-d>": action.NewSimple(func() string { return "scroll down" }, func() { controller.ScrollDown(10) }),
"gg": action.NewSimple(func() string { return "scroll to top" }, controller.ScrollTop),
"G": action.NewSimple(func() string { return "scroll to bottom" }, controller.ScrollBottom),
Expand Down Expand Up @@ -665,7 +665,7 @@ func NewController(
log.Error().Err(err).Msg("unable to write backlog to writer")
return
}
log.Info().Msgf("wrote backlog to '%s' sucessfully", backlogFilePath)
log.Info().Msgf("wrote backlog to '%s' successfully", backlogFilePath)
}),
},
)
Expand Down
2 changes: 0 additions & 2 deletions internal/control/edit/editors/composite_editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,6 @@ func (e *Composite) GetActiveFieldID() EditorID { return e.activeFieldID }
func (e *Composite) IsInField() bool { return e.inField }

// GetFields returns the subeditors of this composite editor.
//
// TOOD: should this exist / be public (what is it good for)?
func (e *Composite) GetFields() map[EditorID]edit.Editor {
return e.fields
}
2 changes: 1 addition & 1 deletion internal/input/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type SimpleInputProcessor interface {

// CapturesInput returns whether this processor "captures" input, i.E. whether
// it ought to take priority in processing over other processors.
// This is useful, e.g., for prioritizing processors whith partial input
// This is useful, e.g., for prioritizing processors with partial input
// sequences or for such overlays, that are to take complete priority by
// completely gobbling all input.
CapturesInput() bool
Expand Down
2 changes: 1 addition & 1 deletion internal/input/processors/modal_input_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewModalInputProcessor(base input.SimpleInputProcessor) *ModalInputProcesso

// CapturesInput returns whether this processor "captures" input, i.E. whether
// it ought to take priority in processing over other processors.
// This is useful, e.g., for prioritizing processors whith partial input
// This is useful, e.g., for prioritizing processors with partial input
// sequences or for such overlays, that are to take complete priority by
// completely gobbling all input.
func (p *ModalInputProcessor) CapturesInput() bool {
Expand Down
2 changes: 1 addition & 1 deletion internal/input/processors/text_input_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (p *TextInputProcessor) ProcessInput(key input.Key) bool {

// CapturesInput returns whether this processor "captures" input, i.E. whether
// it ought to take priority in processing over other processors.
// This is useful, e.g., for prioritizing processors whith partial input
// This is useful, e.g., for prioritizing processors with partial input
// sequences or for such overlays, that are to take complete priority by
// completely gobbling all input.
func (p *TextInputProcessor) CapturesInput() bool {
Expand Down
2 changes: 1 addition & 1 deletion internal/input/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (t *Tree) ProcessInput(k Key) (applied bool) {

// CapturesInput returns whether this processor "captures" input, i.E. whether
// it ought to take priority in processing over other processors.
// This is useful, e.g., for prioritizing processors whith partial input
// This is useful, e.g., for prioritizing processors with partial input
// sequences or for such overlays, that are to take complete priority by
// completely gobbling all input.
func (t *Tree) CapturesInput() bool {
Expand Down
2 changes: 1 addition & 1 deletion internal/model/backlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (b *Backlog) Write(w io.Writer) error {

data, err := yaml.Marshal(toBeWritten)
if err != nil {
return fmt.Errorf("unabel to marshal backlog (%s)", err.Error())
return fmt.Errorf("unable to marshal backlog (%s)", err.Error())
}
_, err = w.Write(data)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/ui/panes/composite.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/ja-he/dayplan/internal/util"
)

// Composite is a generic wrapper pane whithout any rendering logic of its
// Composite is a generic wrapper pane without any rendering logic of its
// own.
type Composite struct {
ui.BasePane
Expand Down
3 changes: 2 additions & 1 deletion internal/ui/panes/help_pane.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import (
"github.com/ja-he/dayplan/internal/ui"
)

// HelpPane conditionally be hidden or display a set of keyboad shortcuts.
// A HelpPane is a pane that displays a help popup.
// For example, it could display a list of key mappings and their actions.
type HelpPane struct {
ui.LeafPane

Expand Down
2 changes: 1 addition & 1 deletion internal/ui/position_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
// PositionInfo describes a position in the user interface.
//
// Retrievers should initially check for the type of pane they are receiving
// information on and can then retreive the relevant additional information from
// information on and can then retrieve the relevant additional information from
// whatever they got.
type PositionInfo interface{}

Expand Down

0 comments on commit 6fce717

Please sign in to comment.