-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement editor pane skeletally
- Loading branch information
Showing
31 changed files
with
1,002 additions
and
769 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Package edit implements generic interfaces for editing of objects (by the | ||
// user). | ||
package edit | ||
|
||
import ( | ||
"github.com/ja-he/dayplan/internal/input" | ||
"github.com/ja-he/dayplan/internal/styling" | ||
"github.com/ja-he/dayplan/internal/ui" | ||
) | ||
|
||
// Editor... | ||
type Editor interface { | ||
GetName() string | ||
|
||
// Commit the state of the editor. | ||
Commit() | ||
|
||
// Abort the editors actions, discarding state. | ||
Abort() | ||
|
||
// GetPane returns a pane that represents this editor. | ||
GetPane( | ||
renderer ui.ConstrainedRenderer, | ||
visible func() bool, | ||
inputConfig input.InputConfig, | ||
stylesheet styling.Stylesheet, | ||
cursorController ui.TextCursorController, | ||
) (ui.Pane, error) | ||
} |
Oops, something went wrong.