mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 06:04:18 +00:00
Improve comments
This commit is contained in:
parent
6946f7e581
commit
25dd530fb7
1 changed files with 6 additions and 4 deletions
10
ui/stash.go
10
ui/stash.go
|
@ -49,7 +49,7 @@ type markdownFetchFailedMsg struct {
|
|||
|
||||
// MODEL
|
||||
|
||||
// High-level state of the application.
|
||||
// stashViewState is the high-level state of the file listing.
|
||||
type stashViewState int
|
||||
|
||||
const (
|
||||
|
@ -67,6 +67,8 @@ const (
|
|||
newsSection
|
||||
)
|
||||
|
||||
// section contains definitions and state information for displaying a tab and
|
||||
// its contents in the file listing view.
|
||||
type section struct {
|
||||
key sectionKey
|
||||
docTypes DocTypeSet
|
||||
|
@ -74,7 +76,7 @@ type section struct {
|
|||
cursor int
|
||||
}
|
||||
|
||||
// Maps sections to their associated types
|
||||
// map sections to their associated types.
|
||||
var sections = map[sectionKey]section{
|
||||
localSection: {
|
||||
key: localSection,
|
||||
|
@ -90,7 +92,7 @@ var sections = map[sectionKey]section{
|
|||
},
|
||||
}
|
||||
|
||||
// The current filtering state.
|
||||
// filterState is the current filtering state in the file listing.
|
||||
type filterState int
|
||||
|
||||
const (
|
||||
|
@ -99,7 +101,7 @@ const (
|
|||
filterApplied // a filter is applied and user is not editing filter
|
||||
)
|
||||
|
||||
// The state of the currently selected document.
|
||||
// selectionState is the state of the currently selected document.
|
||||
type selectionState int
|
||||
|
||||
const (
|
||||
|
|
Loading…
Reference in a new issue